[LLVMbugs] [Bug 7212] Error while compiling llvm-gcc for ARM

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 22 02:30:33 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7212

Renato Golin <rengolin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #7 from Renato Golin <rengolin at gmail.com> 2010-07-22 04:30:32 CDT ---
Hi Jim,

I've tried with some variations of Anton's parameters (including all of them):

../llvm-gcc/configure --prefix=/work/temp/obj-arm/install
--program-prefix=llvm- --enable-llvm=/work/temp/llvm --enable-languages=c,c++
--target=arm-none-eabi --enable-checking --disable-bootstrap --with-newlib=yes
--with-headers=yes --enable-newlib-multithread=yes
--disable-newlib-supplied-syscalls --with-cpu=cortex-a8 --with-fpu=neon
--with-float=hard --with-abi=aapcs

And got the following error on every case:

libbackend.a(llvm-debug.o): In function
`llvm::DebugInfo::findRegion(tree_node*)':
/home/rengol01/temp/obj-arm/gcc/../../llvm-gcc/gcc/llvm-debug.cpp:545:
undefined reference to `llvm::DIFactory::CreateLexicalBlock(llvm::DIDescriptor,
llvm::DIFile, unsigned int, unsigned int)'
/work/temp/llvm/Release/lib/libLLVMCodeGen.a(ShrinkWrapping.o): In function
`llvm::PEI::stringifyCSRegSet(llvm::SparseBitVector<128u> const&)':
ShrinkWrapping.cpp:(.text+0x22d7): 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)'
ShrinkWrapping.cpp:(.text+0x23a0): 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)'
ShrinkWrapping.cpp:(.text+0x24d4): 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)'
ShrinkWrapping.cpp:(.text+0x2535): 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)'
ShrinkWrapping.cpp:(.text+0x2575): 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)'
/work/temp/llvm/Release/lib/libLLVMCodeGen.a(ShrinkWrapping.o):ShrinkWrapping.cpp:(.text+0x25b7):
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
collect2: ld returned 1 exit status
make[2]: *** [cc1-dummy] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/work/temp/obj-arm/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Target `all-host' not remade because of errors.
make[1]: Target `all-target' not remade because of errors.
make[1]: Leaving directory `/work/temp/obj-arm'
make: *** [all] Error 2


LLVM and Clang compile perfectly. Devang Patel may be of some help, since he
was changing the debug info, I guess.

cheers,
--renato

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list