From nobody Fri Aug 11 06:47:32 2023 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RMZ9l4MQVz4mM76 for ; Fri, 11 Aug 2023 06:47:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RMZ9l1Dkpz3GYg; Fri, 11 Aug 2023 06:47:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.17.1/8.17.1) with ESMTPS id 37B6lXws063195 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 11 Aug 2023 09:47:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 37B6lXws063195 Received: (from kostik@localhost) by tom.home (8.17.1/8.17.1/Submit) id 37B6lWJj063191; Fri, 11 Aug 2023 09:47:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 11 Aug 2023 09:47:32 +0300 From: Konstantin Belousov To: Dimitry Andric Cc: Christoph Moench-Tegeder , Mark Millard , toolchain@freebsd.org Subject: Re: c++: dynamic_cast woes Message-ID: References: <6B6A7C9C-8F82-443D-BBC3-B2263FEAFD79@FreeBSD.org> <6E31D6F9-8E9D-42FE-9D14-2A80EBD2B912@FreeBSD.org> <2AEA9921-5943-475C-B307-C5020BBE3F32@FreeBSD.org> List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2AEA9921-5943-475C-B307-C5020BBE3F32@FreeBSD.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on tom.home X-Rspamd-Queue-Id: 4RMZ9l1Dkpz3GYg X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] On Thu, Aug 10, 2023 at 07:38:26PM +0200, Dimitry Andric wrote: > On 10 Aug 2023, at 00:25, Dimitry Andric wrote: > > > > On 9 Aug 2023, at 00:29, Christoph Moench-Tegeder wrote: > >> > >> ## Dimitry Andric (dim@FreeBSD.org): > >> > >>> Yes, this is a typical problem when type info is replicated across > >>> dynamic library boundaries. The best thing to prevent this is to > >>> ensure that the key functions for a class (typically constructors > >>> and destructors) are only in one translation unit (object file), > >>> and that object file is only in one .so file. > >> > >> As FreeBSD is basically unsupported from upstream, this sounds > >> like I'm in for quite a bit of fun here. Well. > > > > FWIW, it took quite a while (kicad has LOTS of dependencies!), but I > > built kicad and it looks like I can reproduce the original problem, > > after disabling the static-cast-patch. So I will investigate it a bit > > further. > > It looks like KiCad is violating the One Definition Rule (ODR) all over > the place... So it will not really be trivial to fix, unfortunately. > > The problem is that C++ virtual tables and type information gets copied > into *both* the kicad main binaries (kicad/kicad-cli), and the plugins > (_*.kiface). This is due to the way the binaries and plugins get linked, > namely to a bunch of static libraries containing the common kicad parts > (libcommon.a, libscripting.a, etc). > > Classes like KICAD_SETTINGS or JOB_EXPORT_SCH_PDF are declared in header > files, and usually their vtables and type_info get emitted into one > particular object file, so for instance the vtable and type_info for > KICAD_SETTINGS gets emitted into kicad_settings.cpp.o. > > However, kicad_settings.cpp.o gets archived into libcommon.a, and this > libcommon.a gets linked into both the main binaries *and* the .kiface > plugins! It means there are now multiple copies of the same virtual > table and type_info, and that is an explicit violation of the ODR. > > The behavior at runtime is now officially undefined, but in practice it > is implementation-defined: some implementations like libstdc++ work > around it, by doing a deep comparison of type_info when casting > dynamically. Others, like libcxxrt and libc++abi, only compare the > addresses of the different copies of the same type_info, and in such > cases the comparison will fail. > > The correct way to fix this is by making sure the common code gets put > into one shared libary, which explicitly exports all the required > symbols (so using __dllexport on Windows, and non-hidden visibility on > ELF platforms). Only then can you make sure the ODR is not violated. > > But this would entail a pretty big refactoring for KiCad... :) There is some GNU hack called STB_GNU_UNIQUE, which was made to handle this kind of mess. Or if you prefer, to make this mess even more tangled. The https://gcc.gnu.org/legacy-ml/gcc-patches/2009-07/msg01240.html is probably the best available documentation. I am not sure if our rtld should handle the attribute. From nobody Sun Aug 13 17:04:39 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP3mq4nYdz4mPKb for ; Sun, 13 Aug 2023 17:04:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP3mp2Ghkz4V9B for ; Sun, 13 Aug 2023 17:04:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Up9eB2D0; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691946296; bh=vqOo9AzPLOgdkEcr022/HgLxSvskz9JIR5KJEJA6AME=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=Up9eB2D0qPTp9GJZm10T/8+TwwPfb/mwMKzAipVN6xO8LG1y05I8JyvYDjzFMxXGAtRUy3RZW2BRapHuUnfKKrLnXfvWXdNv4HBeBdvTBn0FUgOGJviocKh1HTNDzUIx+VjYcweMiZurmUc9y8yop8jcr4sOw3M/cYHzNtDrmNbZ+bK5fvjJuzdk7KeAnMVH+I/ZaXQbm41YtcV4oScP7W9GYxx+dpvDg30Tvgu5LvLjYZYvKhg7g8bN3kpfVSOsfhdiJmnbLyr2zW4D0rWPCSPYmS6EtHm9d+q99jiWLG0Mp57u0NeCkX5ihCqXv5tQ2yLnmBg+3dA8CcqpYa/UBQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691946296; bh=VTFz/nhQFJ3RHpB7xQ5DLe2XHFuqgP6l9ohsBKuNG7l=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=ZQnLsXdyQtmNpcWFlwM+hfCaZBl/DR7eN6VXdrFOCyrRfh29smOArslargC4JiGMM1ZucnzKiUilQM/qDsxIG9fUdmRrZCDwRRsoNAmVuTJKFwu451syGeAZTIXrjFiML1thX4KepFY1jSJzr3Mf4gp9tgT6AQGXnLqDQWulADkdIdm1KDRwgY2Vwv8wx50DB5muDqRtUFO7We4Ke2q4NxOeOrvEIh2oYAup9CIzvRdbPn4Ny+gfdCfb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kRR2IXhEeItEK_QhCW_4fGZpgtllVJgtn0d2hKsLDjvsEIwMuIiouvAkSKN3 t2Ho0xOA6T5OTXkjfxLxWTFkrkz5GQLvVBMAv_Q7ffzWDau44bkCQr2bFA4Gv_G9MPkcXLcQLaXp UQs.eh8ONku1TB8z3A2IOHjMmIh0WjQT8HHFK7PbEw428fYEPWlkpA8DDPHuEvzTwqFEILKCBnxu EnIbPWHwh4xYZtF8LUi_wYkxyW3LHHgMR5jmEZty4kLb9SQ1yLsICFTtut_FiyfB1pr.2xBQNocw XuS.Y X-Sonic-MF: X-Sonic-ID: e46d25d3-791d-40d9-97af-ac49171acb8f Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 17:04:56 +0000 Received: by hermes--production-ne1-7b767b77cc-swgdr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 53e30fc3496575d0b01ebcffb3b5a25f; Sun, 13 Aug 2023 17:04:51 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 Message-Id: <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE@yahoo.com> Date: Sun, 13 Aug 2023 10:04:39 -0700 To: Juraj Lutter , Current FreeBSD , FreeBSD Toolchain , Mike Karels X-Mailer: Apple Mail (2.3731.700.6) References: <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE.ref@yahoo.com> X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.147:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.147:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RP3mp2Ghkz4V9B Juraj Lutter wrote on Date: Sun, 13 Aug 2023 12:42:45 UTC : > > On 13 Aug 2023, at 00:17, Mike Karels wrote: > >=20 > > On 12 Aug 2023, at 15:32, Juraj Lutter wrote: > >=20 > > Did the buildworld start out by building a cross-compiler? > >=20 > > Have you tried without meta mode? With a clean objdir, I don't see = how > > it would matter, but I'm not sure I've tried it. > >=20 > > The ALPHA1 builds seem to have worked, but I think they run on = arm64. > >=20 >=20 > See here: https://files.wilbury.net/s/bJKKB5Kbta6DNqB for the full = log. >=20 Looks to me like "make package" is broken for context in which: make[1]: "/usr/src/Makefile.inc1" line 340: SYSTEM_COMPILER: libclang = will be built for bootstrapping a cross-compiler. make[1]: "/usr/src/Makefile.inc1" line 345: SYSTEM_LINKER: libclang will = be built for bootstrapping a cross-linker. happends. (Or "make package" just is just not intended to support such = contexts?) Details follow . . . Your log shows: make[1]: "/usr/src/Makefile.inc1" line 340: SYSTEM_COMPILER: libclang = will be built for bootstrapping a cross-compiler. make[1]: "/usr/src/Makefile.inc1" line 345: SYSTEM_LINKER: libclang will = be built for bootstrapping a cross-linker. But searching shows no such builds happening during arm64.aarch64/tmp/ , = just some of the prerequisites ( tools/lib/clang/libllvmminimal tools/lib/clang/libclangminimal = tools/usr.bin/clang/clang-tblgen tools/usr.bin/clang/llvm-tblgen tools/usr.bin/clang/lldb-tblgen ) ~/Downloads/bw-arm64-aarch64-out.txt:1: [Creating objdir = /usr/obj/usr/src/arm64.aarch64...] ~/Downloads/bw-arm64-aarch64-out.txt:21: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tools/build...] ~/Downloads/bw-arm64-aarch64-out.txt:48: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools...] ~/Downloads/bw-arm64-aarch64-out.txt:51: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/tools/build...] ~/Downloads/bw-arm64-aarch64-out.txt:168: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal...] ~/Downloads/bw-arm64-aarch64-out.txt:170: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libclangminimal...]= ~/Downloads/bw-arm64-aarch64-out.txt:172: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/dtc...] ~/Downloads/bw-arm64-aarch64-out.txt:174: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/fortune/strfile...] ~/Downloads/bw-arm64-aarch64-out.txt:231: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/libopenbsd...] ~/Downloads/bw-arm64-aarch64-out.txt:248: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/rpcgen...] ~/Downloads/bw-arm64-aarch64-out.txt:272: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/yacc...] ~/Downloads/bw-arm64-aarch64-out.txt:362: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/xinstall...] ~/Downloads/bw-arm64-aarch64-out.txt:387: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.sbin/bsnmpd/gensnmptree..= .] ~/Downloads/bw-arm64-aarch64-out.txt:415: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.sbin/config...] ~/Downloads/bw-arm64-aarch64-out.txt:433: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/vtfontcvt...] ~/Downloads/bw-arm64-aarch64-out.txt:477: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.sbin/zic...] ~/Downloads/bw-arm64-aarch64-out.txt:487: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/mandoc...] ~/Downloads/bw-arm64-aarch64-out.txt:545: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/localedef...] ~/Downloads/bw-arm64-aarch64-out.txt:637: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/mkesdb...] ~/Downloads/bw-arm64-aarch64-out.txt:717: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/mkcsmapper...] ~/Downloads/bw-arm64-aarch64-out.txt:750: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/kerberos5/tools/make-roken...= ] ~/Downloads/bw-arm64-aarch64-out.txt:805: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/kerberos5/lib/libroken...] ~/Downloads/bw-arm64-aarch64-out.txt:1041: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/kerberos5/lib/libvers...] ~/Downloads/bw-arm64-aarch64-out.txt:1056: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/kerberos5/tools/asn1_compile.= ..] ~/Downloads/bw-arm64-aarch64-out.txt:1122: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/kerberos5/tools/slc...] ~/Downloads/bw-arm64-aarch64-out.txt:1153: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/compile_et...] ~/Downloads/bw-arm64-aarch64-out.txt:1263: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/clang/clang-tblgen...= ] ~/Downloads/bw-arm64-aarch64-out.txt:1265: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/clang/llvm-tblgen...]= ~/Downloads/bw-arm64-aarch64-out.txt:1267: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/usr.bin/clang/lldb-tblgen...]= ~/Downloads/bw-arm64-aarch64-out.txt:16253: [Creating objdir = /usr/obj/usr/src/arm64.aarch64/release...] No arm64.aarch64/tmp/ SYSTEM_COMPILER or SYSTEM_LINKER bootstrap = compiler/linker were built. =46rom what I can tell, this leads to: cc -march=3Darmv7 -m32 -target armv7-unknown-freebsd14.0-gnueabihf = -DCOMPAT_LIBCOMPAT=3D\"32\" -DCOMPAT_libcompat=3D\"32\" -DCOMPAT_LIB32 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib32 -O2 -pipe -fno-common = -fPIC -g -gz=3Dzlib -MD -MF.depend.libssp_nonshared.o = -MTlibssp_nonshared.o -std=3Dgnu99 -Wno-format-zero-length = -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k = -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch = -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts = -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time = -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-error=3Dunused-but-set-parameter -Qunused-arguments -c = /usr/src/lib/libssp_nonshared/libssp_nonshared.c -o libssp_nonshared.o using the pre-existing system compiler that, in your context, gets: error: unable to create target: 'No available targets are compatible = with triple "armv7-unknown-freebsd14.0-gnueabihf"' 1 error generated. I doubt that "make package" was tested for being able to handle the lib32 addition to aarch64 builds for SYSTEM_COMPILER or SYSTEM_LINKER bootstrap cases. =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Sun Aug 13 17:10:16 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP3vB1fBKz4mPcq; Sun, 13 Aug 2023 17:10:30 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP3vB12x7z4Wln; Sun, 13 Aug 2023 17:10:30 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691946630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OghbVaY57ZsxDuI5uyx8vsiIJWLBIvGm0mpyBOyTh4k=; b=KO30AwqArNK5FbyLxZtkwS6jkM+MUuQ9LT+P6LktNeBFIy6IR3HSSeP2h/VV6FNhK/R8f0 oi0tOsZaiuzKXGDGUMNgnIxhlrpuMm/KWlMRd2RPhOwZfw3xuXZIB4Mo6TUm0rRfvCBDpq hINT0ZdJBg/LGNyoKgTRw8hAJA9DH/HgM6Ig1ICw3/z5gkH16mWiA5C1CRpjtNSRCqJ6mw NWcxl9i13Yb4rY01SdGS8KYUXGICCM5gipYQE32qO46PfKTGV2xdN0FHWQ0bdFzgc1XSqY mGzw7YAZ6MyppmKWMDXG6grx4+JXVGn2cS6gDClloG9AVmO6kWkwJY7kkfqzzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691946630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OghbVaY57ZsxDuI5uyx8vsiIJWLBIvGm0mpyBOyTh4k=; b=tUfu1bG3O7OokNwHYyHKDaBwIobIvXiHrTl4Dy0zjdA4ZmU8gkKLbE8bmxLQMg0B8K090J AqSryrIltqblcZ61qrZuHNJyzqx4m5UlY7rY//hD1y1mZHfnQiOdLtCV6oBfzr7DgPdN/5 rH01ttxoqxgkMFdRhrtnvZS6XJum0RjJDheDN+gYFL7bUUMYCI3DNGM3WIivssQwp1te+f PoIbv/aTApiMa6tnEOZ5Bs1fw7G/yMsrKEYLZSHUs18+X8AuN1xZbzit4MgOgDBOYnol3F pfNWFjdRBZPsYN0Bxz6Eb1Wq63ml4sWy8eq+wHqBF34Elpk099Mp/xn+oV6OSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691946630; a=rsa-sha256; cv=none; b=fwTiQw6jVHBCfgkpKf5AA+osf1lFs3Snn1JfJ3nxAY7MsXGf9fZgtBlFgc+bxwrMwAoOr9 Buq8tdP4w4AaFNUgKOJvK4lQPCG4aRZb45KTZHQqCIS+/h23c4hG3avVaLFj6EQEnUYLfM rdg8lmBWj5T+pjRDERf837W2wR32vJASeYdSgqCb37fL+3V5e88T/N5D+KkY/gG6cdaA3h AtZhGn+qTod/lhwjvZJhvitPA+3R+4AWpsjxZgFIHXeudNjhvP/Aa6CbhXBGPN+57w2ZCy AGhnHT+4O+jnP7zhtfJQ1nUIqTPYOJEA6ok+Gzxei0Ntnk3rf4VxtUqtiug0SQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ns2.wilbury.net (ns2.wilbury.net [92.60.51.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RP3v96NTgz10CS; Sun, 13 Aug 2023 17:10:29 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (unknown [212.89.239.228]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id D8E2261F96; Sun, 13 Aug 2023 19:10:27 +0200 (CEST) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Juraj Lutter In-Reply-To: <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE@yahoo.com> Date: Sun, 13 Aug 2023 19:10:16 +0200 Cc: Current FreeBSD , FreeBSD Toolchain , Mike Karels Content-Transfer-Encoding: quoted-printable Message-Id: <3D94C0A3-0231-4C04-8C69-5516A4A41B03@FreeBSD.org> References: <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE.ref@yahoo.com> <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) Mark, > On 13 Aug 2023, at 19:04, Mark Millard wrote: >=20 > No arm64.aarch64/tmp/ SYSTEM_COMPILER or SYSTEM_LINKER bootstrap = compiler/linker were built. >=20 > =46rom what I can tell, this leads to: >=20 > cc -march=3Darmv7 -m32 -target armv7-unknown-freebsd14.0-gnueabihf = -DCOMPAT_LIBCOMPAT=3D\"32\" -DCOMPAT_libcompat=3D\"32\" -DCOMPAT_LIB32 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib32 -O2 -pipe -fno-common = -fPIC -g -gz=3Dzlib -MD -MF.depend.libssp_nonshared.o = -MTlibssp_nonshared.o -std=3Dgnu99 -Wno-format-zero-length = -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k = -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch = -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts = -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time = -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-error=3Dunused-but-set-parameter -Qunused-arguments -c = /usr/src/lib/libssp_nonshared/libssp_nonshared.c -o libssp_nonshared.o >=20 > using the pre-existing system compiler that, in your context, gets: >=20 > error: unable to create target: 'No available targets are compatible = with triple "armv7-unknown-freebsd14.0-gnueabihf"' > 1 error generated. >=20 True, exactly the same error I=E2=80=99m getting. >=20 > I doubt that "make package" was tested for being able to handle > the lib32 addition to aarch64 builds for SYSTEM_COMPILER or > SYSTEM_LINKER bootstrap cases. >=20 I=E2=80=99m getting it in buildworld, not in packages (it does not come = to packages target) otis =E2=80=94 Juraj Lutter otis@FreeBSD.org From nobody Sun Aug 13 17:50:03 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP4n819Vjz4mSWS for ; Sun, 13 Aug 2023 17:50:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP4n7487Lz3Cc5 for ; Sun, 13 Aug 2023 17:50:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691949017; bh=+26y6wO7CYoL4i6O7JQ6A1XwA2Nz8ZRKlBW0/XrBe2s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=UPpGMXp8SD5LkEK5l95LVZUdhnffd+OQ4l8VMWZDo/YKRHrEdfaknvp+ep/cCV3m7Ph4V81aEpMsKCMCkByH4FMb5wQaKjpC7VXt6hSwJzG/yRfqgdTcPG+pQ9K4q5mU5UnUxu74dmrfu+LeQr1rTPKyaWjIByJ9HD1g/t06AT21XfJl4t5T6UQmEQuMUuwrg9+fj0L8d12eN2lubRcQt/NawE5z+fF64QIp4jhipMKjkd2tMPemnMrYCGZLkM8awQKCYbB1avdaKOXtvFTeKiqhNYi937I2R+tMxv5ii6EhAEoXtGvKu1gu6rfoSUHsCqCE7FAM7P7W69/CperaXA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691949017; bh=lNfor5b+0xo+TMyR4b1QYlLROXTsTYzeY0gk8UDGEdZ=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=Y1wMpy5hY29y6FFcJxPeAJ66A48EBEa30jJqVXEsbwCTqTDTpIVvNazrgo9PEOK7OemenfRwC3R9qY5DI/b1/dcWQNnBiILMrfL348pbUkkffc4CrglA21NeA/MKz5TGyN+X33dh2vkV72bc7P65ujW3tIFlwW2U5MzBlQ9nxQeTzGjGolyi462JicCF4azaV2uhBSOKX92ZmBH78HB7Cp2TOC5I5dI4ovDW80dhoacUz80Kg5+NmbBqQQY6+66ucRfgqb0vDMXbAj0mG8QuVHiu5MgyiTo8CdT+pXcqr02RyXfLTW2tw05B+kAx8TF+6whsThTeYXTCX+Q7MtZ/IQ== X-YMail-OSG: EtuGa2wVM1lKUqt_SzBJRSq1FswkPn83Ek2It8DzpghAUicR1R6dsS8omvNkJez yYyZusC4eFzmfhnO3I0s4fvnK0Xprmq3Su9Qf60ZTnn9rycPcZ8zkbrZxVVoHhm1NYysewiUQab4 sy5nvLJujw0EvVS0NtLfczMqfAZPX201TseR4X__2PhVBKlzdwD.l2eTY64hC95_xxzC9vc_Fovk XMOT0Wf1SGGYuQdPTo9FhrVd0g0Te0appHBnmM39W5VnYY6ggVTMkpEMDkQvGN3UxO6Ni8ayi7P2 ML4Xg4RWIg.QkK2KcLQobSUiWYGbrnoRch3jrE5geSHJ58zMMeV4gDFnKyoJwYBYHKEj73tvxJrY mSyGAXU5isuYvD7IIi1teH8X6fvewflHKqXgSSMNUlgfTz8O5nkazBot5Nuln7njzx21qxLjowdP 3LFb64EcWk1AvQy_9S3deW2tcWZQBQWKomoZLIvMP4g6iOjgx3gWwwostFrL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6rIFRebfoKhjw9Cd5G dEXqtVoOamBRHUfTWXFHUyauq9IPmBAhe8PPNQsxtpRVu8zETEneNsnAZyaGxs0Qie88b6jog9ii jvJgR8GjAq3eTHHa9ozvMi0BdRUSsBMn7j4sEmTS6bqAh2Bfoo9UHt0aZcDvBffmabO.to7LAyI9 wxP1J31W9PqospH2ylQOvDqDtdVHZqXxcLDiSOHxbSw37487XRd3.gb7wCTeGl2pgUS4HsSmiIoy V5Z5SWRPU4.E4byLRW_gx.CgG8w_gYCCZ1zcta.qbJeKTK9aeZiyXSEtQDcdUouASV3p8N1cxxCy D_e_hEkB8KnEM8uhcmN30fXGMbyLlbPLXTZmrmwF9qRRY88CITuhZtY0QO0FePzOQsIEf5v7QGFb z01NTXJXSJFhzTfi5xjDQT0XbGtZJuBlEvZ.mi.gh4VN4glyj7h7kVHdg4Pv36czQwTlL1qyJTY3 QwgGiq5U8MjKd4cikbEjSsEVK678N_DZIaejJRv97XfzpCGDd1drBwbCW9qmDz.jukDbRuO6a1O8 1v9jw8GOMRc2naif8VfpQdMJNTanruduFJoxyADNLFgAjhDpBvC9eo3XlRCoGFpbkVpB8aFtsAa8 g4_6lSXn05cM5GmjNb13IgRjcPCqcLntiaJ814i0Ber9Mp0tJ8M5dWdbjdgXcLOI9qsd8twokOzq M3MeEHZh9Hfstm2kI1coZWt6B2iiOVNyAOUbWwCuUDdXdlPMa6.EF8dhC3acE4nUaOZkpOrkO.e6 s X-Sonic-MF: X-Sonic-ID: 4180bfcf-a491-46fa-962e-27ad91874074 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 17:50:17 +0000 Received: by hermes--production-bf1-865889d799-r6v2w (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 152c06392a2b898d44c06c6173da6628; Sun, 13 Aug 2023 17:50:16 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Mark Millard In-Reply-To: <3D94C0A3-0231-4C04-8C69-5516A4A41B03@FreeBSD.org> Date: Sun, 13 Aug 2023 10:50:03 -0700 Cc: Current FreeBSD , FreeBSD Toolchain , Mike Karels Content-Transfer-Encoding: quoted-printable Message-Id: References: <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE.ref@yahoo.com> <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE@yahoo.com> <3D94C0A3-0231-4C04-8C69-5516A4A41B03@FreeBSD.org> To: Juraj Lutter X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RP4n7487Lz3Cc5 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Aug 13, 2023, at 10:10, Juraj Lutter wrote: > Mark, >=20 >> On 13 Aug 2023, at 19:04, Mark Millard wrote: >>=20 >> No arm64.aarch64/tmp/ SYSTEM_COMPILER or SYSTEM_LINKER bootstrap = compiler/linker were built. >>=20 >> =46rom what I can tell, this leads to: >>=20 >> cc -march=3Darmv7 -m32 -target armv7-unknown-freebsd14.0-gnueabihf = -DCOMPAT_LIBCOMPAT=3D\"32\" -DCOMPAT_libcompat=3D\"32\" -DCOMPAT_LIB32 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib32 -O2 -pipe -fno-common = -fPIC -g -gz=3Dzlib -MD -MF.depend.libssp_nonshared.o = -MTlibssp_nonshared.o -std=3Dgnu99 -Wno-format-zero-length = -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k = -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch = -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts = -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time = -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-error=3Dunused-but-set-parameter -Qunused-arguments -c = /usr/src/lib/libssp_nonshared/libssp_nonshared.c -o libssp_nonshared.o >>=20 >> using the pre-existing system compiler that, in your context, gets: >>=20 >> error: unable to create target: 'No available targets are compatible = with triple "armv7-unknown-freebsd14.0-gnueabihf"' >> 1 error generated. >>=20 >=20 > True, exactly the same error I=E2=80=99m getting. It was extracted from a copy of your log file. >> I doubt that "make package" was tested for being able to handle >> the lib32 addition to aarch64 builds for SYSTEM_COMPILER or >> SYSTEM_LINKER bootstrap cases. >>=20 >=20 > I=E2=80=99m getting it in buildworld, not in packages (it does not = come to packages target) >=20 Sorry. Looks like I misapplied one of your messages mentioning use of "make package" as specifying the context for the log file. Still, your log file does not show an arm64.aarch64/tmp/ time frame build of the SYSTEM_COMPILER or SYSTEM_LINKER bootstrap compiler/linker. There should have also been: tmp/obj-tools/lib/clang/libllvm...] tmp/obj-tools/lib/clang/libclang...] tmp/obj-tools/lib/clang/headers...] tmp/obj-tools/usr.bin/clang/clang...] tmp/obj-tools/usr.bin/clang/lld...] to go with: make[1]: "/usr/src/Makefile.inc1" line 340: SYSTEM_COMPILER: libclang = will be built for bootstrapping a cross-compiler. make[1]: "/usr/src/Makefile.inc1" line 345: SYSTEM_LINKER: libclang will = be built for bootstrapping a cross-linker. So it still looks to me like a build infrastructure problem: it did not do what it said it would do. I've no clue about why at this point. I'll note that clang and lld do not get per-target builds like gcc does. "bootstrap" means for getting version differences early on in this context, not the targeting. =E2=80=94 Juraj Lutter otis@FreeBSD.org =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Sun Aug 13 17:52:21 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP4qm6YChz4mSxC; Sun, 13 Aug 2023 17:52:36 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP4qm5jpnz3FZ3; Sun, 13 Aug 2023 17:52:36 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691949156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R7IsL2t3u5karf+KoNMWJsj0Q6QQwRfRx/Hykgu6L50=; b=UbTHbZsGdJeySzt9djaUR27W9ZmtbK6xiddVwrJYUwGd4IyLa+0xPpvmk4wSklBa6MynCa o/llaIirTtGeeEmzs43d505VAp5OmAwCmizFJeX4dFgJ3ILXELPYmu1j4M+FdsRka8oFak aqHPei6yld6bPm0OlJmUeg+/fAOfTravN0nMWmgJJb95Xxu3AEtj4oFnI3QxUZHlp2kt0B DaWp+zNc1aybFP9FhygGbdJTOs0EAHE92h2i00mIROIW5mO1MUYGNFFRYBErQ04KWegItJ Y5sqwCIyG+4i1M/0ZG1hyKkJlE13PQ4IUmooQfqTjJJTnGqn3YDBMW/egr0+7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691949156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R7IsL2t3u5karf+KoNMWJsj0Q6QQwRfRx/Hykgu6L50=; b=s3fRxqtz+eBAbFTBvTpj+8JBNq15NS0PtXDyecweinlVDsua6WLof9Sn5EBJ17pm3nTheP UDvKFce/PYR8LHrMUIS90HmvTOk+yO1bfJaVcYTYeziQW2qtkgWEQ0CA59c4fs7uXVR7s0 nAkEOZ0Sds4bIWInNZQsxAXzIF4iyFFtyuXrmocP37pwpQ3CfPztugcgSJ1iIROOSgEJod kiJZD4SYvzzi9Wo5ZMkJcQvx9MAx8VeevUMueIERdDg3nCLLBnJY8WdMQGTu0OFkuU7dNT nNwA11yXBCBMZBf5hPfFOR3u/rSwKapAXqarNsupEauFCuDf2oQFitfKPTrEtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691949156; a=rsa-sha256; cv=none; b=YwtsP9ZFIyH9GEiDka9DLGpFSD0LewH0+w4s35u8dWNso1X0UszD8WJkwS879BwhWhqowE Eh0vniEquc7+uSjVqw0zzPkVpTvs75S0WEtxO8yzV90g02F86auSa+WZ524/PfN3UNzmfQ zf2uNmu56zz87YRww1qim1FTyJN+6KEQzMGcxJpxJELImFTYARwnpiPoKTHWVVs3icCHz6 McBe88hivQ0/vN5jkuxbN+Ve9eg0Vy1Xqgq7/7MAosxoyzVBlznaE9AAlFYe1C5igXiW2F OkqC7pxEUeWms41kNQIa5NlOfVOK41FeCbc/D4Ge0d7tHrvAaul5N3zCgMBY8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ns2.wilbury.net (ns2.wilbury.net [IPv6:2a01:b200:0:1:f816:3eff:fecd:13e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RP4qm3yxtz11H4; Sun, 13 Aug 2023 17:52:36 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (unknown [212.89.239.228]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id C0AD661F91; Sun, 13 Aug 2023 19:52:34 +0200 (CEST) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Juraj Lutter In-Reply-To: Date: Sun, 13 Aug 2023 19:52:21 +0200 Cc: Current FreeBSD , FreeBSD Toolchain , Mike Karels Content-Transfer-Encoding: quoted-printable Message-Id: References: <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE.ref@yahoo.com> <2A8F9F90-B03C-4A7B-9B03-B54386CEBBAE@yahoo.com> <3D94C0A3-0231-4C04-8C69-5516A4A41B03@FreeBSD.org> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) > On 13 Aug 2023, at 19:50, Mark Millard wrote: >=20 > So it still looks to me like a build infrastructure problem: > it did not do what it said it would do. I've no clue about > why at this point. >=20 > I'll note that clang and lld do not get per-target builds like > gcc does. "bootstrap" means for getting version differences early > on in this context, not the targeting. See the other thread. After backing out = f1d5183124d3e18d410ded61e45adb9a23b23c83, cross tools started to build = again. otis =E2=80=94 Juraj Lutter otis@FreeBSD.org From nobody Sun Aug 13 19:13:20 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP6dH2HClz4q3Lb for ; Sun, 13 Aug 2023 19:13:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-20.consmr.mail.gq1.yahoo.com (sonic317-20.consmr.mail.gq1.yahoo.com [98.137.66.146]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP6dF5kvgz3Qln for ; Sun, 13 Aug 2023 19:13:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=EZfI7YQy; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691954016; bh=/p40Am/puiLMIxBeGX9KhTvIQcdGtdAorI0m5gW3hek=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=EZfI7YQykTZChTBy5c0g/5/Fz+Bsglh40vloscKl3QyiLoCqk+WIdOxL2QW5lwKW7UnlK28yd5xgVC3SVZcFbYpiE16VoBlWQaIuROHeM39DpDRA5dD9TfwrKNcMVwyPmuVjNyuIt3XLUp0IA6nZ1IYmXPv3CMYwyunDHjehVyF1N4ov47h9a4Svga0rL7RphDXAAgWhPXCrbKQbpE05E6EAGPTLu6unMstj43sM19+9KT65aWEA+onbEiFcOHqU0hM0oeoMbV1pQk6aIrSw+sm9k3bDy8H9jYYa/v4sZ77b1a/N/VuPqOOXzFODANUilygupU0SXGxAQz2SQSEhLg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F3.zyVeXsQpox.7YL YkTzmx4m1JBUr0_aJoRqC4KP8P3ht3pFuF9qsNSd.SCksdw5KD1baTwvreRnBv65eGlKtEOqAfcf hKJKI.XBhHxuZhxk1X9jN9i7KBzlvQY9dIwX.2BrlYSPKmpBi6RNFZECHXT66CkfRY8dQNorihCh taJtPsZuiuq.ZbqLAecHY989UErMIb5._o0jz5M5kZ3kITuIcdHHGjFL16_kW4t6LIT0.xZb6N4K 3X10ybvQmYKgDiTrsHOVh7pQ9y7H_3Q_.YSrPozNpx37HPP9EtI3A2maRfY4ya5lBaDti.0Pt8Ex 2qTAyQXZdYEt1Xfj8ng7odzUY4lLLucuTKbjPxwSx.Kj4EEH2sdMQiUR9LHnTYkkQzEZN5cG8cpR jFcNqyUVO6DqINBqwbC2TAqXKpJ3eZ5OYpw88KJXyhbQ0mBazW.rM28f5U7eFOiU8fRxF1gNtQPE paMt.wTe9V.a_q.x7YlMPCcXCXBH8q0vrdMnRMp3PetrBo5_nKVO07xqUcJfd4.dGliuA7JymYoF 2uP7JWjmGcbTqpofwnuFtCQdgIXUp22gSoJGIMaTAgukifku6ZEGAtmGpYn_m4A9lOVphRrWSJQ5 TCwRsY1soJOxOSoRgsMMOj4_xhAZ.IlVFlEYUpE3jpjXpGFNVaSUKOcN2Q9.MHzj__D8MLvNTBF_ f X-Sonic-MF: X-Sonic-ID: feea1998-ff2a-4660-9e0f-68b4240eaaac Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 19:13:36 +0000 Received: by hermes--production-bf1-865889d799-7x4p2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 78c49f9fe505a6f681bb0438893ea1a3; Sun, 13 Aug 2023 19:13:33 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 Message-Id: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> Date: Sun, 13 Aug 2023 12:13:20 -0700 To: Juraj Lutter , Mike Karels , FreeBSD Toolchain , Current FreeBSD X-Mailer: Apple Mail (2.3731.700.6) References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.146:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.146:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RP6dF5kvgz3Qln Juraj Lutter wrote on Date: Sun, 13 Aug 2023 17:49:16 UTC : > > On 13 Aug 2023, at 17:22, Juraj Lutter wrote: > >=20 > >=20 > >=20 > >> On 13 Aug 2023, at 17:17, Mike Karels wrote: > >>=20 > >>=20 > >> On 13 Aug 2023, at 10:00, Juraj Lutter wrote: > >>=20 > >>>> On 13 Aug 2023, at 16:55, Mike Karels wrote: > >>>>=20 > >>>>=20 > >>>> lib32 is not built until stage 4.3.1, after build and cross = tools. I tested > >>>> a build just now on amd64 with empty /usr/obj, and it worked = (make -j$NCU > >>>> buildworld TARGET=3Darm64 TARGET_ARCH=3Daarch64). However, the = host was > >>>> approximately at the level of ALPHA1, and the first lines of the = output > >>>> showed that a cross-compiler was not needed. However, my earlier = builds > >>>> that required a cross-compiler worked fine. > >>>>=20 > >>>=20 > >>> Earlier builds worked for me as well. I use it for =E2=80=9Cmake = packages=E2=80=9D that I use to upgrade my RPi. > >>>=20 > >>> It definitely worked on 20230712 when I did the build last time. > >>=20 > >> That was before the lib32 addition went in (20230725). > >=20 > > Yeah, that=E2=80=99s why I will try with commit just before = eafd028327cee688b54bc526e088c2a3b98f94e0 or > > with eafd028327cee688b54bc526e088c2a3b98f94e0 backed out to see if = it will help. >=20 > To me it seems that f1d5183124d3e18d410ded61e45adb9a23b23c83 is the = commit that broke it. > I did =E2=80=9Cgit revert=E2=80=9D on that single commit, these were = rebuilt: >=20 > Building = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal/Supp= ort/Path.o > Building = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal/Supp= ort/Signals.o > Building = /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal/libl= lvmminimal.a >=20 > And cross tools started to build as well. But the offical CI builds on amd64 do not have the problem. We still have not found what is different about your context from the standard context used for CI builds and snapshot builds, all of which have worked find building on amd64 to target aarch64 with armv7 support. =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Sun Aug 13 20:19:05 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP8525v5lz4q7nb; Sun, 13 Aug 2023 20:19:18 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP8524w95z3bTK; Sun, 13 Aug 2023 20:19:18 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691957958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRZtPBZps98hs07NQFK5me1loCuBSzMyvsKZwJI32Og=; b=KqmtCC/QOXrqcURdM+E1ptwFAClzOlTXAlpbhekdVeMpaSWVC6yhnTUoJgMBFOvEpTovKg jwSfvvS1C0+GadKA+o/hZHoAcU7mWIoAr4/3cxZnSCfnQFa8SHg9e52OUOXI5YUAB7S5B+ ERReMV6EXWp7nU2woMHhw1D1mVFan2zl+/qdP8XxGn6RtvoL6RKDiILYFdZFhN/ifIE1L3 0q5aQ7DkFonmUcQGRmFhMcVT1ge+6/UzQHnYsrjxdd/mWl8JjkoOVMPI1BvQVN0n6OaumQ hqCLnY07lwhkBTQQjSuCjHFuT/bKR4zq0XYjFpIf9UwBeIEYl3epnY0yJA67zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691957958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRZtPBZps98hs07NQFK5me1loCuBSzMyvsKZwJI32Og=; b=f7CoRO998RNoyX3/97PQ7rNNPhMfQug76a30fN1ZTYtOtENhxV+L+cEFDLo4yJ67r6HBNq YE2kgsniU17zs78gbJY6niRsExNgdqBUVDtZW+GNGNs/YjfYZUrKunzqtxbSHVO85SnmEb UPI7VszYPDFVb4kjUFadj1QCJOuhnEkr5/8N363tnztqtHsdRle3OXByRiaRKTOYMMPjia MtQmxc4lwzSSABuVBhf5F93zDrgeEqDrOSGhcHu1y+1+zxjNSqFjnioZdePLll+wV4mhnB 4oP9WeCbX33Wb2E896uTny78pPzxXir3tAeFwN9grfBhOByCgdwZucarGNnJdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691957958; a=rsa-sha256; cv=none; b=O5YwPs85LfHq5w9/14uZE1v1tVwcCyhKvSwiO0Q5k6n44+frznnbzDR14siEs9IRD4shYU Xao7JO4010DGbGNFTiET3UgsqFcoTwtbmjlX5BFy3Ww2Lt/Xrrn1A3zcuMAPuYhv5qywA1 Pw3qCvH0jfgMwagHgoO4DuaOKmQ6EKkF3YdR7sHlAaDqLpO6PF7TD2zG/L2FwnP/JjX5A8 QW0LmP+hSaFAUyUm5oxLaDomqal+nvnEkYLRwk4sZdVxNDL67/i/dkRH2hABvea6COjokk f7D+IvfPjji4h1249f0EcJdSQYhdBI7CRGyWo5wqkBXFG9gTBr1Bb2Jl+YjoGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ns2.wilbury.net (ns2.wilbury.net [92.60.51.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RP85239CKz12Gk; Sun, 13 Aug 2023 20:19:18 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (gw-upc.owhome.net [188.167.168.254]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 9876B61F91; Sun, 13 Aug 2023 22:19:16 +0200 (CEST) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Juraj Lutter In-Reply-To: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> Date: Sun, 13 Aug 2023 22:19:05 +0200 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) > On 13 Aug 2023, at 21:13, Mark Millard wrote: >=20 > But the offical CI builds on amd64 do not have the problem. >=20 > We still have not found what is different about your context from the > standard context used for CI builds and snapshot builds, all of which > have worked find building on amd64 to target aarch64 with armv7 = support. My src.conf: WITHOUT_PROFILE=3Dyes WITHOUT_TESTS=3Dyes WITHOUT_STATIC=3Dyes WITHOUT_LLVM_TARGET_ALL=3Dyes .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" KERNCONF?=3DGENERIC-MMCCAM REPODIR?=3D/data/poudriere/packages/pkgbase MODULES_EXTRA=3D"rpi_ft5406" WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_ARM=3Dyes .else KERNCONF?=3DGENERIC-NODEBUG REPODIR?=3D/data/poudriere/packages/pkgbase WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_X86=3Dyes .endif make.conf is empty, git workdir has `main=E2=80=99 checked out, without = any modifications (git status reports clean workdir) otis =E2=80=94 Juraj Lutter otis@FreeBSD.org From nobody Sun Aug 13 21:01:00 2023 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP9192Tq3z4qBnD for ; Sun, 13 Aug 2023 21:01:01 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP91907WSz4GX7 for ; Sun, 13 Aug 2023 21:01:01 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691960461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fSv/D85go/cLJ2B8f4auUyrFw7bcNfxM37Zokr4TTp4=; b=kTbjsgY26oGK5W7MQdzz7pGFkRAgwP+3txK7zlq5ACoO1Hk2UpiWyPjzgoRvL495cxbMPW mFHnINVKlFZ8YPFLtpiFIu1FiyZmYhpyRgta2j0UnjMdWsExR5+Mf112jbdZhB5r2z/05K Znp0NqWtoBWI31l7Qdm+enxLzGOrNdLCDK8peVTP7ZG1/P4Ul42my5ijwKHbVpF5oohIP7 U86PiePmwb4234iZ2YAEIS8+yWpBg3wiSJiIV3CoTAs3stFom1rUQ2AQD8HIIrrVOX0V2r nWlNkOs1rbrPSVIHsn9ybOwe2EF3ip8PWNdwpRgHjhXfr0Nxp4GkeAqFkJSceg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691960461; a=rsa-sha256; cv=none; b=ScECydtkyCwU+s88prTeqtC30YC8VsYraqTzmqmYKqQ5rqhXrAlpuOry5U/bJIZP2gxGJ0 KFwNsEQewOv+px5e73dVrUXolqD96+6Ui+cE4wJSCL0jrH0DQ0q99Oj5yacSOayACLw6Vm qnjtd1D4fEa9I3QVt2qWVFAlJhDqioh6k2+yi0ud7b9cvckrZw6MOx7d+8q1dFwIKBHK4o ZhxJyW2VcUw6XSVyGptHPoCs/d6G/SyfGKWCnSgWbBXAnTDKShHmCmTH5hPcZn+RcTynHn nXk0minrjiTzUbhfqXsOzBGTo6+JNnLA9+o2jvzmlBST5ftw98Gq1mOLDa000Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RP9186DKdz1GkT for ; Sun, 13 Aug 2023 21:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37DL104Z009294 for ; Sun, 13 Aug 2023 21:01:00 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37DL10Zk009293 for toolchain@FreeBSD.org; Sun, 13 Aug 2023 21:01:00 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202308132101.37DL10Zk009293@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: toolchain@FreeBSD.org Subject: Problem reports for toolchain@FreeBSD.org that need special attention Date: Sun, 13 Aug 2023 21:01:00 +0000 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16919604601.05dF.2621" Content-Transfer-Encoding: 7bit --16919604601.05dF.2621 Date: Sun, 13 Aug 2023 21:01:00 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 234232 | clang Assertion failed when building the port dev Open | 271624 | emulators/qmc2: clang crashes during build on {12 Open | 192686 | Segfaults using combinations of -pie -pthread -lm 3 problems total for which you should take action. --16919604601.05dF.2621 Date: Sun, 13 Aug 2023 21:01:00 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    234232 | clang Assertion failed when building the port dev
Open        |    271624 | emulators/qmc2: clang crashes during build on {12
Open        |    192686 | Segfaults using combinations of -pie -pthread -lm

3 problems total for which you should take action.
--16919604601.05dF.2621-- From nobody Sun Aug 13 21:01:11 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP91k596Fz4qC1M for ; Sun, 13 Aug 2023 21:01:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-21.consmr.mail.gq1.yahoo.com (sonic305-21.consmr.mail.gq1.yahoo.com [98.137.64.84]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP91k26R2z4HQY for ; Sun, 13 Aug 2023 21:01:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691960488; bh=vCqZvvxcAQQ1hvlpzMF81TyOdpTA1qzoPfUOtcBgSD0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=RseubWXNUdzUJpBtDa/5KDND5jD6u4KkNKQO1itpPMZKxSCZgcGi4OLzXs2fRRyaxY968i7wtYZiwKTXKwhaB+O4j2VGmTc1BEPTElaVUX27cDwnGrJnCRJwR/uFEXhETBXvD7k3zSZxYvgxhe4MY9TmpU2FAY/fmEgb8VMRkpUDZSO4ptWQJchQ4HsJv/GUhv/ycSOSsfjpzfvMLVplAuGnLMKSc/hlqYpXMvyuuVO9IYTDid/tlNqFc/KrX3+8ipknI1faLjkSJ577PqT4QWdNpyTjzAqWn5CxwfjmwbcZ91TvXGXz+ZloQSNL5tTNwd/1S+3eKBvsuSFhKOv4JQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=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7 8wDgbAjMtMutIpztqUFDJSlRsZ4Yd90E8eMwbTtRTZ9oXgUhNQEyVzyiCU89dfBLziy2D6OaEK9w qO0pgglIGa2FQytjRwiyyeY2YZqMiNCYmjqwNQfVp5Eba3yqSnP3hzfpKh8g2lF1.n1_uKP1m8Us P.O9Y6wx1MtLc0_wo0D067XYeNf2DXaWSp0M7jNF1nrL03wbcq_1RwJWh3FW821lxR.hF4xUf4A0 BaKB5ppwng949Y4gNfbLH3tawWVYoqbrS6__RHXFM9Dk8U0VCeKnxDSXzeUwk5HUHO9tz1lRETD8 lV_iepItBGxnU0ZA0YAdet3uVyousde12dA0wY1evO6ZdbpCNXy.fsq6vroYngjPfZB9xQo8h1xE Fu6dvPjeNcjjuoFBvvFlc82u2.J0.xUhaXLz2KJU9xRlkyTRydYE6SQibr15gbUuMe955I8mRWjT OaZWRei1aERWjtU0kQS0XLIN_2ULLQX.utCWnvMewkhTIto.s7Zog0qLQVhp5gsFFo4VnsT.KLT3 XKuVygu0oSz3rJhOtJPPIq2ULJ2.JxbMvFUF4E4hnDy6JA.xmB5Hsix5CpTSaohA7SReEsBPI5KL HQaULFBxCuIN4J.OijpjD4lpO0tUbdUPmMuHYe6_F6pqfU9gMBWYisc83XpSrBdPKWro61BDvFsJ vtA-- X-Sonic-MF: X-Sonic-ID: 45da630d-e118-4db8-a9e1-4f276bf170df Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 21:01:28 +0000 Received: by hermes--production-bf1-865889d799-7vf9r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 234c9fd11edbac4d54e82efdd7aaebf3; Sun, 13 Aug 2023 21:01:24 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Mark Millard In-Reply-To: <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> Date: Sun, 13 Aug 2023 14:01:11 -0700 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> To: Juraj Lutter X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RP91k26R2z4HQY X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Aug 13, 2023, at 13:19, Juraj Lutter wrote: >> On 13 Aug 2023, at 21:13, Mark Millard wrote: >>=20 >> But the offical CI builds on amd64 do not have the problem. >>=20 >> We still have not found what is different about your context from the >> standard context used for CI builds and snapshot builds, all of which >> have worked find building on amd64 to target aarch64 with armv7 = support. >=20 > My src.conf: >=20 > WITHOUT_PROFILE=3Dyes > WITHOUT_TESTS=3Dyes > WITHOUT_STATIC=3Dyes >=20 > WITHOUT_LLVM_TARGET_ALL=3Dyes Starting below this is wrong presuming all builds are actually done on amd64: > .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" > KERNCONF?=3DGENERIC-MMCCAM > REPODIR?=3D/data/poudriere/packages/pkgbase > MODULES_EXTRA=3D"rpi_ft5406" > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_ARM=3Dyes > .else > KERNCONF?=3DGENERIC-NODEBUG > REPODIR?=3D/data/poudriere/packages/pkgbase > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_X86=3Dyes > .endif Ending here. This is written as if there were separate toolchains for each target. That is not how llvm/clang/lld works, unlike gcc. One toolchain covers all the targets. That is what the FreBSD llvm support is structured for. You want the one llvm/clang/lld toolchain that includes everything required to build any/all of: A) amd64 B) i386 for amd64's lib32 C) aarch64 D) armv7 for aarch64's lib32 So the *_LLVM_TARGET_* parts would be more like: WITHOUT_PROFILE=3Dyes WITHOUT_TESTS=3Dyes WITHOUT_STATIC=3Dyes WITHOUT_LLVM_TARGET_ALL=3Dyes WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_X86=3Dyes WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_ARM=3Dyes So: outside the later conditional logic. (Your REPODIR?=3D lines are identical and could also be factored out of the conditional logic if they are not expected to be independently changed. Only the KERNCONF?=3D lines are actually target specific, needing to be in the conditional logic.) > make.conf is empty, git workdir has `main=E2=80=99 checked out, = without any modifications (git status reports clean workdir) >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Sun Aug 13 21:13:51 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP9JL3SWTz4qCfm for ; Sun, 13 Aug 2023 21:14:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP9JK15kLz4Lmy for ; Sun, 13 Aug 2023 21:14:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=p71GXC7C; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691961247; bh=uJw5nFDkRA9M1LrYsf2HW+JNlQdSdnEVaGS40+cI51A=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=p71GXC7Cup9/c7++w4KEDmZAy3+VLWW+tpoOD33oJVh+dp0E9jM1QbQSSd+t07k8qLWe66YCDhl7Kp5SqsU+cQeYWgspv1Mh4TKqx5uOXo/MFnYTsW9/ZiewghRh1TQHOZpl3NPwhQP4NEXktGtjZ2Oqw+QXchFhs1uSCkISF5CpR3uoRs5hjPdbCdl7q6x7DIbGNv0BMu70BGKa/4X5UH867Or1PEKFyxtLsrd90xyaJEA6Vk8f4RNWcjxWk7ixzFaZd5zvn/Hgi3G/HVC85+x3s9EadpAY1Xqa+jd7++JKCLKB0jzswi+ITrjQRfWIRK3ApR7FRZXoP9hQtlYbEg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691961247; bh=CItglXEWCl3zjPn7/bAsoCaqbJ7TWQ7hnH7oyjTNag+=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=ZbBVPFEy9zWXCYpoawqvSliCvWrkY30RCwcfv6bQnYA0a0JAVGHeAAhh1CpP6cuNXOIJ/9RygmolL/0bpqYwJuHMLcpxo6NsKLY+P4bR38vcTItdcllEoXwIUlpazs7T70RpyjDAZaVOWTripf5gtp5kwXTwrT8EAKrHVfDvQgXAYGz63UDtWhhA76LbKEZ5eG+hJndcvkinlnOxor6sZ/W4ZQTR1I/MOKu7ViyVNtcCzTj1cLP3kLl9ptE+14RSqwD7+NA2HqsMF1/7re0BIacTfPml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A9NerqOrjZnSCg5Nnv.Z4wCcJv4r_U.mDDrIP7WVU 0I.HXoyFu6Nng5jsAOqk5wW_To_HX.z8BgJlppedxjMY8MQ00XksOxv6wsw_yvfM7NgRiGyyNfgv aWeSNh2ksxZWe5PyGIHywcGtYySp.PWqs8Kqfax.Q.VFTdoh0zEOSwLuxkiWmU0Xz3zJP5AhO2GI 2CYhEzSlnCH03pTjK81XpCjMtzCggbmXpiAG354Ji0ioSv6C2SSxl.LtCauD7wWAJns7HP2Xl4Fq 0eQ-- X-Sonic-MF: X-Sonic-ID: 71b70aec-fa2f-4bc2-ae6a-d6f6c7b4bfd6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 21:14:07 +0000 Received: by hermes--production-ne1-7b767b77cc-fbxjt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2f9a19c08e2536d61c8059334967766a; Sun, 13 Aug 2023 21:14:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Mark Millard In-Reply-To: Date: Sun, 13 Aug 2023 14:13:51 -0700 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> To: Juraj Lutter X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.148:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RP9JK15kLz4Lmy On Aug 13, 2023, at 14:01, Mark Millard wrote: > On Aug 13, 2023, at 13:19, Juraj Lutter wrote: >=20 >>> On 13 Aug 2023, at 21:13, Mark Millard wrote: >>>=20 >>> But the offical CI builds on amd64 do not have the problem. >>>=20 >>> We still have not found what is different about your context from = the >>> standard context used for CI builds and snapshot builds, all of = which >>> have worked find building on amd64 to target aarch64 with armv7 = support. >>=20 >> My src.conf: >>=20 >> WITHOUT_PROFILE=3Dyes >> WITHOUT_TESTS=3Dyes >> WITHOUT_STATIC=3Dyes >>=20 >> WITHOUT_LLVM_TARGET_ALL=3Dyes >=20 > Starting below this is wrong presuming all > builds are actually done on amd64: >=20 >> .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" >> KERNCONF?=3DGENERIC-MMCCAM >> REPODIR?=3D/data/poudriere/packages/pkgbase >> MODULES_EXTRA=3D"rpi_ft5406" >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_ARM=3Dyes >> .else >> KERNCONF?=3DGENERIC-NODEBUG >> REPODIR?=3D/data/poudriere/packages/pkgbase >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_X86=3Dyes >> .endif >=20 > Ending here. >=20 > This is written as if there were separate toolchains for > each target. That is not how llvm/clang/lld works, > unlike gcc. One toolchain covers all the targets. That > is what the FreBSD llvm support is structured for. >=20 > You want the one llvm/clang/lld toolchain that includes > everything required to build any/all of: >=20 > A) amd64 > B) i386 for amd64's lib32 > C) aarch64 > D) armv7 for aarch64's lib32 >=20 > So the *_LLVM_TARGET_* parts would be more like: >=20 > WITHOUT_PROFILE=3Dyes > WITHOUT_TESTS=3Dyes > WITHOUT_STATIC=3Dyes >=20 > WITHOUT_LLVM_TARGET_ALL=3Dyes > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_X86=3Dyes > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_ARM=3Dyes Dumb editing error, not having an AMD64 line and having two AARCH64 lines. So, instead: WITHOUT_LLVM_TARGET_ALL=3Dyes WITH_LLVM_TARGET_AMD64=3Dyes WITH_LLVM_TARGET_X86=3Dyes WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_ARM=3Dyes > So: outside the later conditional logic. >=20 > (Your REPODIR?=3D lines are identical and could also be factored > out of the conditional logic if they are not expected to be > independently changed. Only the KERNCONF?=3D lines are actually > target specific, needing to be in the conditional logic.) >=20 >> make.conf is empty, git workdir has `main=E2=80=99 checked out, = without any modifications (git status reports clean workdir) >>=20 >=20 I should have noted that if the existing toolchain does not cover all of ARM64, X86, AARCH64, and ARM then it may take special activity to get to the point of having all 4 spanned in each instance of the toolchain. Once in place, things should be more self-propagating. =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Sun Aug 13 21:37:56 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP9r64v4nz4qFLX; Sun, 13 Aug 2023 21:38:14 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP9r64McFz4Nrc; Sun, 13 Aug 2023 21:38:14 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691962694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ui9DoWSYCUTsCrgR6iFfN4nqkzXPv7wy7sC69x/2nPE=; b=SjHrpcobC9P6mALGfpHXXnUTkAgzIzB6jRwgS1jTPh5SNRdIPP0OjkE9z18CWC32U5H0+E XA5ZW45fBzY+11Lw5vbIYUEwUA5zAyd+v7YxPuYYHO4k6RQIm9Wg9gJxLa+R41+jjTNXQQ S8AkCTw+8zAoP/fBEQDgVcJ/8E+m5S7LIH2JxQcON8k1qKjlvEFhZzhi8OirEk+ZWRiplp He5hU+hbsuKqVXEJRGfMc2QDac6n5UcxYxgvt+WKGU2vbHTlHGCn6OeoBWbhkVW2q3UtFK rwzObnAqbSsyF4vM/CSUZDKJgslbqHLlhQLzYDDfU2WF2swrCHX5p5OtMZL6sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691962694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ui9DoWSYCUTsCrgR6iFfN4nqkzXPv7wy7sC69x/2nPE=; b=PYBDUsLFjGQIZSp2r+Kh3qXfHm96USSynUPTnXSwBQQhyOnKxDvTnXvfnv5VLBtV/CgBzQ Cum8flw1fH9C5QpyvRdkVtfYL0DkJyls1lCBdiYKfKMJ6Aa/W23OSmx9Ej7pneBylGidXr MQoiJ/z/nKl58I51WGy89qP+INE9LEhldC1MgfyGXcfVD1NHiRY3JlNKgDeKfXZKwUGNyy p4XYjj4PijtyHmFN8+4nPQ6f7kFYkBFjEIvGkUvoSeA1IKlv7BSwXXlAH6XfXcwQ34vaOu Xa+nW6+ri8Pg76FQ4cICG1ASeQT44jkHmFgvHAnPzbwGfd4V1TQnVfkjVSnFlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691962694; a=rsa-sha256; cv=none; b=qi2G6VpwJloEoJJEGFAWIS9B7vx2ryRPQHx8Q4aFpP7Dc9WFH5YF6YJtQZO95HSAgdtkMI 4TiOjrUIfTaEl7M8A+G34GtZ1JW5BbvmYinaFp53697rj7iqQ2QPzt/CYRfi6sRK+sDqqP ax98h3xfD9/d1vzNnHubV3ulaARViNdiHuDh4FMb0AT8YeZs4OMQGb3YGn0L+JvN06nCdY ZqhQhoyn7zF3Dfhr+jU3HWYhy8BwgJzs7Baq9wh5qXMwYTWK770T6i5uNTox325K0DooK7 sxDHS5uCeCi6Ad4LgHsvNrrbA5lrZMHXj+WeYV7z0p5WzWQXNdPjnArlcPKmqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ns2.wilbury.net (ns2.wilbury.net [IPv6:2a01:b200:0:1:f816:3eff:fecd:13e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RP9r62dHHz150H; Sun, 13 Aug 2023 21:38:14 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (gw-upc.owhome.net [188.167.168.254]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 5A6AB61F91; Sun, 13 Aug 2023 23:38:07 +0200 (CEST) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Juraj Lutter In-Reply-To: <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> Date: Sun, 13 Aug 2023 23:37:56 +0200 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) > On 13 Aug 2023, at 23:13, Mark Millard wrote: >=20 > On Aug 13, 2023, at 14:01, Mark Millard wrote: >=20 >> On Aug 13, 2023, at 13:19, Juraj Lutter wrote: >>=20 >>>> On 13 Aug 2023, at 21:13, Mark Millard wrote: >>>>=20 >>>> But the offical CI builds on amd64 do not have the problem. >>>>=20 >>>> We still have not found what is different about your context from = the >>>> standard context used for CI builds and snapshot builds, all of = which >>>> have worked find building on amd64 to target aarch64 with armv7 = support. >>>=20 >>> My src.conf: >>>=20 >>> WITHOUT_PROFILE=3Dyes >>> WITHOUT_TESTS=3Dyes >>> WITHOUT_STATIC=3Dyes >>>=20 >>> WITHOUT_LLVM_TARGET_ALL=3Dyes >>=20 >> Starting below this is wrong presuming all >> builds are actually done on amd64: >>=20 >>> .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" >>> KERNCONF?=3DGENERIC-MMCCAM >>> REPODIR?=3D/data/poudriere/packages/pkgbase >>> MODULES_EXTRA=3D"rpi_ft5406" >>> WITH_LLVM_TARGET_AARCH64=3Dyes >>> WITH_LLVM_TARGET_ARM=3Dyes >>> .else >>> KERNCONF?=3DGENERIC-NODEBUG >>> REPODIR?=3D/data/poudriere/packages/pkgbase >>> WITH_LLVM_TARGET_AARCH64=3Dyes >>> WITH_LLVM_TARGET_X86=3Dyes >>> .endif >>=20 >> Ending here. >>=20 >> This is written as if there were separate toolchains for >> each target. That is not how llvm/clang/lld works, >> unlike gcc. One toolchain covers all the targets. That >> is what the FreBSD llvm support is structured for. >>=20 >> You want the one llvm/clang/lld toolchain that includes >> everything required to build any/all of: >>=20 >> A) amd64 >> B) i386 for amd64's lib32 >> C) aarch64 >> D) armv7 for aarch64's lib32 >>=20 >> So the *_LLVM_TARGET_* parts would be more like: >>=20 >> WITHOUT_PROFILE=3Dyes >> WITHOUT_TESTS=3Dyes >> WITHOUT_STATIC=3Dyes >>=20 >> WITHOUT_LLVM_TARGET_ALL=3Dyes >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_X86=3Dyes >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_ARM=3Dyes >=20 If you look closer, you will see that: WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_X86=3Dyes is in effect when I do =E2=80=9Cmake buildworld=E2=80=9D without any = TARGET and TARGET_ARCH, i.e. when I build the OS for the host (that is, = 14.0/amd64). But once I specify make TARGET=3Darm64 TARGET_ARCH=3Daarch64, only the = lines: WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_ARM=3Dyes are in effect. The line =E2=80=9CWITH_LLVM_TARGET_ARM=3Dyes=E2=80=9D has = only been added today for a test, but it did not make any difference. =E2=80=94 Juraj Lutter otis@FreeBSD.org From nobody Sun Aug 13 22:11:48 2023 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPBbB01nCz4qHH6 for ; Sun, 13 Aug 2023 22:12:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPBb95zPPz4RFB for ; Sun, 13 Aug 2023 22:12:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691964724; bh=L5BM6LaDPNSIoulUb1X+rUJQwERAz8hucaQtdkK+2OI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ffLlsvZWLFxRe+5xNtVXAMcd1TgvdXqjLJV7RR+D0kNI+mTsstNqcHkPUZQE0EngqNe2i3g+o8Rl90w9itC/op2+VdkSGkW0LjQ/0a3FB9Ua9/CyeGJNxclzp9UaB5JTjH+ZwrqukHw4BwxJyhiR4nhBs4GxGI2lSVnJQ5mjKajKyXa6ZALniYG58278elJWXIQk9O/fS0/T7+MLq5upNN2diIHJcTAA/gybAPAC4Ff5NRFnoTe6enDxwwNzoAwJs2MSNvgYDeGjh0JUlx5scXDZucmtIleIdU7Dj+IbPBo4BAY0ruuzBX0Ty3mrGL6hCai485ELIlClQVAsqL9S9g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691964724; bh=3x3TFOky43UWTggZMyygg2fAwBS4HixQfrtE1Nu7W5m=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=luticV5oJgkgAhjseRjS3GQUG7qDzsjxpOoky/1NtecpzVaAsoyw700tmyKWOLAB8hToKEuTfI4iMVF39mOU+uoLx/Ja9gOjn5d3wCNo8nD915GP+CeH73Lr9TJ3v5KJ7bHaEmC/UH0EloCtN1j7F1eP32l9HfhpbUzd0SBeqApQ1bhMBrK+o4H3EZPfrSpNYQcMHcIQvRKZukdM5yAWvFfGaMSwhpJwN0bowwFTJ2KxzZfapqf1sIw0E9ZSr+HhEjV/isF8qNXyjc7m0lN99klt/GTq7OuSTOVQZg+ggblx/bkd1G/vqLYblbch799OxFhCa0whWhZtLp+eXz1HLg== X-YMail-OSG: 4fD5tuwVM1kuikiTM.qKqfBNPfngxAOKlQolsWgVb4mSS2TNY3FPFwf86GcXCO8 3GQTYhJ_7VNjGd39oOc3knyfzETtJy5sdTF47b5S5BAn81l7hnt_lTSD8jvHBm8QHjNW6hKryryq CBZup0VLA38b2vzyEJot0bNEeh2IiD6EnEX4Yp3pcpy5hs86A7NxL9GAddWGU5W5nYtCV9coh11f UO7w0675P6J3ZwhgZfbBoAp4I4Iu3L.kqpmRPx2I0QHaVDOmGwHfSBKX46e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ate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 22:12:04 +0000 Received: by hermes--production-bf1-865889d799-7x4p2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e8e496810bd251cd28f0700eba45e041; Sun, 13 Aug 2023 22:12:01 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Mark Millard In-Reply-To: Date: Sun, 13 Aug 2023 15:11:48 -0700 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> To: Juraj Lutter X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RPBb95zPPz4RFB X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Aug 13, 2023, at 14:37, Juraj Lutter wrote: > On 13 Aug 2023, at 23:13, Mark Millard wrote: >>=20 >> On Aug 13, 2023, at 14:01, Mark Millard wrote: >>=20 >>> On Aug 13, 2023, at 13:19, Juraj Lutter wrote: >>>=20 >>>>> On 13 Aug 2023, at 21:13, Mark Millard wrote: >>>>>=20 >>>>> But the offical CI builds on amd64 do not have the problem. >>>>>=20 >>>>> We still have not found what is different about your context from = the >>>>> standard context used for CI builds and snapshot builds, all of = which >>>>> have worked find building on amd64 to target aarch64 with armv7 = support. >>>>=20 >>>> My src.conf: >>>>=20 >>>> WITHOUT_PROFILE=3Dyes >>>> WITHOUT_TESTS=3Dyes >>>> WITHOUT_STATIC=3Dyes >>>>=20 >>>> WITHOUT_LLVM_TARGET_ALL=3Dyes >>>=20 >>> Starting below this is wrong presuming all >>> builds are actually done on amd64: >>>=20 >>>> .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" >>>> KERNCONF?=3DGENERIC-MMCCAM >>>> REPODIR?=3D/data/poudriere/packages/pkgbase >>>> MODULES_EXTRA=3D"rpi_ft5406" >>>> WITH_LLVM_TARGET_AARCH64=3Dyes >>>> WITH_LLVM_TARGET_ARM=3Dyes >>>> .else >>>> KERNCONF?=3DGENERIC-NODEBUG >>>> REPODIR?=3D/data/poudriere/packages/pkgbase >>>> WITH_LLVM_TARGET_AARCH64=3Dyes >>>> WITH_LLVM_TARGET_X86=3Dyes >>>> .endif >>>=20 >>> Ending here. >>>=20 >>> This is written as if there were separate toolchains for >>> each target. That is not how llvm/clang/lld works, >>> unlike gcc. One toolchain covers all the targets. That >>> is what the FreBSD llvm support is structured for. >>>=20 >>> You want the one llvm/clang/lld toolchain that includes >>> everything required to build any/all of: >>>=20 >>> A) amd64 >>> B) i386 for amd64's lib32 >>> C) aarch64 >>> D) armv7 for aarch64's lib32 >>>=20 >>> So the *_LLVM_TARGET_* parts would be more like: >>>=20 >>> WITHOUT_PROFILE=3Dyes >>> WITHOUT_TESTS=3Dyes >>> WITHOUT_STATIC=3Dyes >>>=20 >>> WITHOUT_LLVM_TARGET_ALL=3Dyes >>> WITH_LLVM_TARGET_AARCH64=3Dyes >>> WITH_LLVM_TARGET_X86=3Dyes >>> WITH_LLVM_TARGET_AARCH64=3Dyes >>> WITH_LLVM_TARGET_ARM=3Dyes >>=20 >=20 > If you look closer, you will see that: >=20 > WITH_LLVM_TARGET_AARCH64=3Dyes Looks like the above was my typing mistake: WITH_LLVM_TARGET_AMD64 ? > WITH_LLVM_TARGET_X86=3Dyes >=20 > is in effect when I do =E2=80=9Cmake buildworld=E2=80=9D without any = TARGET and TARGET_ARCH, i.e. when I build the OS for the host (that is, = 14.0/amd64). WITH_LLVM_TARGET_??? and WITHOUT_LLVM_TARGET_??? control building the LLVM/clang/lld toolchain. What matters is when the llvm/clang/lld materials are built and = installed, and when they are used. The way the builds work for building aarch64 and armv7 buildworld and/or buildkernel materials on amd64, the one-and-the-same toolchain is used thus inside one buildworld/buildkernel run: A) some amd64 files are generated that are later poteitnally run by the amd64 system. (So there is amd64 code generation involved.) B) lots of aarch64/armv7 files are generated that are not run by the amd64 system. (So there is aarch64/armv7 code generation involved too.) The same toolchain is used for both (A) and (B) inside one buildworld run. The toolchain has to support all those targets inside the one buildworld/buildkernel run. The whole type of analysis of avoiding having targets you intend to use not being in some of your toolchain builds is just inappropriate for FreeBSD and how it uses LLVM. Prat of the point of LLVM is to avoid having distinct tool chains (or toolchain builds) for different targets of interest. One toolchain is sufficient. You need to quit using the conditional logic for=20 ???_LLVM_TARGET_??? definitions if your builds are going to systematically work. What you are doing is not like what the CI or snapshot build so that work just fine. no FreeBSD documentatino suggests what you are doing. Make things work more like those and things should work just fine. > But once I specify make TARGET=3Darm64 TARGET_ARCH=3Daarch64, only the = lines: >=20 > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_ARM=3Dyes And that is a problem with what you are doing, givne your use of WITHOUT_LLVM_TARGET_ALL=3Dyes . > are in effect. The line =E2=80=9CWITH_LLVM_TARGET_ARM=3Dyes=E2=80=9D = has only been added today for a test, but it did not make any = difference. As I would expect. Make sure that all the targets you are going to build for have "WITH_" status all the time in the amd64 build system, not just sometimes. "WITHOUT_" status should only be for targets that you will never use when building via the amd64 build system. =3D=3D=3D Mark Millard marklmi at yahoo.com