[LLVMdev] llvm-gcc compilation error: BUILT_IN_ADJUST_TRAMPOLINE undeclared

Duncan Sands
2008-11-18T10:25:51Z

Hi Johan,

> You're right,  thanks.  However,   now I ran into the next problem.
This
> seems to be related to the fact that I have a 64-bit machine?

I also have a 64 bit machine but I don't see this, and I don't know
what the reason could be.  Hopefully someone else has a solution.

Ciao,

Duncan.

> $ ../../src/llvm-gcc/configure --prefix=/home/johan/llvm
> --program-prefix=llvm- --enable-llvm=/home/johan/llvm/obj/llvm
> --enable-languages=c,c++
> ...
> $ gmake
> ...
> /home/johan/llvm/obj/llvm-gcc/./gcc/xgcc
> -B/home/johan/llvm/obj/llvm-gcc/./gcc/
> -B/home/johan/llvm/x86_64-unknown-linux-gnu/bin/
> -B/home/johan/llvm/x86_64-unknown-linux-gnu/lib/ -isystem
> /home/johan/llvm/x86_64-unknown-linux-gnu/include -isystem
> /home/johan/llvm/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2
> -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I32
> -I../../../src/llvm-gcc/gcc -I../../../src/llvm-gcc/gcc/32
> -I../../../src/llvm-gcc/gcc/../include
> -I../../../src/llvm-gcc/gcc/../libcpp/include
> -I../../../src/llvm-gcc/gcc/../libdecnumber -I../libdecnumber
> -I/home/johan/llvm/obj/llvm/include -I/home/johan/llvm/src/llvm/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 ../../../src/llvm-gcc/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 ../../../src/llvm-gcc/gcc/tsystem.h:90,
>                  from ../../../src/llvm-gcc/gcc/crtstuff.c:68:
> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
> directory
>
>
> On Tue, Nov 18, 2008 at 10:53 AM, Duncan Sands <baldrick at free.fr>
wrote:
>
> > Hi
> >
> > > This is my first attempt to compile llvm-gcc.
> > > The llvm core compiled without problems.
> >
> > you didn't tell it where to find llvm when you configured.
> > Check out README.LLVM, in particular the --enable-llvm> >
option.
> >
> > Ciao,
> >
> > Duncan.
> >
>