[llvm-dev] compile fails

Burlen Loring via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 8 12:18:50 PDT 2016


doh! never mind I see it. gcc->g++. sorry for the noise...


On 07/08/2016 12:14 PM, Burlen Loring wrote:
> Hi all,
>
> I am attempting to compile 3.8.0 on a Cray. System Gcc is ancient, gcc 
> 5.3 and 5.4 are available in non-standard loc. Build quiickly fails 
> with stl link errors. Below find cmake config line and errors. What am 
> I doing wrong?
>
> Thanks
> Burlen
>
> cmake -DCMAKE_CXX_COMPILER=`which gcc` -DCMAKE_C_COMPILER=`which gcc` 
> -DGCC_INSTALL_PREFIX=/opt/gcc/5.3.0/ -DCMAKE_BUILD_TYPE=Release 
> -DCMAKE_CXX_FLAGS="-O3 -march=native -mtune=native" 
> -DCMAKE_C_FLAGS="-O3 -march=native -mtune=native" 
> -DCMAKE_INSTALL_PREFIX=/usr/common/graphics/llvm/3.8.0/ 
> ../llvm-3.8.0.src && make -j20 && make -j20 install
>
>
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o: In function 
> `std::vector<Operator*, std::allocator<Operator*> >::~vector()':
> PerfectShuffle.cpp:(.text._ZNSt6vectorIP8OperatorSaIS1_EED2Ev[_ZNSt6vectorIP8OperatorSaIS1_EED5Ev]+0x9): 
> undefined reference to `operator delete(void*)'
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o: In function 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*) [clone .constprop.31]':
> PerfectShuffle.cpp:(.text._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.constprop.31+0x14): 
> undefined reference to `std::cout'
> PerfectShuffle.cpp:(.text._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.constprop.31+0x1f): 
> undefined reference to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.constprop.31+0x33): 
> undefined reference to `std::cout'
> PerfectShuffle.cpp:(.text._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.constprop.31+0x48): 
> undefined reference to `std::basic_ios<char, std::char_traits<char> 
> >::clear(std::_Ios_Iostate)'
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o: In function 
> `PrintMask(unsigned int, std::ostream&) [clone .constprop.30]':
> PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0x28): 
> undefined reference to `std::cout'
> PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0x6b): 
> undefined reference to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0x82): 
> undefined reference to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0x99): 
> undefined reference to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0xb0): 
> undefined reference to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0xc7): 
> undefined reference to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)'
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o:PerfectShuffle.cpp:(.text._ZL9PrintMaskjRSo.constprop.30+0xde): 
> more undefined references to `std::basic_ostream<char, 
> std::char_traits<char> >& std::__ostream_insert<char, 
> std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*, long)' follow
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o: In function 
> `main':
> PerfectShuffle.cpp:(.text.startup.main+0x149): undefined reference to 
> `std::cerr'
> PerfectShuffle.cpp:(.text.startup.main+0x1e8): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0x1f5): undefined reference to 
> `std::cerr'
> PerfectShuffle.cpp:(.text.startup.main+0x1fa): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0x211): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0x21b): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0x22a): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0x8f4): undefined reference to 
> `std::cerr'
> PerfectShuffle.cpp:(.text.startup.main+0x993): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0x99a): undefined reference to 
> `std::cerr'
> PerfectShuffle.cpp:(.text.startup.main+0x9a1): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0x9b0): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xa23): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xa37): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xa41): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xa58): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xa62): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xa71): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xa7f): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xa93): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xa9d): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xab4): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xac1): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xad0): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xade): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xaf2): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xafc): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb13): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb20): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb2f): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xb3d): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xb51): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb5b): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb72): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb7f): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xb8e): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xb9c): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xbb0): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xbba): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xbd1): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xbde): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xbed): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xbfb): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xc0f): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc19): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc30): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc3d): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc4c): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xc5a): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xc6e): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc78): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc8f): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xc9c): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xcab): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xcb9): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xccd): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xcd7): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xcee): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xcfb): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xd0a): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xd18): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xd2c): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xd36): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xd4d): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xd5a): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xd69): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xd77): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xd8b): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xd95): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xda4): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
> <std::char_traits<char> >(std::basic_ostream<char, 
> std::char_traits<char> >&, char const*)'
> PerfectShuffle.cpp:(.text.startup.main+0xdf8): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xe68): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xed6): undefined reference to 
> `std::cout'
> PerfectShuffle.cpp:(.text.startup.main+0xf62): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xf7d): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xf91): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xfb1): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xfbc): undefined reference to 
> `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> PerfectShuffle.cpp:(.text.startup.main+0xfe0): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0xfff): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0x1013): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> PerfectShuffle.cpp:(.text.startup.main+0x281a): undefined reference to 
> `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
> PerfectShuffle.cpp:(.text.startup.main+0x283f): undefined reference to 
> `std::basic_ostream<char, std::char_traits<char> >& 
> std::__ostream_insert<char, std::char_traits<char> 
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o: In function 
> `void std::vector<Operator*, std::allocator<Operator*> 
> >::_M_emplace_back_aux<Operator*>(Operator*&&)':
> PerfectShuffle.cpp:(.text._ZNSt6vectorIP8OperatorSaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_[_ZNSt6vectorIP8OperatorSaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_]+0x4a): 
> undefined reference to `operator new(unsigned long)'
> PerfectShuffle.cpp:(.text._ZNSt6vectorIP8OperatorSaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_[_ZNSt6vectorIP8OperatorSaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_]+0x80): 
> undefined reference to `operator delete(void*)'
> CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o: In function 
> `_GLOBAL__sub_I_PerfectShuffle.cpp':
> PerfectShuffle.cpp:(.text.startup._GLOBAL__sub_I_PerfectShuffle.cpp+0xe): 
> undefined reference to `std::ios_base::Init::Init()'
> PerfectShuffle.cpp:(.text.startup._GLOBAL__sub_I_PerfectShuffle.cpp+0x15): 
> undefined reference to `std::ios_base::Init::~Init()'
> /usr/common/graphics/llvm/builds/llvm-3.8.0.src/projects/libcxxabi/src/cxa_demangle.cpp: 
> In function 'char* __cxxabiv1::__cxa_demangle(const char*, char*, 
> size_t*, int*)':
> /usr/common/graphics/llvm/builds/llvm-3.8.0.src/projects/libcxxabi/src/cxa_demangle.cpp:4994:1: 
> warning: assuming pointer wraparound does not occur when comparing P 
> +- C1 with P +- C2 [-Wstrict-overflow]
>  }  // __cxxabiv1
>  ^
> /usr/common/graphics/llvm/builds/llvm-3.8.0.src/projects/libcxxabi/src/cxa_demangle.cpp:4994:1: 
> warning: assuming pointer wraparound does not occur when comparing P 
> +- C1 with P +- C2 [-Wstrict-overflow]
> collect2: error: ld returned 1 exit status
> utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/build.make:94: 
> recipe for target 'bin/llvm-PerfectShuffle' failed
> make[2]: *** [bin/llvm-PerfectShuffle] Error 1
> CMakeFiles/Makefile2:11556: recipe for target 
> 'utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/all' failed
> make[1]: *** 
> [utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....



More information about the llvm-dev mailing list