On Tuesday 15 January 2002 14:14, Mikael Hedin wrote: > Hi again! > > [Thanks for the help, ia64 now builds fine] > > This time it's sparc that don't build. See the build log for details, > http://buildd.debian.org/fetch.php?&pkg=ogle&ver=0.8.2-4&arch=sparc&stamp=1 >011076373&file=log&as=raw, > > And a snip: > > gcc -DPACKAGE=\"ogle\" -DVERSION=\"0.8.2\" -DSTDC_HEADERS=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 > -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1 > -DHAVE_BYTESWAP_H=1 -DHAVE_XSHM=1 -DHAVE_XV=1 -DHAVE_CLOCK_GETTIME=1 > -DHAVE_MADVISE=1 -DLIBAO_OSS= -DHAVE_XML=1 -DHAVE_XF86VIDMODE=1 > -DCONFIG_FILE=\"/usr/share/ogle/oglerc\" -DUSE_SPARCASM=1 -I. -I. -I. -I.. > -I../include -g -O2 -Wall -mcpu=ultrasparc -mvis -c msgevents.c > -Wp,-MD,.deps/msgevents.TPlo -fPIC -DPIC -o .libs/msgevents.o > /tmp/ccMkcRE8.s: Assembler messages: > /tmp/ccMkcRE8.s:605: Error: Architecture mismatch on "bne,pt %icc,.LL130". > /tmp/ccMkcRE8.s:605: (Requires v9|v9a|v9b; requested architecture is > sparclite.) /tmp/ccMkc > > Is this a problem with gcc? There is no assembly in msgevents.c.
Gcc is really broken for -mcpu on sparcs.. What you need to do here is either drop ultrasparc optimizations or manually propagate the arch parameter to the assembler. The last is done with -Wa,-xarch=v8plusa -Allan