From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Barry To: binutils@sourceware.cygnus.com Subject: strange compile problem Date: Mon, 13 Sep 1999 06:54:00 -0000 Message-id: <199909131353.PAA11573@osc1.hq.eso.org> X-SW-Source: 1999-09/msg00093.html Hi, I'm getting this error when I try to build binutils-2.9.5.0.12 with gcc-2.95.1 (compiled for/on a native utrasparc running Solaris 2.6) SunOS xxx 5.6 Generic_105181-05 sun4u sparc gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.9.5.0.12/gprof -I. -D_GNU_SOURCE -DDEBUG -I../bfd -I../../binutils-2.9.5.0.12/gprof/../include -I../../binutils-2.9.5.0.12/gprof/../bfd -I../../binutils-2.9.5.0.12/gprof/../intl -I../intl -DLOCALEDIR="\"/apps/gnu2/share/locale\"" -I/usr/openwin/include -I/usr/dt/include -I/apps/include -I/apps/gnu/include -I/apps/X11R6/include -I/apps/gnome/include -I/apps/kde/include -I/apps/ImageMagick/include -O3 -funroll-loops -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../../binutils-2.9.5.0.12/gprof/hist.c /var/tmp/ccUupNBD.s: Assembler messages: /var/tmp/ccUupNBD.s:1963: Error: Illegal operands /var/tmp/ccUupNBD.s:1986: Error: Illegal operands /var/tmp/ccUupNBD.s:2008: Error: Illegal operands /var/tmp/ccUupNBD.s:2100: Error: Illegal operands *** Error code 1 make: Fatal error: Command failed for target `hist.o' Current working directory /apps/jbarry/gnu/gcc/bin-build/gprof This error goes away if I remove the optimisation flag completeley, (even with -O it still give me assembler errors) but I have my doubts about the correctness of the code produced in this manner. This error is reproducable on my system with both a full build: #!/bin/sh # This file was generated automatically by configure. Do not edit. # This directory was configured as follows: ../binutils-2.9.5.0.12/configure --host=sparc-sun-solaris2.6 --prefix=/apps/gnu2 --enable-shared --enable-static --enable-bfd-assembler --enable-commonbfdlib -- enable-64-bit-bfd --with-included-gettext --enable-targets=all --enable-multilib --enable-threads=posix --with-cpu=ultrasparc --norecursion # using "mh-frag" and "mt-frag" and with a seperate config in the gprof dir thus: # configure --prefix=/apps/gnu2 --enable-shared --enable-static --with-included -gettext --with-x --x-includes=/usr/openwin/include --x-libraries=/usr/openwin/l ib I'm including the compile flags -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 as recommended by Sun to ensure the apps are compliant with 2.6's 64 file system, it make no difference if I take them out or not, the only thing that affects it is -O (or not...) as and ld are gnu-as & gnu-ld from binutils-2.9.1, but I've been getting screwy errors out the compiler for a few days so I decided to see if upgrading binutils would help... I didn't have these problems with the egcs-1.1.2 release, any ideas? later jb ---- John Barry Unix Network Administrator European Southern Observatory Karl-Schwarzschild-Strasse 2 D-85748 Garching b. Munchen Germany