Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2018 16:47:53 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: New kernel-toolchain buildkernel problem for amd64 -> aarch64 cross build ( after -r336348 ) : ld used for addf_data only can target: elf_x86_64_fbsd elf_i386_fbsd
Message-ID:  <0b5b2181-7335-325c-3e7a-f882a48fcd69@FreeBSD.org>
In-Reply-To: <09601A6A-C275-4B90-9A76-7C64E2CA7B32@yahoo.com>
References:  <B3539689-7913-4790-A1DD-6911DAFAF9D0@yahoo.com> <81184558-6b23-085b-19e3-b11569808174@FreeBSD.org> <09601A6A-C275-4B90-9A76-7C64E2CA7B32@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--7Rd8MBSaacApsny1CN7IoCbi05fTFLgZH
Content-Type: multipart/mixed; boundary="YwE7MHjPBi2iZDHrPika8svfGIe9a5wF2";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Mark Millard <marklmi@yahoo.com>
Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org>,
 freebsd-arm <freebsd-arm@freebsd.org>,
 FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <0b5b2181-7335-325c-3e7a-f882a48fcd69@FreeBSD.org>
Subject: Re: New kernel-toolchain buildkernel problem for amd64 -> aarch64
 cross build ( after -r336348 ) : ld used for addf_data only can target:
 elf_x86_64_fbsd elf_i386_fbsd
References: <B3539689-7913-4790-A1DD-6911DAFAF9D0@yahoo.com>
 <81184558-6b23-085b-19e3-b11569808174@FreeBSD.org>
 <09601A6A-C275-4B90-9A76-7C64E2CA7B32@yahoo.com>
In-Reply-To: <09601A6A-C275-4B90-9A76-7C64E2CA7B32@yahoo.com>

--YwE7MHjPBi2iZDHrPika8svfGIe9a5wF2
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 7/16/2018 3:49 PM, Mark Millard wrote:
>=20
>=20
> On 2018-Jul-16, at 3:31 PM, Bryan Drewery <bdrewery at FreeBSD.org> wro=
te:
>=20
>> On 7/16/18 1:21 PM, Mark Millard wrote:
>>> I attempted a from-scratch (. . ./arm64.aarch64/ empty) kernel-toolch=
ain buildkernel
>>> targeting aarch64 from amd64 based on head -r336349 . It failed by en=
ding up
>>> using an ld that can only target elf_x86_64_fbsd elf_i386_fbsd :
>>
>> I probably extended the LLVM_TARGET_ALL=3Dno in cross-compiler too far=
=2E I
>> thought I had left that out for kernel-toolchain but apparently not.
>>
>> Try this patch and kernel-toolchain after applying please:
>> http://people.freebsd.org/~bdrewery/patches/cross-compiler-fix.diff
>> . . .
>=20
> Result is unchanged. Details follow.

Ok, I'll look more tomorrow.

>=20
> With:
>=20
> # svnlite diff /usr/src/Makefile.inc1
> Index: /usr/src/Makefile.inc1
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- /usr/src/Makefile.inc1	(revision 336349)
> +++ /usr/src/Makefile.inc1	(working copy)
> @@ -666,7 +666,7 @@
>  BMAKE=3D		\
>  		${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \
>  		${BSARGS}
> -.if empty(.MAKEOVERRIDES:MMK_LLVM_TARGET_ALL)
> +.if empty(.MAKEOVERRIDES:MMK_LLVM_TARGET_ALL) && !make(*toolchain*)
>  BMAKE+=3D		MK_LLVM_TARGET_ALL=3Dno
>  .endif
> =20
> used via:
>=20
> # rm -fr /usr/obj/cortexA53_clang/arm64.aarch64/*
> # ~/sys_build_scripts.amd64-host/make_cortexA53_nodebug_clang_bootstrap=
-amd64-host.sh -j4 kernel-toolchain buildkernel
>=20
> I still get:
>=20
> --- buildkernel ---
> Building /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/arm64.aarch64/s=
ys/GENERIC-NODBG/modules/usr/src/sys/modules/accf_data/accf_data.kld
> --- accf_data.kld ---
> ld: unrecognised emulation mode: aarch64elf
> Supported emulations: elf_x86_64_fbsd elf_i386_fbsd
> *** [accf_data.kld] Error code 1
>=20
>=20
>=20
> Reminder of what my .sh script does:
>=20
> # more ~/sys_build_scripts.amd64-host/make_cortexA53_nodebug_clang_boot=
strap-amd64-host.sh
> kldload -n filemon && \
> script ~/sys_typescripts/typescript_make_cortexA53_nodebug_clang_bootst=
rap-amd64-host-$(date +%Y-%m-%d:%H:%M:%S) \
> env __MAKE_CONF=3D"/root/src.configs/make.conf" SRCCONF=3D"/dev/null" S=
RC_ENV_CONF=3D"/root/src.configs/src.conf.cortexA53-clang-bootstrap.amd64=
-host" \
> WITH_META_MODE=3Dyes \
> MAKEOBJDIRPREFIX=3D"/usr/obj/cortexA53_clang/arm64.aarch64" \
> make $*
>=20
> (I'll not repeat the other supporting material.)
>=20
> =3D=3D=3D
> Mark Millard
> marklmi at yahoo.com
> ( dsl-only.net went
> away in early 2018-Mar)
>=20


--=20
Regards,
Bryan Drewery


--YwE7MHjPBi2iZDHrPika8svfGIe9a5wF2--

--7Rd8MBSaacApsny1CN7IoCbi05fTFLgZH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEE+Rc8ssOq6npcih8JNddxu25Gl88FAltNLq5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
MTczQ0IyQzNBQUVBN0E1QzhBMUYwOTM1RDc3MUJCNkU0Njk3Q0YACgkQNddxu25G
l8+eKwf/Yg98Y1BAGfFWVVj85w5ii1FSLI7wqNOfXk9ZiPvQFfNtGfLoXOIuVbqI
mB2gjclNTj10iO75IiiwsUZhXxIc2BMECFDYNE08erDu9wn9J0ifMlROGIlmhF3H
x3yZyBBmsIW2b2c33Q0jWEU6Jx78HlK3Ijxuwbhs1u0ZyAXIyRVoqEpjhhxlF1lk
5ieZWTGDVykig8lPQo4Qih1iFROfWDhGwKGpYwkFa5H2jh6Y/paJgIk+KAjUcOa1
JO+PDhwEH9ocZnhQVOR/ptDLh+mxoM6whfCQtTI9r3RFphM1wMXQRTe/EpBjRnRE
k+Rh94VKNDdgLfGXDZrGj9Sm5QEDCA==
=bZ38
-----END PGP SIGNATURE-----

--7Rd8MBSaacApsny1CN7IoCbi05fTFLgZH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0b5b2181-7335-325c-3e7a-f882a48fcd69>