llvm-c++ fails to compile/link trivial c++ program

Michael Reifenberger mike at reifenberger.com
Tue Dec 9 04:05:59 PST 2008


Hi,
compiling the attached program test2.c++ using `llvm-c++ -Wall test2.c++` 
gives:
/usr/bin/ld: BFD 2.15 [FreeBSD] 2004-05-23 assertion fail 
elf64-amd64-fbsd.c:2166
/usr/bin/ld: BFD 2.15 [FreeBSD] 2004-05-23 assertion fail 
elf64-amd64-fbsd.c:2166

Is our linker too old or is it a llvm-gcc bug?
Or an interference with the base compiler?

I'm using the current llvm and llvm-gcc ports on FreeBSD RELENG_7 amd64.

BTW: commenting out the '#include <iostream>' line fixes the error...

Bye/2
---
Michael Reifenberger
Michael at Reifenberger.com
http://www.Reifenberger.com



More information about the freebsd-ports mailing list