r192615 - For NetBSD/current on X86 do not use libgcc and default to libc++.

Joerg Sonnenberger joerg at britannica.bec.de
Mon Oct 14 14:22:01 PDT 2013


On Mon, Oct 14, 2013 at 01:57:46PM -0700, David Blaikie wrote:
> On Mon, Oct 14, 2013 at 1:13 PM, Joerg Sonnenberger <joerg at bec.de> wrote:
> 
> > Author: joerg
> > Date: Mon Oct 14 15:13:05 2013
> > New Revision: 192615
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=192615&view=rev
> > Log:
> > For NetBSD/current on X86 do not use libgcc and default to libc++.
> > Adjust linkage to make more sense for older releases.
> >
> > Added:
> >     cfe/trunk/test/Driver/netbsd.c
> >     cfe/trunk/test/Driver/netbsd.cpp
> >
> 
> These tests are failing for me:
> 
> Command Output (stderr):
> --
> llvm/src/tools/clang/test/Driver/netbsd.c:17:12: error: expected string not
> found in input
> // X86_64: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc"
>            ^
> <stdin>:5:72: note: scanning from here
>  "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so" "-o"
> "a.out" "crt0.o" "/usr/lib/crti.o" "crtbegin.o" "/tmp/netbsd-beaf8
> f.o" "-lc" "crtend.o" "/usr/lib/crtn.o"

Does your system have /usr/lib/crt0.o?

Joerg



More information about the cfe-commits mailing list