The machine is a Dell workstation with xeon processors. The OS is RHEL 4 AS x86_64 gcc version is 3.4.6 I checked out the llvm-gcc from svn, configured with ../llvm-gcc/configure --prefix=$HOME/llvm-gcc-install --enable-llvm=$HOME/llvmobj/ --enable-languages=c,c++ --enable-checking --disable-shared --disable-multilib and get the following error message: make GCC_FOR_TARGET="/home/xzx/llvm-gcc-obj/gcc/xgcc -B/home/xzx/llvm-gcc-obj/gcc/ -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include" \ AR_FOR_TARGET="ar" \ AR_CREATE_FOR_TARGET="ar rc" \ AR_EXTRACT_FOR_TARGET="ar x" \ AR_FLAGS_FOR_TARGET="" \ CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -fno-common " \ BUILD_PREFIX="" \ BUILD_PREFIX_1="loser-" \ LANGUAGES="" \ LIBGCC2_CFLAGS="-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 " \ MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' make[3]: `crtbegin.o' is up to date. make[3]: `crtend.o' is up to date. make[3]: `crtbeginS.o' is up to date. make[3]: `crtendS.o' is up to date. make[3]: `crtbeginT.o' is up to date. make[3]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' /home/xzx/llvm-gcc-obj/gcc/xgcc -B/home/xzx/llvm-gcc-obj/gcc/ -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include -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../../llvm-gcc/gcc -I../../llvm-gcc/gcc/. -I../../llvm-gcc/gcc/../include -I../../llvm-gcc/gcc/../libcpp/include -I/home/xzx/llvm/include -I/home/xzx/llvmobj//include -DL_lshrdi3 -c ../../llvm-gcc/gcc/libgcc2.c -o libgcc/./_lshrdi3.o WARNING: 128-bit integers not supported! ../../llvm-gcc/gcc/libgcc2.c: In function '__lshrti3': ../../llvm-gcc/gcc/libgcc2.c:412: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://llvm.org/bugs <http://llvm.org/bugs>> for instructions. make[2]: *** [libgcc/./_lshrdi3.o] Error 1 make[2]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' make: *** [install-gcc] Error 2 And after I run make install I get only c++ and g++ in my llvm-gcc-install directory. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070110/39efbaa4/attachment.html>
gcc 3.4.x builds LLVM incorrectly on x86_64. gcc 4.0 will get you much farther, but the llvm-test regression tests still have massive problems. Zhongxing Xu wrote:> The machine is a Dell workstation with xeon processors. The OS is RHEL > 4 AS x86_64 > gcc version is 3.4.6 > > I checked out the llvm-gcc from svn, configured with > ../llvm-gcc/configure --prefix=$HOME/llvm-gcc-install > --enable-llvm=$HOME/llvmobj/ --enable-languages=c,c++ > --enable-checking --disable-shared --disable-multilib > > and get the following error message: > > make GCC_FOR_TARGET="/home/xzx/llvm-gcc-obj/gcc/xgcc > -B/home/xzx/llvm-gcc-obj/gcc/ > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include" \ > AR_FOR_TARGET="ar" \ > AR_CREATE_FOR_TARGET="ar rc" \ > AR_EXTRACT_FOR_TARGET="ar x" \ > AR_FLAGS_FOR_TARGET="" \ > CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -fno-common " \ > BUILD_PREFIX="" \ > BUILD_PREFIX_1="loser-" \ > LANGUAGES="" \ > LIBGCC2_CFLAGS="-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 " \ > MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o > crtbeginT.o > make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' > make[3]: `crtbegin.o' is up to date. > make[3]: `crtend.o' is up to date. > make[3]: `crtbeginS.o' is up to date. > make[3]: `crtendS.o' is up to date. > make[3]: `crtbeginT.o' is up to date. > make[3]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' > /home/xzx/llvm-gcc-obj/gcc/xgcc -B/home/xzx/llvm-gcc-obj/gcc/ > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include -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../../llvm-gcc/gcc -I../../llvm-gcc/gcc/. > -I../../llvm-gcc/gcc/../include > -I../../llvm-gcc/gcc/../libcpp/include -I/home/xzx/llvm/include > -I/home/xzx/llvmobj//include -DL_lshrdi3 -c > ../../llvm-gcc/gcc/libgcc2.c -o libgcc/./_lshrdi3.o > WARNING: 128-bit integers not supported! > ../../llvm-gcc/gcc/libgcc2.c: In function '__lshrti3': > ../../llvm-gcc/gcc/libgcc2.c:412: internal compiler error: > Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://llvm.org/bugs <http://llvm.org/bugs>> for instructions. > make[2]: *** [libgcc/./_lshrdi3.o] Error 1 > make[2]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' > make[1]: *** [stmp-multilib] Error 2 > make[1]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' > make: *** [install-gcc] Error 2 > > And after I run > make install > I get only c++ and g++ in my llvm-gcc-install directory. > ------------------------------------------------------------------------ > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On Tue, 2007-01-09 at 21:48 -0800, Jeff Cohen wrote:> gcc 3.4.x builds LLVM incorrectly on x86_64. > > gcc 4.0 will get you much farther, but the llvm-test regression tests > still have massive problems. > > Zhongxing Xu wrote: > > The machine is a Dell workstation with xeon processors. The OS is RHEL > > 4 AS x86_64 > > gcc version is 3.4.6 > > > > I checked out the llvm-gcc from svn, configured with > > ../llvm-gcc/configure --prefix=$HOME/llvm-gcc-install > > --enable-llvm=$HOME/llvmobj/ --enable-languages=c,c++ > > --enable-checking --disable-shared --disable-multilibYou should probably also: --disable-threads --disable-nls> > > > and get the following error message: > > > > make GCC_FOR_TARGET="/home/xzx/llvm-gcc-obj/gcc/xgcc > > -B/home/xzx/llvm-gcc-obj/gcc/ > > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ > > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem > > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem > > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include" \ > > AR_FOR_TARGET="ar" \ > > AR_CREATE_FOR_TARGET="ar rc" \ > > AR_EXTRACT_FOR_TARGET="ar x" \ > > AR_FLAGS_FOR_TARGET="" \ > > CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > > -Wmissing-prototypes -Wold-style-definition -fno-common " \ > > BUILD_PREFIX="" \ > > BUILD_PREFIX_1="loser-" \ > > LANGUAGES="" \ > > LIBGCC2_CFLAGS="-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 " \ > > MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o > > crtbeginT.o > > make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' > > make[3]: `crtbegin.o' is up to date. > > make[3]: `crtend.o' is up to date. > > make[3]: `crtbeginS.o' is up to date. > > make[3]: `crtendS.o' is up to date. > > make[3]: `crtbeginT.o' is up to date. > > make[3]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' > > /home/xzx/llvm-gcc-obj/gcc/xgcc -B/home/xzx/llvm-gcc-obj/gcc/ > > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ > > -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem > > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem > > /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include -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../../llvm-gcc/gcc -I../../llvm-gcc/gcc/. > > -I../../llvm-gcc/gcc/../include > > -I../../llvm-gcc/gcc/../libcpp/include -I/home/xzx/llvm/include > > -I/home/xzx/llvmobj//include -DL_lshrdi3 -c > > ../../llvm-gcc/gcc/libgcc2.c -o libgcc/./_lshrdi3.o > > WARNING: 128-bit integers not supported!This might be the result of the subsequent segv ?> > ../../llvm-gcc/gcc/libgcc2.c: In function '__lshrti3': > > ../../llvm-gcc/gcc/libgcc2.c:412: internal compiler error: > > Segmentation fault > > Please submit a full bug report, > > with preprocessed source if appropriate. > > See <URL:http://llvm.org/bugs <http://llvm.org/bugs>> for instructions. > > make[2]: *** [libgcc/./_lshrdi3.o] Error 1 > > make[2]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' > > make[1]: *** [stmp-multilib] Error 2 > > make[1]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' > > make: *** [install-gcc] Error 2 > > > > And after I run > > make install > > I get only c++ and g++ in my llvm-gcc-install directory. > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On 1/9/07, Jeff Cohen <jeffc at jolt-lang.org> wrote:> gcc 3.4.x builds LLVM incorrectly on x86_64.As well as on Alpha. I think that version of gcc should just be marked as broken. On alpha (and x86 when using old gccs), the register allocator has memory leaks that don't exist on builds by more current gccs. Andrew
On Jan 9, 2007, at 9:48 PM, Jeff Cohen wrote:> gcc 3.4.x builds LLVM incorrectly on x86_64. > > gcc 4.0 will get you much farther, but the llvm-test regression tests > still have massive problems.Please file bug reports on these. Thanks! Evan> > Zhongxing Xu wrote: >> The machine is a Dell workstation with xeon processors. The OS is >> RHEL >> 4 AS x86_64 >> gcc version is 3.4.6 >> >> I checked out the llvm-gcc from svn, configured with >> ../llvm-gcc/configure --prefix=$HOME/llvm-gcc-install >> --enable-llvm=$HOME/llvmobj/ --enable-languages=c,c++ >> --enable-checking --disable-shared --disable-multilib >> >> and get the following error message: >> >> make GCC_FOR_TARGET="/home/xzx/llvm-gcc-obj/gcc/xgcc >> -B/home/xzx/llvm-gcc-obj/gcc/ >> -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ >> -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem >> /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem >> /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include" \ >> AR_FOR_TARGET="ar" \ >> AR_CREATE_FOR_TARGET="ar rc" \ >> AR_EXTRACT_FOR_TARGET="ar x" \ >> AR_FLAGS_FOR_TARGET="" \ >> CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict- >> prototypes >> -Wmissing-prototypes -Wold-style-definition -fno-common " \ >> BUILD_PREFIX="" \ >> BUILD_PREFIX_1="loser-" \ >> LANGUAGES="" \ >> LIBGCC2_CFLAGS="-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 " \ >> MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o >> crtbeginT.o >> make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' >> make[3]: `crtbegin.o' is up to date. >> make[3]: `crtend.o' is up to date. >> make[3]: `crtbeginS.o' is up to date. >> make[3]: `crtendS.o' is up to date. >> make[3]: `crtbeginT.o' is up to date. >> make[3]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' >> /home/xzx/llvm-gcc-obj/gcc/xgcc -B/home/xzx/llvm-gcc-obj/gcc/ >> -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/bin/ >> -B/home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/lib/ -isystem >> /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/include -isystem >> /home/xzx/llvm-gcc-install/x86_64-unknown-linux-gnu/sys-include -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../../llvm-gcc/gcc -I../../llvm-gcc/gcc/. >> -I../../llvm-gcc/gcc/../include >> -I../../llvm-gcc/gcc/../libcpp/include -I/home/xzx/llvm/include >> -I/home/xzx/llvmobj//include -DL_lshrdi3 -c >> ../../llvm-gcc/gcc/libgcc2.c -o libgcc/./_lshrdi3.o >> WARNING: 128-bit integers not supported! >> ../../llvm-gcc/gcc/libgcc2.c: In function '__lshrti3': >> ../../llvm-gcc/gcc/libgcc2.c:412: internal compiler error: >> Segmentation fault >> Please submit a full bug report, >> with preprocessed source if appropriate. >> See <URL:http://llvm.org/bugs <http://llvm.org/bugs>> for >> instructions. >> make[2]: *** [libgcc/./_lshrdi3.o] Error 1 >> make[2]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' >> make[1]: *** [stmp-multilib] Error 2 >> make[1]: Leaving directory `/home/xzx/llvm-gcc-obj/gcc' >> make: *** [install-gcc] Error 2 >> >> And after I run >> make install >> I get only c++ and g++ in my llvm-gcc-install directory. >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev