[LLVMdev] [Cygwin] 'make tools-only' configuration error

Aaron Gray angray at beeb.net
Tue May 31 13:15:00 PDT 2005


I did not report this first error earlier as I thought it trivial.

Basically it looks like something odd is happening with the configuration and 'include/llvm/config/config.h'

Getting this error on building the tools on a fresh Cygwin install and update :-

$ make tools-only
make[1]: Entering directory `/usr/build/llvm/lib/System'
llvm[1]: Compiling Path.cpp for Debug build
In file included from /usr/src/llvm/lib/System/Path.cpp:104:
/usr/src/llvm/lib/System/Unix/Path.inc: In static member function `static llvm::
sys::Path llvm::sys::Path::GetTemporaryDirectory()':
/usr/src/llvm/lib/System/Unix/Path.inc:93: error: `mkdtemp' undeclared (first us
e this function)
/usr/src/llvm/lib/System/Unix/Path.inc:93: error: (Each undeclared identifier is
 reported only once for each function it appears in.)
make[1]: *** [/usr/build/llvm/lib/System/Debug/Path.o] Error 1
make[1]: Leaving directory `/usr/build/llvm/lib/System'
make: *** [all] Error 1

On commenting out the "#define HAVE_MKDTEMP 1" this error is bypassed, but what is leading to this error ?

This happens on a new fresh install of Cygwin, GCC 3.4.3, binutils 2.15, and fresh llvm from CVS !

And it is repeatable. Either I am doing something basic wrong or there is an issue here, what I do not understand is why I did not run into it when we (Reid Spencer and myself) did the previous Cygwin debugging session.

It looks like the configure script is failing drastically, I am confused.

Still getting the previous error :-

llvm[2]: Linking Debug executable llc
/usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x30506): In function `_GLOBAL__D__ZN7
6_GLOBAL__N__usr_src_llvm_lib_Target_X86_X86ISelPattern.cpp_9D2164D3_CFE6F8F217X
86TargetLowering14LowerArgumentsERN4llvm8FunctionERNS1_12SelectionDAGE':
/usr/src/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference to `X86C
ompilationCallback2'
/usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x305f2):/usr/src/llvm/lib/Target/X86/
X86ISelPattern.cpp:73: undefined reference to `_X86CompilationCallback'
/usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x30601):/usr/src/llvm/lib/Target/X86/
X86ISelPattern.cpp:73: undefined reference to `_X86CompilationCallback'
collect2: ld returned 1 exit status
make[2]: *** [/usr/build/llvm/Debug/bin/llc.exe] Error 1
make[2]: Leaving directory `/usr/build/llvm/tools/llc'
make[1]: *** [llc/.makeall] Error 2
make[1]: Leaving directory `/usr/build/llvm/tools'
make: *** [all] Error 1

Doing 'make tools-only ENABLE_OPTIMIZED=1 gives a simular but different error :-

llvm[2]: Linking Release executable llc (without symbols)
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/build/llvm-2/Release/lib/LLVMX86.o(.text+0x51d76):X86InstrInfo.cpp: undefined reference to `X86CompilationCallback2'
/usr/build/llvm-2/Release/lib/LLVMX86.o(.text+0x51e0a):X86JITInfo.cpp: undefined reference to `_X86CompilationCallback'
/usr/build/llvm-2/Release/lib/LLVMX86.o(.text+0x51e1f):X86JITInfo.cpp: undefined reference to `_X86CompilationCallback'
/usr/binutils-2.15/bin/ld: BFD 2.15 assertion fail ../../../src/binutils-2.15/bfd/cofflink.c:1930
make[2]: *** [/usr/build/llvm-2/Release/bin/llc.exe] Error 1
make[2]: Leaving directory `/usr/build/llvm-2/tools/llc'
make[1]: *** [llc/.makeall] Error 2
make[1]: Leaving directory `/usr/build/llvm-2/tools'
make: *** [all] Error 1

I have gone back to the older Cygwin environment that worked before but am now getting the same results as with the newer Cygwin installation. Why it worked before but not now I do not know.

The first error in this mail does not occur with the older Cygwin installation.

The only thing I can think is it is my instillation proceedure but I cannot find anything wrong with it.

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050531/f143c4c8/attachment.html>


More information about the llvm-dev mailing list