Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2015 16:43:40 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        NGie Cooper <yaneurabeya@gmail.com>
Cc:        Bryan Drewery <bdrewery@freebsd.org>, Ed Maste <emaste@freebsd.org>, "Mark Johnston" <markj@freebsd.org>, FreeBSD CURRENT <current@freebsd.org>, <sjg@juniper.net>
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:  <6585.1446248620@chaos>
In-Reply-To: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com>
References:  <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
NGie Cooper <yaneurabeya@gmail.com> wrote:
> 	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 an=
d 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".

Is it possible that the file is left over from a previous build (of amd64?)

Does your log show it being built?


> dtrace -C -x nolibs -G -o usdt.o -s /usr/src/svn/cddl/contrib/opensolaris=
/cmd/dtrace/test/tst/common/json/usdt.d tst.usdt.o
> dtrace: failed to link script /usr/src/svn/cddl/contrib/opensolaris/cmd/d=
trace/test/tst/common/json/usdt.d: incorrect ELF machine type for object fi=
le: 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.us=
dt.o
> /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.usdt.o: E=
LF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6585.1446248620>