From owner-freebsd-ppc@freebsd.org Mon May 30 18:01:17 2016 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75283B556BC for ; Mon, 30 May 2016 18:01:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-167.reflexion.net [208.70.211.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3A9D211C6 for ; Mon, 30 May 2016 18:01:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 8807 invoked from network); 30 May 2016 18:01:40 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 30 May 2016 18:01:40 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Mon, 30 May 2016 14:01:07 -0400 (EDT) Received: (qmail 1943 invoked from network); 30 May 2016 18:01:07 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 30 May 2016 18:01:07 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 342A21C439B; Mon, 30 May 2016 11:01:06 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: 11.0 -r300944 build attempted WITH_META_MODE failed [amd64 targeting powerpc64 via devel/powerpc64-gcc use] From: Mark Millard In-Reply-To: Date: Mon, 30 May 2016 11:01:08 -0700 Cc: FreeBSD Current , FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <8A197698-51C7-43F9-9927-465602E19AAE@dsl-only.net> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2016 18:01:17 -0000 On 2016-May-30, at 8:29 AM, Bryan Drewery = wrote: > This failure is not likely related to META_MODE. >=20 > I should have mentioned that to enable META_MODE after not having it = on > you should do a 'make cleanworld' first. >=20 > 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. >>=20 >> Retrying without WITH_META_MODE=3Dyes resulted in no problems, unlike = below. >>=20 >> A self-hosted powerpc64 11.0 -r300944 build using devel/powerpc64-gcc = as the so-called "cross compiler" also did not have this problem =E2=80=94= -but powerpc64 does not have WITH_META_MODE (no filemon.ko to load). >>=20 >> [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.] >>=20 >> Here is the part of the script log around the WITH_META_MODE failure. = The compiles had -v . . . >>=20 >> --- ctld.full --- >> Using built-in specs. >> COLLECT_GCC=3D/usr/local/bin/powerpc64-portbld-freebsd11.0-gcc >> = COLLECT_LTO_WRAPPER=3D/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=3Dpowerpc64-portbld-freebsd11.0 --disable-nls = --enable-languages=3Dc,c++ --without-headers --with-gmp=3D/usr/local = --with-pkgversion=3D'FreeBSD Ports Collection for powerpc64' = --with-system-zlib --with-as=3D/usr/local/bin/powerpc64-freebsd-as = --with-ld=3D/usr/local/bin/powerpc64-freebsd-ld --prefix=3D/usr/local = --localstatedir=3D/var --mandir=3D/usr/local/man = --infodir=3D/usr/local/info/ --build=3Dx86_64-portbld-freebsd11.0 >> Thread model: posix >> gcc version 5.3.0 (FreeBSD Ports Collection for powerpc64)=20 >> = COMPILER_PATH=3D/usr/local/powerpc64-freebsd/bin/:/usr/local/libexec/gcc/p= owerpc64-portbld-freebsd11.0/5.3.0/:/usr/local/libexec/gcc/powerpc64-portb= ld-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/g= cc/powerpc64-portbld-freebsd11.0/ >> = LIBRARY_PATH=3D/usr/local/powerpc64-freebsd/bin/:/usr/local/lib/gcc/powerp= c64-portbld-freebsd11.0/5.3.0/:/usr/obj/xtoolchain/powerpc.powerpc64/usr/s= rc/tmp/lib/:/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/lib/ >> COLLECT_GCC_OPTIONS=3D'-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=3Dgnu99' = '-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=3Dunused-function' = '-Wno-error=3Denum-compare' '-Wno-error=3Dlogical-not-parentheses' = '-Wno-error=3Dbool-compare' '-Wno-error=3Duninitialized' = '-Wno-error=3Darray-bounds' '-Wno-error=3Dclobbered' = '-Wno-error=3Dcast-align' '-Wno-error=3Dextra' '-Wno-error=3Dattributes' = '-Wno-error=3Dinline' '-Wno-error=3Dunused-but-set-variable' = '-Wno-error=3Dunused-value' '-Wno-error=3Dstrict-aliasing' = '-Wno-error=3Daddress' '-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.s= o = -plugin-opt=3D/usr/local/libexec/gcc/powerpc64-portbld-freebsd11.0/5.3.0/l= to-wrapper -plugin-opt=3D-fresolution=3D/tmp//ccDS76mK.res = -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s = -plugin-opt=3D-pass-through=3D-lc -plugin-opt=3D-pass-through=3D-lgcc = -plugin-opt=3D-pass-through=3D-lgcc_s = --sysroot=3D/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 >>=20 >> *** [ctld.full] Error code 1 >>=20 >> make[4]: stopped in /usr/src/usr.sbin/ctld >> 1 error >>=20 >> make[4]: stopped in /usr/src/usr.sbin/ctld >> *** [all_subdir_usr.sbin/ctld] Error code 2 >>=20 >>=20 >>=20 >>=20 >> =3D=3D=3D >> Mark Millard >> markmi at dsl-only.net >>=20 >=20 >=20 > --=20 > Regards, > Bryan Drewery Confirmed: after a cleanworld without WITH_META_MODE=3Dyes a (re-)build = with WITH_META_MODE=3Dyes based buidlworld buildkernel sequence = completed just fine. (I did not try a cleanworld with = WITH_META_MODE=3Dyes.) [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=3Dyes 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.) =3D=3D=3D Mark Millard markmi at dsl-only.net