Skip to content

llvm-gcc fails to build on Fedora Linux x86_86 #4087

@llvmbot

Description

@llvmbot
Bugzilla Link 3715
Resolution INVALID
Resolved on Apr 22, 2009 05:26
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

While attempting to compile llvm-gcc on my x86_64 Fedora Linux machine I noticed that it was trying to find /usr/include/gnu/stubs-32.h instead of using the existing /usr/include/gnu/stubs-64.h header file.

../llvm-gcc4.2-2.5.source/configure --enable-llvm=pwd/../llvm-2.5 --program-prefix=llvm- --enable-languages=c,c++ --host=x86_64-redhat-linux --build=x86_64-redhat-linux

make

...
make GCC_FOR_TARGET="/usr/local/src/llvm-gcc4.2-2.5.build/./gcc/xgcc -B/usr/local/src/llvm-gcc4.2-2.5.build/./gcc/ -B/usr/local/x86_64-redhat-linux/bin/ -B/usr/local/x86_64-redhat-linux/lib/ -isystem /usr/local/x86_64-redhat-linux/include -isystem /usr/local/x86_64-redhat-linux/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 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common "
BUILD_PREFIX=""
BUILD_PREFIX_1=""
LANGUAGES=""
LIBGCC2_CFLAGS="-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 -m32 "
LIBGCC2_STATIC_CFLAGS=""
MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbegin.o 32/crtend.o 32/crtbeginS.o 32/crtendS.o 32/crtbeginT.o 32/crtfastmath.o
make[5]: Entering directory /usr/local/src/llvm-gcc4.2-2.5.build/gcc' /usr/local/src/llvm-gcc4.2-2.5.build/./gcc/xgcc -B/usr/local/src/llvm-gcc4.2-2.5.build/./gcc/ -B/usr/local/x86_64-redhat-linux/bin/ -B/usr/local/x86_64-redhat-linux/lib/ -isystem /usr/local/x86_64-redhat-linux/include -isystem /usr/local/x86_64-redhat-linux/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I32 -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/32 -I../../llvm-gcc4.2-2.5.source/gcc/../include -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/usr/local/src/llvm-gcc4.2-2.5.build/../llvm-2.5/include -I/usr/local/src/llvm-2.5/include -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \ -c ../../llvm-gcc4.2-2.5.source/gcc/crtstuff.c -DCRT_BEGIN \ -o 32/crtbegin.o In file included from /usr/include/features.h:359, from /usr/include/stdio.h:28, from ../../llvm-gcc4.2-2.5.source/gcc/tsystem.h:90, from ../../llvm-gcc4.2-2.5.source/gcc/crtstuff.c:68: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[5]: *** [32/crtbegin.o] Error 1 make[5]: Leaving directory /usr/local/src/llvm-gcc4.2-2.5.build/gcc'
make[4]: *** [extra32] Error 2
make[4]: Leaving directory /usr/local/src/llvm-gcc4.2-2.5.build/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory /usr/local/src/llvm-gcc4.2-2.5.build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory /usr/local/src/llvm-gcc4.2-2.5.build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory /usr/local/src/llvm-gcc4.2-2.5.build'
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions