Re: 11.0 -r300944 build attempted WITH_META_MODE failed [amd64 targeting powerpc64 via devel/powerpc64-gcc use]

From: Mark Millard <markmi_at_dsl-only.net>
Date: Mon, 30 May 2016 11:01:08 -0700
On 2016-May-30, at 8:29 AM, Bryan Drewery <bdrewery at FreeBSD.org> wrote:

> This failure is not likely related to META_MODE.
> 
> I should have mentioned that to enable META_MODE after not having it on
> you should do a 'make cleanworld' first.
> 
> On 5/29/2016 9:19 PM, Mark Millard wrote:
>> This was my first-time-ever WITH_META_MODE attempt. I show a chunk of the log later below.
>> 
>> Retrying without WITH_META_MODE=yes resulted in no problems, unlike below.
>> 
>> A self-hosted powerpc64 11.0 -r300944 build using devel/powerpc64-gcc as the so-called "cross compiler" also did not have this problem —-but powerpc64 does not have WITH_META_MODE (no filemon.ko to load).
>> 
>> [The 2 "no problem" examples suggest that -r300944 has gotten to the point that xtoolchain like contexts work again [non-META], even self hosted ones.]
>> 
>> Here is the part of the script log around the WITH_META_MODE failure. The compiles had -v . . .
>> 
>> --- ctld.full ---
>> Using built-in specs.
>> COLLECT_GCC=/usr/local/bin/powerpc64-portbld-freebsd11.0-gcc
>> COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/lto-wrapper
>> Target: powerpc64-portbld-freebsd11.0
>> Configured with: ./../gcc-5.3.0/configure --target=powerpc64-portbld-freebsd11.0 --disable-nls --enable-languages=c,c++ --without-headers --with-gmp=/usr/local --with-pkgversion='FreeBSD Ports Collection for powerpc64' --with-system-zlib --with-as=/usr/local/bin/powerpc64-freebsd-as --with-ld=/usr/local/bin/powerpc64-freebsd-ld --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/ --build=x86_64-portbld-freebsd11.0
>> Thread model: posix
>> gcc version 5.3.0 (FreeBSD Ports Collection for powerpc64) 
>> COMPILER_PATH=/usr/local/powerpc64-freebsd/bin/:/usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/:/usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/:/usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/:/usr/local/lib/gcc/powerpc64-portbld-freebsd11.0/5.3.0/:/usr/local/lib/gcc/powerpc64-portbld-freebsd11.0/
>> LIBRARY_PATH=/usr/local/powerpc64-freebsd/bin/:/usr/local/lib/gcc/powerpc64-portbld-freebsd11.0/5.3.0/:/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/lib/:/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/
>> COLLECT_GCC_OPTIONS='-isystem' '/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/include' '-L/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib' '-B' '/usr/local/powerpc64-freebsd/bin/' '-O2' '-pipe' '-I' '/usr/src/usr.sbin/ctld/../../contrib/libucl/include' '-I' '/usr/src/usr.sbin/ctld' '-I' '/usr/src/usr.sbin/ctld/../../sys' '-I' '/usr/src/usr.sbin/ctld/../../sys/cam/ctl' '-I' '/usr/src/usr.sbin/ctld/../../sys/dev/iscsi' '-g' '-std=gnu99' '-fstack-protector-strong' '-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=unused-function' '-Wno-error=enum-compare' '-Wno-error=logical-not-parentheses' '-Wno-error=bool-compare' '-Wno-error=uninitialized' '-Wno-error=array-bounds' '-Wno-error=clobbered' '-Wno-error=cast-align' '-Wno-error=extra' '-Wno-error=attributes' '-Wno-error=inline' '-Wno-error=unused-but-set-variable' '-Wno-error=unused-value' '-Wno-error=strict-aliasing' '-Wno-error=address' '-v' '-o' 'ctld.full'
>> /usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/collect2 -plugin /usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/liblto_plugin.so -plugin-opt=/usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp//ccDS76mK.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp --eh-frame-hdr -V -melf64ppc_fbsd -V -dynamic-linker /libexec/ld-elf.so.1 -o ctld.full /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/crt1.o /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/crti.o /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/crtbegin.o -L/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib -L/usr/local/powerpc64-freebsd/bin -L/usr/local/lib/gcc/powerpc64-portbld-freebsd11.0/5.3.0 -L/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/lib -L/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib chap.o ctld.o discovery.o isns.o kernel.o keys.o log.o login.o parse.o pdu.o token.o uclparse.o -lbsdxml -ll -lmd -lsbuf -lutil -lprivateucl -lm -lssp_nonshared -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/crtend.o /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/crtn.o
>> GNU ld (GNU Binutils) 2.25.1
>>  Supported emulations:
>>   elf64ppc_fbsd
>>   elf64ppc
>>   elf32ppc_fbsd
>>   elf32ppc
>> GNU ld (GNU Binutils) 2.25.1
>>  Supported emulations:
>>   elf64ppc_fbsd
>>   elf64ppc
>>   elf32ppc_fbsd
>>   elf32ppcuclparse.o: In function `uclparse_chap':
>> /usr/src/usr.sbin/ctld/uclparse.c:61: undefined reference to `ucl_object_find_key'
>> /usr/src/usr.sbin/ctld/uclparse.c:68: undefined reference to `ucl_object_find_key'
>> uclparse.o: In function `uclparse_chap_mutual':
>> /usr/src/usr.sbin/ctld/uclparse.c:91: undefined reference to `ucl_object_find_key'
>> /usr/src/usr.sbin/ctld/uclparse.c:98: undefined reference to `ucl_object_find_key'
>> /usr/src/usr.sbin/ctld/uclparse.c:105: undefined reference to `ucl_object_find_key'
>> uclparse.o:/usr/src/usr.sbin/ctld/uclparse.c:112: more undefined references to `ucl_object_find_key' follow
>> uclparse.o: In function `uclparse_toplevel':
>> /usr/src/usr.sbin/ctld/uclparse.c:235: undefined reference to `ucl_iterate_object'
>> /usr/src/usr.sbin/ctld/uclparse.c:278: undefined reference to `ucl_iterate_object'
>> /usr/src/usr.sbin/ctld/uclparse.c:317: undefined reference to `ucl_iterate_object'
>> uclparse.o: In function `uclparse_auth_group':
>> /usr/src/usr.sbin/ctld/uclparse.c:396: undefined reference to `ucl_iterate_object'
>> /usr/src/usr.sbin/ctld/uclparse.c:416: undefined reference to `ucl_iterate_object'
>> uclparse.o:/usr/src/usr.sbin/ctld/uclparse.c:431: more undefined references to `ucl_iterate_object' follow
>> uclparse.o: In function `uclparse_target_lun':
>> /usr/src/usr.sbin/ctld/uclparse.c:202: undefined reference to `ucl_object_find_key'
>> /usr/src/usr.sbin/ctld/uclparse.c:203: undefined reference to `ucl_object_find_key'
>> uclparse.o: In function `uclparse_target':
>> /usr/src/usr.sbin/ctld/uclparse.c:731: undefined reference to `ucl_iterate_object'
>> collect2: error: ld returned 1 exit status
>> 
>> *** [ctld.full] Error code 1
>> 
>> make[4]: stopped in /usr/src/usr.sbin/ctld
>> 1 error
>> 
>> make[4]: stopped in /usr/src/usr.sbin/ctld
>> *** [all_subdir_usr.sbin/ctld] Error code 2
>> 
>> 
>> 
>> 
>> ===
>> Mark Millard
>> markmi at dsl-only.net
>> 
> 
> 
> -- 
> Regards,
> Bryan Drewery

Confirmed: after a cleanworld without WITH_META_MODE=yes a (re-)build with WITH_META_MODE=yes based buidlworld buildkernel sequence completed just fine. (I did not try a cleanworld with WITH_META_MODE=yes.)

[My other note about "/usr/bin/ld: unrecognised emulation mode: elf32ppc_fbsd" for an amd64 host to powerpc cross build via clang still applies as it was without WITH_META_MODE=yes in the first place.]



Side note:

devel/powerpc64-gcc has differing /usr/local/include related search path behavior for:

A) amd64 host -> powerpc64 cross builds: no /usr/local/include in the search path. (No devel/powerpc64-gcc Makefile with-local-prefix addition involved.)

B) powerpc64 host -> powerpc64 "self hosted cross builds": has /usr/local/include in the search path. (With or without with-local-prefix in the Makefile.)



===
Mark Millard
markmi at dsl-only.net
Received on Mon May 30 2016 - 16:01:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC