[LLVMdev] version 1.0, compiling under cygwin

Valery A.Khamenya khamenya at mail.ru
Sat Oct 25 04:31:15 PDT 2003


Hello llvmdev,

  (just for fun) I've tried to compile LLVM under cygwin.
  With "make -k" I got only:

-----------------
DynamicLinker.cpp: In function `void* GetAddressOfSymbol(const char*)':
DynamicLinker.cpp:40: error: `RTLD_DEFAULT' undeclared (first use this 
   function)
DynamicLinker.cpp:40: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
-----------------
  
well, the only value supported in cygwin's dlfcn.h are RTLD_LAZY,
RTLD_NOW and RTLD_GLOBAL.

So, just for checking compilation I've changed the line

  return dlsym (RTLD_DEFAULT, symbolName);

in DynamicLinker.cpp to the following:

  return dlsym (/*RTLD_DEFAULT*/(void*)RTLD_LAZY, symbolName);

than compilation itself finished, just linkage failed with one screen
output!
The beginning of output is here (sorry if it is too much for this
maillist...) :
-------------------------------------
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0xce68): In function `GLOBAL__D__ZN2cl23ParseEnvironmentOptionsEPKcS1_S1_':
/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZNSt22_Rb_tree_base_iterator12_M_incrementEv' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0xd090):/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZStltIcSt11char_traitsIcESaIcEEbRKSbIT_T0_T1_ES8_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0x1051c):/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZnwjPv' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0x107c8):/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZNSt22_Rb_tree_base_iteratorC2Ev' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0x128e0):/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZSt18_Rb_tree_rebalancePSt18_Rb_tree_node_baseRS0_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0x13da4):/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZNSt18_Rb_tree_node_base10_S_minimumEPS_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/CommandLine.o(.stab+0x1405c):/cygdrive/w/tmp/llvm/llvm/lib/Support/CommandLine.cpp:883: reloc refers to symbol `.text$_ZSt4swapISt14_Rb_tree_colorEvRT_S2_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/ConstantRange.o(.stab+0x1a260): In function `GLOBAL__D__ZN13ConstantRangeC2EPK4Typeb':
/cygdrive/w/tmp/llvm/llvm/include/llvm/User.h:28: reloc refers to symbol `.text$_ZN12AnnotationIDC1ERKS_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Debug.o(.stab+0x1cef4): In function `GLOBAL__D_DebugFlag':
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug.cpp:50: reloc refers to symbol `.text$_ZN2cl4descC1EPKc' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Debug.o(.stab+0x1d164):/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug.cpp:50: reloc refers to symbol `.text$_ZSteqIcSt11char_traitsIcESaIcEEbPKT_RKSbIS3_T0_T1_E' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/FileUtilities.o(.stab+0x22114): In function `GLOBAL__D__Z9DiffFilesRKSsS0_PSs':
/usr/include/c++/3.3.1/iostream:143: reloc refers to symbol `.text$_ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/FileUtilities.o(.stab+0x221d4):/usr/include/c++/3.3.1/iostream:143: reloc refers to symbol `.text$_ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_PKS3_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/FileUtilities.o(.stab+0x22348):/usr/include/c++/3.3.1/iostream:143: reloc refers to symbol `.text$_ZNSt11char_traitsIcE6lengthEPKc' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/LeakDetector.o(.stab+0x24e08): In function `GLOBAL__D__ZN12LeakDetector20addGarbageObjectImplEPv':
/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSt22_Rb_tree_base_iteratorC2Ev' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/LeakDetector.o(.stab+0x284f8):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZnwjPv' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/LeakDetector.o(.stab+0x28540):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSt18_Rb_tree_node_base10_S_minimumEPS_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/LeakDetector.o(.stab+0x287f8):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZSt4swapISt14_Rb_tree_colorEvRT_S2_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2b8f4): In function `GLOBAL__D__ZN7Mangler14makeNameProperERKSs':
/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNKSt3setIPK5ValueSt4lessIS2_ESaIS2_EE5countERKS2_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2b960):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2bda4):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSt3setIPK5ValueSt4lessIS2_ESaIS2_EE6insertERKS2_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2c0d4):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSs6appendIPKcEERSsT_S3_' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2c29c):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSt17_Rb_tree_iteratorIPK5ValueRKS2_PS3_EC1ERKS_IS2_RS2_PS2_E' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2c2fc):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSt4pairISt17_Rb_tree_iteratorIPK5ValueRKS3_PS4_EbEC1ERKS7_RKb' which is not being output
/cygdrive/w/tmp/llvm/llvm/lib/Support/Debug/Mangler.o(.stab+0x2c458):/usr/include/c++/3.3.1/bits/stl_set.h:100: reloc refers to symbol `.text$_ZNSt22_Rb_tree_base_iteratorC2Ev' which is not being output
...skipped...
-------------------------------------

and the last issue was "etags: Unknown option: -l"

Remark:
---------------------------------
bash-2.05b$ etags.exe --version
Exuberant Ctags 5.5, Copyright (C) 1996-2003 Darren Hiebert
  Compiled: Jun  5 2003, 10:00:19
  Addresses: <dhiebert at users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex, +internal-sort
---------------------------------

That's it.

-- 
Best regards,
Valery                          mailto:khamenya at mail.ru




More information about the llvm-dev mailing list