Date: Fri, 30 Oct 2015 14:34:52 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: NGie Cooper <yaneurabeya@gmail.com>, "Simon J. Gerraty" <sjg@freebsd.org> Cc: Ed Maste <emaste@FreeBSD.org>, Mark Johnston <markj@FreeBSD.org>, FreeBSD CURRENT <current@freebsd.org> Subject: Re: Compilation failure with WITH_DTRACE_TESTS on mips/mips and powerpc/powerpc; it's trying to compile a host object on mips/powerpc because MAKEOBJDIRPREFIX is incorrect Message-ID: <5633E27C.6000101@FreeBSD.org> In-Reply-To: <5633DF51.1070305@FreeBSD.org> References: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com> <5633DF51.1070305@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ob6TCNlRos0oSTuPfmU8M9Bmo687eb1Jv Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/30/2015 2:21 PM, Bryan Drewery wrote: > On 10/30/2015 1:57 PM, NGie Cooper wrote: >> Hi Bryan/Simon! >> I tried doing buildworld on powerpc/powerpc with -DWITH_DTRACE_TESTS = and I ran into this linker issue below. I have no idea (yet) why it=E2=80= =99s trying to compile an x64 object when I specify powerpc/powerpc =E2=80= =94 and more importantly, why is the object not being put in obj.powerpc?= >> I ran into the same issue on ref11-amd64.freebsd.org when I ran =E2=80= =9Cmake tinderbox". >> Thanks! >> -NGie >> >=20 > Have you modified any of your local toolchain handling, or skipped > CLANG_BOOTSTRAP? I would expect this to be failing much more broadly an= d > there to be a lot more reports if there was a problem with buildworld > cross compiling. >=20 >> % make buildworld TARGET=3Dpowerpc TARGET_ARCH=3Dpowerpc >> =E2=80=A6 >> =3D=3D=3D> cddl/usr.sbin/dtrace/tests/common/json (all) >> (cd /usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json && DEPENDFILE= =3D.depend.tst.usdt.exe NO_SUBDIR=3D1 make -f /usr/src/svn/cddl/usr.sbin= /dtrace/tests/common/json/Makefile _RECURSING_PROGS=3D PROG=3Dtst.usdt.e= xe ) >> cc -O2 -pipe -fno-strict-aliasing -O2 -pipe -O0 -g -I/usr/obj/power= pc.powerpc/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json -std=3Dgnu9= 9 -fstack-protector-strong -c /usr/src/svn/cddl/contrib/opensolaris/cm= d/dtrace/test/tst/common/json/tst.usdt.c -o tst.usdt.o >> dtrace -C -x nolibs -G -o usdt.o -s /usr/src/svn/cddl/contrib/opensola= ris/cmd/dtrace/test/tst/common/json/usdt.d tst.usdt.o >> dtrace: failed to link script /usr/src/svn/cddl/contrib/opensolaris/cm= d/dtrace/test/tst/common/json/usdt.d: incorrect ELF machine type for obje= ct file: tst.usdt.o >> *** Error code 1 >> $ find /usr/obj/usr/src/svn/ -name tst.usdt.o >> /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.usdt.o= >> $ file /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst= =2Eusdt.o >> /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.usdt.o= : ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped >> I ran a buildworld with TARGET=3Dpowerpc just a few days ago and it seeme= d to be fine with PROGS. Here's a test object built via PROGS: ~/git/freebsd # find /usr/obj/powerpc.powerpc -name ld_library_pathfds.o /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o ~/git/freebsd # file /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (FreeBSD), not stripped -rw-r--r-- 1 root wheel 21136 Oct 23 17:08 /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o I see nothing special with the DTRACE_TESTS to change any of this. --=20 Regards, Bryan Drewery --Ob6TCNlRos0oSTuPfmU8M9Bmo687eb1Jv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJWM+J8AAoJEDXXcbtuRpfPJPAH/i0f1wzE6JybxAh/2nxkYABv k9CI4xvv7i1Vk8wpeEopCq1mmcXAIhVfnpWyEsfg7xrXIFvl0T792zi0yZySluHx 6QkYRgoWeCfdBYutTrf8bq+J4LZQeI41zy1o1UxUk9elPPGHJW2Lyb11qpYD/HTV 5ucJfIJEYGohET9yJbEBSB13GK3lXyQt0mKE7F6vKmDEcd7tq/prCoRWrgm7jHoF ijM0YTtfNAmBAv5NWiy7TNhYj3G83BBjDYRc6ZCTwBbSrMgLzzo9x2GyDLaCto8O JVK86Bgg/w09YR3sSHQKxL9zl81xWyBul0nTG0cMUHit2gh4HVHNCQg7F5ZV/AE= =MZyq -----END PGP SIGNATURE----- --Ob6TCNlRos0oSTuPfmU8M9Bmo687eb1Jv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5633E27C.6000101>