As this avoided using system-clang (or any clang), the -secure-plt leading to bss-plt being forced issue for 32-bit powerpc appears to *NOT* be clang-specific at all!
I was just curious to see what would be reported. (The system-clang and devel/binutils@powerpc combination completed buildworld buildkernel. It reported forcing bss-plt but did not stop early.) (I have left my old xtoolchain-gcc naming in directory names.) --- libc.so.7.full --- /usr/local/bin/powerpc-unknown-freebsd13.0-ld: bss-plt forced due to /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/crtbeginS.o collect2: error: ld returned 1 exit status *** [libc.so.7.full] Error code 1 For reference: # /usr/local/bin/powerpc-unknown-freebsd13.0-ld -v GNU ld (GNU Binutils) 2.33.1 For reference for the link: # Meta data file /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/lib/libc/libc.so.7.full.meta CMD @echo building shared library libc.so.7 CMD @rm -f libc.so.7 libc.so CMD /usr/local/bin/powerpc-unknown-freebsd13.0-gcc9 -gdwarf-2 --sysroot=/usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp -B/usr/local/powerpc-unknown-freebsd13.0/bin/ - Wl,--secure-plt -nodefaultlibs -Wl,--version-script=Version.map -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libc.so.7.full -Wl,-soname,libc.so.7 `NM='/usr/local/powerpc-unkno wn-freebsd13.0/bin/nm' NMFLAGS='' lorder trivial-vdso_tc.pico . . . . . . wmemset.pico | tsort -q` -lcompiler_rt -lssp_nonshared CWD /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/lib/libc TARGET libc.so.7.full -- command output -- building shared library libc.so.7 /usr/local/bin/powerpc-unknown-freebsd13.0-ld: bss-plt forced due to /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/crtbeginS.o collect2: error: ld returned 1 exit status *** Error code 1 . . . E 36494 /usr/local/bin/powerpc-unknown-freebsd13.0-ld R 36494 /etc/libmap.conf R 36494 /var/run/ld-elf.so.hints R 36494 /lib/libc.so.7 R 36494 /usr/local/libexec/gcc/powerpc-unknown-freebsd13.0/9.2.0/liblto_plugin.so R 36494 Version.map R 36494 libc.so.7.full W 36494 libc.so.7.full R 36494 /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/crti.o R 36494 /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/crti.o R 36494 /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/crtbeginS.o R 36494 /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/crtbeginS.o . . . For reference for building crtbeginS.o (much gcc9 detail included from using -v): # Meta data file /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/lib/csu/powerpc/crtbeginS.o.meta CMD /usr/local/bin/powerpc-unknown-freebsd13.0-gcc9 -gdwarf-2 --sysroot=/usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp -B/usr/local/powerpc-unknown-freebsd13.0/bin/ -O 2 -pipe -I/usr/src/lib/csu/common -I/usr/src/lib/libc/include -DCRT_IRELOC_SUPPRESS -g -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict- prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decl s -Wold-style-definition -Wno-pointer-sign -Wno-error=address -Wno-error=array-bounds -Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered -Wno-error=deprecated-dec larations -Wno-error=enum-compare -Wno-error=extra -Wno-error=inline -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing -Wno-error=uninitialized -Wno-error=unused-but-set-variable -Wno-erro r=unused-function -Wno-error=unused-value -Wno-error=misleading-indentation -Wno-error=nonnull-compare -Wno-error=shift-negative-value -Wno-error=tautological-compare -Wno-error=unused-const-variable -Wno-error=bool-operation -Wno-error=deprecated -Wno-error=expansion-to-defined -Wno-error=format-overflow -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context - Wno-error=memset-elt-size -Wno-error=noexcept-type -Wno-error=nonnull -Wno-error=pointer-compare -Wno-error=stringop-overflow -Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type -Wn o-error=catch-value -Wno-error=multistatement-macros -Wno-error=restrict -Wno-error=sizeof-pointer-memaccess -Wno-error=stringop-truncation -v -I/usr/src/lib/csu/powerpc -DSHARED -fpic -c -o crtb eginS.o /usr/src/lib/csu/common/crtbegin.c CWD /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/lib/csu/powerpc TARGET crtbeginS.o -- command output -- Using built-in specs. COLLECT_GCC=/usr/local/bin/powerpc-unknown-freebsd13.0-gcc9 Target: powerpc-unknown-freebsd13.0 Configured with: /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc/gcc-9.2.0/configure --target=powerpc-unknown-freebsd13.0 --disable-nls --enable-languages=c,c++ --enable-gnu-indirect-function --ena ble-initfini-array --program-prefix=powerpc-unknown-freebsd13.0- --program-suffix=9 --without-headers --with-gmp=/usr/local --with-pkgversion='FreeBSD Ports Collection for powerpc' --with-system-zlib --with-gxx-include-dir=/usr/include/c++/v1/ --with-sysroot=/ --with-as=/usr/local/bin/powerpc-unknown-freebsd13.0-as --with-ld=/usr/local/bin/powerpc-unknown-freebsd13.0-ld --prefix=/usr/local --local statedir=/var --mandir=/usr/local/man --infodir=/usr/local/share/info/ --build=x86_64-unknown-freebsd13.0 Thread model: posix gcc version 9.2.0 (FreeBSD Ports Collection for powerpc) COLLECT_GCC_OPTIONS='-gdwarf-2' '-B' '/usr/local/powerpc-unknown-freebsd13.0/bin/' '-O2' '-pipe' '-I' '/usr/src/lib/csu/common' '-I' '/usr/src/lib/libc/include' '-D' 'CRT_IRELOC_SUPPRESS' '-g' '-std=g nu99' '-Wno-format-zero-length' '-Wsystem-headers' '-Wall' '-Wno-format-y2k' '-Wextra' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wpointer-arith' '-Wreturn-type' '-Wcast-qual' '-Wwrite-strings' '- Wswitch' '-Wshadow' '-Wunused-parameter' '-Wcast-align' '-Wchar-subscripts' '-Winline' '-Wnested-externs' '-Wredundant-decls' '-Wold-style-definition' '-Wno-pointer-sign' '-Wno-error=address' '-Wno-er ror=array-bounds' '-Wno-error=attributes' '-Wno-error=bool-compare' '-Wno-error=cast-align' '-Wno-error=clobbered' '-Wno-error=deprecated-declarations' '-Wno-error=enum-compare' '-Wno-error=extra' '-W no-error=inline' '-Wno-error=logical-not-parentheses' '-Wno-error=strict-aliasing' '-Wno-error=uninitialized' '-Wno-error=unused-but-set-variable' '-Wno-error=unused-function' '-Wno-error=unused-value ' '-Wno-error=misleading-indentation' '-Wno-error=nonnull-compare' '-Wno-error=shift-negative-value' '-Wno-error=tautological-compare' '-Wno-error=unused-const-variable' '-Wno-error=bool-operation' '- Wno-error=deprecated' '-Wno-error=expansion-to-defined' '-Wno-error=format-overflow' '-Wno-error=format-truncation' '-Wno-error=implicit-fallthrough' '-Wno-error=int-in-bool-context' '-Wno-error=memse t-elt-size' '-Wno-error=noexcept-type' '-Wno-error=nonnull' '-Wno-error=pointer-compare' '-Wno-error=stringop-overflow' '-Wno-error=aggressive-loop-optimizations' '-Wno-error=cast-function-type' '-Wno -error=catch-value' '-Wno-error=multistatement-macros' '-Wno-error=restrict' '-Wno-error=sizeof-pointer-memaccess' '-Wno-error=stringop-truncation' '-v' '-I' '/usr/src/lib/csu/powerpc' '-D' 'SHARED' ' -fpic' '-c' '-o' 'crtbeginS.o' /usr/local/libexec/gcc/powerpc-unknown-freebsd13.0/9.2.0/cc1 -quiet -v -I /usr/src/lib/csu/common -I /usr/src/lib/libc/include -I /usr/src/lib/csu/powerpc -isysroot /usr/obj/powerpcvtsc_xtoolchain-gc c/powerpc.powerpc/usr/src/powerpc.powerpc/tmp -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ -Acpu=powerpc -Amachine=powerpc -D CRT_IRELOC_SUPPRESS -D SHARED /usr/src/lib/csu/common/crtbegin.c -quiet -dumpbase crtbegin.c -auxbase-strip crtbeginS.o -gdwarf-2 -g -O2 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wretu rn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-error= address -Wno-error=array-bounds -Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered -Wno-error=deprecated-declarations -Wno-error=enum-compare -Wno-error=extra -Wn o-error=inline -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing -Wno-error=uninitialized -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=m isleading-indentation -Wno-error=nonnull-compare -Wno-error=shift-negative-value -Wno-error=tautological-compare -Wno-error=unused-const-variable -Wno-error=bool-operation -Wno-error=deprecated -Wno-e rror=expansion-to-defined -Wno-error=format-overflow -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context -Wno-error=memset-elt-size -Wno-error=noexcept-type -Wn o-error=nonnull -Wno-error=pointer-compare -Wno-error=stringop-overflow -Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type -Wno-error=catch-value -Wno-error=multistatement-macros - Wno-error=restrict -Wno-error=sizeof-pointer-memaccess -Wno-error=stringop-truncation -std=gnu99 -version -fpic -o - | /usr/local/bin/powerpc-unknown-freebsd13.0-as -v -I /usr/src/lib/csu/common -I /usr/src/lib/libc/include -I /usr/src/lib/csu/powerpc -mppc -many -K PIC -mbig -o crtbeginS.o GNU assembler version 2.33.1 (powerpc-unknown-freebsd13.0) using BFD version (GNU Binutils) 2.33.1 GNU C99 (FreeBSD Ports Collection for powerpc) version 9.2.0 (powerpc-unknown-freebsd13.0) compiled by GNU C version FreeBSD Clang 9.0.0 (tags/RELEASE_900/final 372316), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/lib/gcc/powerpc-unknown-freebsd13.0/9.2.0/include-fixed" ignoring nonexistent directory "/usr/local/lib/gcc/powerpc-unknown-freebsd13.0/9.2.0/../../../../powerpc-unknown-freebsd13.0/include" #include "..." search starts here: #include <...> search starts here: /usr/src/lib/csu/common /usr/src/lib/libc/include /usr/src/lib/csu/powerpc /usr/local/lib/gcc/powerpc-unknown-freebsd13.0/9.2.0/include /usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/include End of search list. GNU C99 (FreeBSD Ports Collection for powerpc) version 9.2.0 (powerpc-unknown-freebsd13.0) compiled by GNU C version FreeBSD Clang 9.0.0 (tags/RELEASE_900/final 372316), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: c272cae35a1ab078596359ed10bcfdea /usr/src/lib/csu/common/crtbegin.c: In function '__do_global_dtors_aux': /usr/src/lib/csu/common/crtbegin.c:83:21: warning: array subscript 1 is above array bounds of 'void (*[1])(void)' [-Warray-bounds] 83 | fn = __DTOR_LIST__[n]; | ~~~~~~~~~~~~~^~~ /usr/src/lib/csu/common/crtbegin.c:68:17: note: while referencing '__DTOR_LIST__' 68 | static crt_func __DTOR_LIST__[] __section(".dtors") __used = { | ^~~~~~~~~~~~~ /usr/src/lib/csu/common/crtbegin.c: In function 'register_classes': /usr/src/lib/csu/common/crtbegin.c:114:49: warning: array subscript 0 is above array bounds of 'void (*[0])(void)' [-Warray-bounds] 114 | if (_Jv_RegisterClasses != NULL && __JCR_LIST__[0] != 0) | ~~~~~~~~~~~~^~~ /usr/src/lib/csu/common/crtbegin.c:114:49: warning: array subscript 0 is above array bounds of 'void (*[0])(void)' [-Warray-bounds] /usr/src/lib/csu/common/crtbegin.c:105:17: note: while referencing '__JCR_LIST__' 105 | static crt_func __JCR_LIST__[] __section(".jcr") __used = { }; | ^~~~~~~~~~~~ COMPILER_PATH=/usr/local/powerpc-unknown-freebsd13.0/bin/:/usr/local/libexec/gcc/powerpc-unknown-freebsd13.0/9.2.0/:/usr/local/libexec/gcc/powerpc-unknown-freebsd13.0/9.2.0/:/usr/local/libexec/gcc/pow erpc-unknown-freebsd13.0/:/usr/local/lib/gcc/powerpc-unknown-freebsd13.0/9.2.0/:/usr/local/lib/gcc/powerpc-unknown-freebsd13.0/:/usr/local/lib/gcc/powerpc-unknown-freebsd13.0/9.2.0/../../../../powerpc -unknown-freebsd13.0/bin/ LIBRARY_PATH=/usr/local/powerpc-unknown-freebsd13.0/bin/:/usr/local/lib/gcc/powerpc-unknown-freebsd13.0/9.2.0/:/usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerpc/tmp/usr/lib/ COLLECT_GCC_OPTIONS='-gdwarf-2' '-B' '/usr/local/powerpc-unknown-freebsd13.0/bin/' '-O2' '-pipe' '-I' '/usr/src/lib/csu/common' '-I' '/usr/src/lib/libc/include' '-D' 'CRT_IRELOC_SUPPRESS' '-g' '-std=g nu99' '-Wno-format-zero-length' '-Wsystem-headers' '-Wall' '-Wno-format-y2k' '-Wextra' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wpointer-arith' '-Wreturn-type' '-Wcast-qual' '-Wwrite-strings' '- Wswitch' '-Wshadow' '-Wunused-parameter' '-Wcast-align' '-Wchar-subscripts' '-Winline' '-Wnested-externs' '-Wredundant-decls' '-Wold-style-definition' '-Wno-pointer-sign' '-Wno-error=address' '-Wno-er ror=array-bounds' '-Wno-error=attributes' '-Wno-error=bool-compare' '-Wno-error=cast-align' '-Wno-error=clobbered' '-Wno-error=deprecated-declarations' '-Wno-error=enum-compare' '-Wno-error=extra' '-W no-error=inline' '-Wno-error=logical-not-parentheses' '-Wno-error=strict-aliasing' '-Wno-error=uninitialized' '-Wno-error=unused-but-set-variable' '-Wno-error=unused-function' '-Wno-error=unused-value ' '-Wno-error=misleading-indentation' '-Wno-error=nonnull-compare' '-Wno-error=shift-negative-value' '-Wno-error=tautological-compare' '-Wno-error=unused-const-variable' '-Wno-error=bool-operation' '- Wno-error=deprecated' '-Wno-error=expansion-to-defined' '-Wno-error=format-overflow' '-Wno-error=format-truncation' '-Wno-error=implicit-fallthrough' '-Wno-error=int-in-bool-context' '-Wno-error=memse t-elt-size' '-Wno-error=noexcept-type' '-Wno-error=nonnull' '-Wno-error=pointer-compare' '-Wno-error=stringop-overflow' '-Wno-error=aggressive-loop-optimizations' '-Wno-error=cast-function-type' '-Wno -error=catch-value' '-Wno-error=multistatement-macros' '-Wno-error=restrict' '-Wno-error=sizeof-pointer-memaccess' '-Wno-error=stringop-truncation' '-v' '-I' '/usr/src/lib/csu/powerpc' '-D' 'SHARED' ' -fpic' '-c' '-o' 'crtbeginS.o' === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) _______________________________________________ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"