https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229893
--- Comment #10 from Piotr Kubaj <[email protected]> --- (In reply to Jan Beich from comment #9) I don't think it's HBSD's fault, the same error happens also on FreeBSD (it's just that this PC is slow so I don't want to compile all packages with Poudriere). The test case is this: $/usr/ports/www/firefox/work/.build$ cat conftest.c int main() {return 0;} It's compiled using: /usr/local/bin/clang70 -std=gnu99 -o conftest -O2 -pipe -march=native -O3 -DLIBICONV_PLUG -fstack-protector-all -isystem /usr/local/include -fno-strict-aliasing -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -Qunused-arguments -DLIBICONV_PLUG -isystem /usr/local/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -Wl,--as-needed -fstack-protector -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,--build-id=sha1 @conftest.list -L/usr/local/lib My make.conf is: CPUTYPE?=native DISTDIR=/tmp RANDOMIZE_MASTER_SITES="YES" DISABLE_VULNERABILITIES=yes DEFAULT_VERSIONS= linux=c7_64 SSP_CFLAGS="-fstack-protector-all" Compiling with -v: /usr/local/bin/clang70 -std=gnu99 -o conftest -O2 -pipe -march=native -O3 -DLIBICONV_PLUG -fstack-protector-all -isystem /usr/local/include -fno-strict-aliasing -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -Qunused-arguments -DLIBICONV_PLUG -isystem /usr/local/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -Wl,--as-needed -fstack-protector -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,--build-id=sha1 @conftest.list -L/usr/local/lib -v Result: clang version 7.0.0 (tags/RELEASE_700/final) Target: x86_64-portbld-freebsd12.0 Thread model: posix InstalledDir: /usr/local/llvm70/bin "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o conftest /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/local/lib -L/usr/lib --as-needed -z noexecstack -z text -z relro -z nocopyreloc --build-id=sha1 conftest.o -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o /usr/bin/ld: error: unresolvable relocation R_X86_64_PC32 against symbol '__stack_chk_guard'; recompile with -fPIC or remove '-z nocopyreloc' >>> defined in /lib/libc.so.7 >>> referenced by conftest.c >>> conftest.o:(main) clang-7: error: linker command failed with exit code 1 (use -v to see invocation) -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-gecko To unsubscribe, send any mail to "[email protected]"
