tech-pkg archive

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

gcc8 PIE support (firefox)



Just curious - does anything need to be done to enable PIE support in the pkgsrc gcc8? Just tried building firefox with it and it errors out?

Thanks

checking for PIE support... no [0/350]
configure: error: --enable-pie requires PIE support from the linker.              
[...]
DEBUG: configure:6308: checking for PIE support
DEBUG: configure:6319: /var/obj/pkg/www/firefox/work/.cwrapper/bin/gcc -o conftest -O2 -I/usr/pkg/include/nspr -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS -pipe -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/ffmpeg4 -I/usr/X11R7/include/freetype2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Dunix -ffunction-sections -fdata-sections -fno-math-errno -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/ffmpeg4 -I/usr/X11R7/include/freetype2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wl,-R/usr/pkg/lib/firefox -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.2.0 -Wl,-R/usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.2.0 -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nss -Wl,-R/usr/pkg/lib/nss -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib/ffmpeg4 -Wl,-R/usr/pkg/lib/ffmpeg4 -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,--build-id -fPIC -DPIC -pie conftest.c  1>&5
DEBUG: /usr/bin/ld: /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.2.0/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
DEBUG: /usr/bin/ld: /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.2.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC
DEBUG: /usr/bin/ld: final link failed: Nonrepresentable section on output



Home | Main Index | Thread Index | Old Index