Hi Reid,
> 2. Make sure you aren't trying to link in some old/crufty crtend.bc
> file. Try doing "make uninstall ; make clean" in your crtend
> directory if you think this might be the case.
"make install" fails - there is no such target.
> If those don't clear the problem, please tell me what version
> of LLVM you're trying to compile (looks like 1.3) and send
> the output of:
> cd runtime ; make VERBOSE=1"
Environment:
CFEINSTALL=/cygdrive/d/3rd-party/cfrontend/install
LLVM_LIB_SEARCH_PATH=/cygdrive/d/3rd-party/cfrontend/build/gcc
PATH=/cygdrive/d/3rd-party/llvm/tools/Debug:/usr/local/bin:/usr/bin:/bin
:/usr/X11R6/bin
Here we go:
------------------------------------------------------------------------
------
if [ ! -f GCCLibraries/Makefile ]; \
then \
/cygdrive/d/3rd-party/llvm/autoconf/mkinstalldirs GCCLibraries;
\
cp /cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/Makefile
GCCLibraries/Makefile; \
fi; \
make -C GCCLibraries all - --unix
make[1]: Entering directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries'
if [ ! -f crtend/Makefile ]; \
then \
/cygdrive/d/3rd-party/llvm/autoconf/mkinstalldirs crtend; \
cp
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Makefile
crtend/Makefile; \
fi; \
make -C crtend all - --unix -w
make[2]: Entering directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend'
/cygdrive/d/3rd-party/llvm/autoconf/mkinstalldirs
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend >
/dev/null
g++ -MM -I../../../include
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/include
-I/cygdrive/d/3rd-party/llvm/include -I../../../include
-I/cygdrive/d/3rd-party/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-DATTR_DEPRECATED='__attribute__ ((deprecated))' SJLJ-Exception.cpp |
sed 's|\.o:|\.lo:|' | sed 's|SJLJ-Exception\.lo
*|/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Release/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Profile/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Debug/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/SJLJ-Excep
tion.d|g' >
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/SJLJ-Excep
tion.d
g++ -MM -I../../../include
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/include
-I/cygdrive/d/3rd-party/llvm/include -I../../../include
-I/cygdrive/d/3rd-party/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-DATTR_DEPRECATED='__attribute__ ((deprecated))' Exception.cpp | sed
's|\.o:|\.lo:|' | sed 's|Exception\.lo
*|/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Release/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Profile/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Debug/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/Exception.
d|g' >
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/Exception.
d
gcc -MM -I../../../include
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/include
-I/cygdrive/d/3rd-party/llvm/include -I../../../include
-I/cygdrive/d/3rd-party/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-DATTR_DEPRECATED='__attribute__ ((deprecated))' -o
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/crtend.d
crtend.c | sed 's|\.o:|\.lo:|' | sed 's|crtend\.lo
*|/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Release/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Profile/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Debug/&
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/crtend.d|g
' >
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/Depend/crtend.d
make[2]: Leaving directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend'
make[2]: Entering directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend'
/cygdrive/d/3rd-party/llvm/autoconf/mkinstalldirs
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj >
/dev/null
Compiling crtend.c to bytecode
PATH=/cygdrive/d/3rd-party/llvm/tools/Debug:/cygdrive/d/3rd-party/llvm/t
ools/Debug:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
/cygdrive/d/3rd-party/cfrontend/install/bin/gcc -Wall -W -Wwrite-strings
-Wno-unused -I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend
-I/cygdrive/d/3rd-party/llvm/include
-I/cygdrive/d/3rd-party/llvm/include -I../../../include
-I/cygdrive/d/3rd-party/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-DATTR_DEPRECATED='__attribute__ ((deprecated))' -c crtend.c -o
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/crten
d.bc
Compiling listend.ll to bytecode
/cygdrive/d/3rd-party/llvm/tools/Debug/llvm-as.exe listend.ll -f -o
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/liste
nd.bc
Linking comp_main.bc component...
/cygdrive/d/3rd-party/llvm/tools/Debug/gccld.exe -link-as-library
-internalize-public-api-file=/cygdrive/d/3rd-party/llvm/runtime/GCCLibra
ries/crtend/comp_main.lst
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/crten
d.bc
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/liste
nd.bc -o
/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/comp_
main.bc
/cygdrive/d/3rd-party/llvm/tools/Debug/gccld: Error linking in bytecode
file
'/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/crte
nd.bc': Bytecode file
'/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/crte
nd.bc' could not be loaded: Invalid Top Level Block Length! Type:1,
Size:880 (Vers=16, Pos=12)
make[2]: ***
[/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend/BytecodeObj/comp
_main.bc] Error 1
make[2]: Leaving directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend'
make[1]: *** [crtend/.makeall] Error 2
make[1]: Leaving directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries'
make: *** [GCCLibraries/.makeall] Error 2