NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: string_view and clang



On Tue, Jun 12, 2018 at 12:32:30PM +0100, Patrick Welche wrote:
> Great news!
> 
> In the meantime, to try things out, I installed pkgsrc/lang/gcc8 and see:
> 
> $ make
> rm -f .gdbinit
> touch .gdbinit
> #   compile  ts/net.o
> c++  -O2 -fPIE -Werror -std=c++14 -fPIC   -I/usr/src/local/networking-ts-impl/include  -c    net.cpp
> #      link  ts/net
> c++    -lpthread  -pie  -shared-libgcc      -o net  net.o  -Wl,-rpath-link,/lib  -L=/lib     
> /usr/bin/ld: /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.1.0/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
> /usr/bin/ld: /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.1.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status

I got the same problem and reported upstream.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87221

seems like I don't get it with gcc<8, at least.


Home | Main Index | Thread Index | Old Index