From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1810 invoked by alias); 10 Mar 2008 21:18:41 -0000 Received: (qmail 1368 invoked by uid 48); 10 Mar 2008 21:17:58 -0000 Date: Mon, 10 Mar 2008 21:18:00 -0000 Subject: [Bug bootstrap/35531] New: Assembler failure while compiling libgcc X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bfriesen at simple dot dallas dot tx dot us" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00717.txt.bz2 On an AMD64 (Opteron) system, the Solaris 10 assembler does not like what GCC produces. This system has all patches applied for Solaris 10 U4. GCC 4.2.1 works very well on it. Configured like: /home/bfriesen/src/gnu/gcc-4.3.0/configure -program-suffix='-4.3.0' --enable-threads --enable-version-specific-runtime-libs --enable-languages='c,c++' When compiling libgcc2.c this warning is produced for each compile: "/tmp/bfriesen/ccK2JBM6.s", line 402 : Warning: Illegal subtraction - symbols from different sections: ".LFB2", ".DOT-1" /home/bfriesen/build/gcc-4.3.0/./gcc/xgcc -B/home/bfriesen/build/gcc-4.3.0/./gcc/ -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib/ -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-pc-solaris2.10/sys-include -g -fkeep-inline-functions -m64 -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I/home/bfriesen/src/gnu/gcc-4.3.0/libgcc -I/home/bfriesen/src/gnu/gcc-4.3.0/libgcc/. -I/home/bfriesen/src/gnu/gcc-4.3.0/libgcc/../gcc -I/home/bfriesen/src/gnu/gcc-4.3.0/libgcc/../include -DHAVE_CC_TLS -o _gcov.o -MT _gcov.o -MD -MP -MF _gcov.dep -DL_gcov -c /home/bfriesen/src/gnu/gcc-4.3.0/libgcc/../gcc/libgcov.c Assembler: libgcov.c "/tmp/bfriesen/ccZ3Azge.s", line 1936 : Syntax error Near line: " repz cmpsb" "/tmp/bfriesen/ccZ3Azge.s", line 2976 : Warning: Illegal subtraction - symbols from different sections: ".LFB3", ".DOT-21" "/tmp/bfriesen/ccZ3Azge.s", line 2985 : Warning: Illegal subtraction - symbols from different sections: ".LFB5", ".DOT-22" "/tmp/bfriesen/ccZ3Azge.s", line 2994 : Warning: Illegal subtraction - symbols from different sections: ".LFB24", ".DOT-23" "/tmp/bfriesen/ccZ3Azge.s", line 3003 : Warning: Illegal subtraction - symbols from different sections: ".LFB22", ".DOT-24" "/tmp/bfriesen/ccZ3Azge.s", line 3032 : Warning: Illegal subtraction - symbols from different sections: ".LFB2", ".DOT-25" "/tmp/bfriesen/ccZ3Azge.s", line 3051 : Warning: Illegal subtraction - symbols from different sections: ".LFB4", ".DOT-26" "/tmp/bfriesen/ccZ3Azge.s", line 3070 : Warning: Illegal subtraction - symbols from different sections: ".LFB8", ".DOT-27" "/tmp/bfriesen/ccZ3Azge.s", line 3095 : Warning: Illegal subtraction - symbols from different sections: ".LFB18", ".DOT-28" "/tmp/bfriesen/ccZ3Azge.s", line 3120 : Warning: Illegal subtraction - symbols from different sections: ".LFB9", ".DOT-29" "/tmp/bfriesen/ccZ3Azge.s", line 3145 : Warning: Illegal subtraction - symbols from different sections: ".LFB12", ".DOT-30" "/tmp/bfriesen/ccZ3Azge.s", line 3170 : Warning: Illegal subtraction - symbols from different sections: ".LFB11", ".DOT-31" "/tmp/bfriesen/ccZ3Azge.s", line 3193 : Warning: Illegal subtraction - symbols from different sections: ".LFB10", ".DOT-32" "/tmp/bfriesen/ccZ3Azge.s", line 3216 : Warning: Illegal subtraction - symbols from different sections: ".LFB13", ".DOT-33" "/tmp/bfriesen/ccZ3Azge.s", line 3239 : Warning: Illegal subtraction - symbols from different sections: ".LFB14", ".DOT-34" "/tmp/bfriesen/ccZ3Azge.s", line 3266 : Warning: Illegal subtraction - symbols from different sections: ".LFB16", ".DOT-35" "/tmp/bfriesen/ccZ3Azge.s", line 3285 : Warning: Illegal subtraction - symbols from different sections: ".LFB15", ".DOT-36" "/tmp/bfriesen/ccZ3Azge.s", line 3304 : Warning: Illegal subtraction - symbols from different sections: ".LFB17", ".DOT-37" "/tmp/bfriesen/ccZ3Azge.s", line 3327 : Warning: Illegal subtraction - symbols from different sections: ".LFB7", ".DOT-38" "/tmp/bfriesen/ccZ3Azge.s", line 3350 : Warning: Illegal subtraction - symbols from different sections: ".LFB6", ".DOT-39" "/tmp/bfriesen/ccZ3Azge.s", line 3377 : Warning: Illegal subtraction - symbols from different sections: ".LFB21", ".DOT-40" "/tmp/bfriesen/ccZ3Azge.s", line 3410 : Warning: Illegal subtraction - symbols from different sections: ".LFB23", ".DOT-41" gmake[5]: *** [_gcov.o] Error 1 gmake[5]: Leaving directory `/scratch/bfriesen/build/gcc-4.3.0/i386-pc-solaris2.10/amd64/libgcc' -- Summary: Assembler failure while compiling libgcc Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bfriesen at simple dot dallas dot tx dot us GCC build triplet: i386-pc-solaris2.10 GCC host triplet: i386-pc-solaris2.10 GCC target triplet: i386-pc-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35531