[LLVMbugs] [Bug 10504] New: clang 3.0 on freebsd 9-current amd64 dies on some construct when linking

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 26 12:29:01 PDT 2011


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

           Summary: clang 3.0 on freebsd 9-current amd64 dies on some
                    construct when linking
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clang at opsec.eu
                CC: llvmbugs at cs.uiuc.edu


While researching the recent test run for clang in the freebsd ports,
one port I maintain ran into a bug, see:

http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/cego-2.10.11.log

The author of cego and lfcxml investigated and built a testcase for the
problem,
which you can download from:

http://opsec.eu/src/clang-fbsd9-bug.tgz

Extract and run make on freebsd9-current displays:

$ make
clang++   -c Main.cc
clang++   -c Parent.cc
clang++   -c Child.cc
clang++   -c Master.cc
clang++ -v -o dtest Main.o Parent.o Child.o Master.o
FreeBSD clang version 3.0 (trunk 132879) 20110612
Target: x86_64-unknown-freebsd9.0
Thread model: posix
 "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 -o dtest
/usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib Main.o Parent.o
Child.o Master.o -lstdc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc
-lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o
Master.o: In function `Master::~Master()':
Master.cc:(.text+0x5e): undefined reference to `Parent::~Parent()'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
*** Error code 1

Stop in /usr/home/pi/src/clang-fbsd9-bug.

-- 
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