[LLVMdev] Bootstrapping llvm-gcc4 on Mingw
sabre at nondot.org
Tue May 2 14:41:31 PDT 2006
On Wed, 3 May 2006, Anton Korobeynikov wrote:
> I'm currently trying to bootstrap llvm-gcc4 on mingw32 platform.
> Everything (except some small fixes) seems to be fine: stage1 finished
> successfully. I'm linking with debug variant of LLVM, since linker bug
> prevents release builds.
> $/f/tmp/llvm/gccbuild/gcc/xgcc -B/f/tmp/llvm/gccbuild/gcc/ -Bf:/tmp/llvm/install/mingw32/bin/
> -Bf:/tmp/llvm/install/mingw32/lib/ -isystem f:/tmp/llvm/install/mingw32/include -isystem
> f:/tmp/llvm/install/mingw32/sys-include -O -I../../gccsrc/gcc/../winsup/w32api/include -DIN_GCC
> -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
> -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
> -I../../gccsrc/gcc -I../../gccsrc/gcc/. -I../../gccsrc/gcc/../include -I../../gccsrc/gcc/../libcpp/include
> -I/f/tmp/llvm/build -If:/tmp/llvm/build/../src/include -DL_muldi3 -c ../../gccsrc/gcc/libgcc2.c -o
> In file included from ../../gccsrc/gcc/tsystem.h:90,
> from ../../gccsrc/gcc/libgcc2.c:41:
> f:/tmp/llvm/install/lib/../include/stdio.h: In function 'vsnprintf':
> f:/tmp/llvm/install/lib/../include/stdio.h:219: internal compiler error: in assemble_external_real, at varasm.c:1925
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://developer.apple.com/bugreporter> for instructions.
> Does anybody have idea, why does this error might occur? I can supply
> any needed information (such as -save-temps output, etc).
The function that it is dying in (assemble_external_real) should not be
called by llvm-gcc. If I had to guess, I would guess that changing
#if defined(ASM_OUTPUT_EXTERNAL) && !defined(ENABLE_LLVM)
will fix it. If so, please let me know and I'll update my tree. If not,
please get a stack trace of the failure so I can see where it is called.
More information about the llvm-dev