From nobody Fri May 26 20:13:52 2023 X-Original-To: freebsd-arm@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 4QSbjX53cTz4Cs6s for ; Fri, 26 May 2023 20:14:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (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 4QSbjW32pjz3Fq2 for ; Fri, 26 May 2023 20:14:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=cTC0iqbr; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.206 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=1685132046; bh=x2dYEFUamGAH/bFhuD5Y4sl/AI5huDSz3mfJ1Frp8SI=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=cTC0iqbrLU2PVVf33pWv5F8IHsCgmR+qkZ3AvDnxOrzWNcVm8zc1CAkGlKCxoVG7/BG6/rDm4v14XW1P0xJwB0FqvrIxnLB6RcatehAzgrexvAU/s9EDsQdK/BkZvUUwNPfbEWQuzwOmU5bFTn0inBlcUpaiRrygIrtHSz9KGorhdZL5y7qGw+97Smv9S+PK9fMZDsp5pGaI0cvBI0G81bixkf/tIY2wZIdj4ZVmKtpWHoxZ2l2eBMKTXOWXN6hyaOpchKCC1Hvw7Izl+XVwQdorT6+YhzVpp5Df1GugLDauiG+ewv4GFyoIB3sYVZUqtlljs5LWCkDtDN/eEwdYhA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685132046; bh=ii9L8NNu0AKxPLYobpOxUd/ftBReHci3Vf52VqOF7B0=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=t++RmvjqEIoMxelowgY0LFE3/4BinwDGHW3bjcP76pMuQYSzVm7eTGlUD06x+AeSH8zQFP2xxW8w+TUIAC40EDZG3nZ4xgGKeEqHm3QlukRXrqBtuRS6XQtsGKQUXrEzxdZbgn3GjslhSZqewgZYAEFknPiBrBjo7eL9ZFe7ce/O4ifl5QRJV22EOK9mz/1/tj+7BcQ/LIRA8CXgr4INnk5APZDn77cs/ezfq2+db8Uiq9tv0RFBFbSliley5Knh0Zk21PUjFM7YJ0GBEv1A5Zn6+efDg80/DyuFQIPYyzOFR27AS79RBnOONC85C2Py/KG8QRAgx+J4nrVn+t82tw== X-YMail-OSG: 2VjFtx0VM1nlF5cfD9nnSTXRIA3qbVKhNhcJ95Gi2q9H7tl3pTBSUTiqYFr3_6s 6gzoBe4pIuneibdgbfiEYrURLNneGOK0a_pHbv7BlHBLCkgV5CSLwKHb8hwLbHSiuGk8TWkScQMB 6RrRfHrx9xDxozcAUaxPBkbf6y_saixlbIpePPNqu7ODNqzP0IbNWN_oQDKkCKY3YkkWwaXZz0OH wClzHCQtyFpUESYh4BYX4Hp0saX8vdTLPL6NmbG7oHR9I7jM8C1W0QS_2piqYxBsWqG93TaGQD7Z uXBPZ_PlclCyCUN97An3ZF5qT6l270jEP98kLwxq_vxC5BINALDzdu9o0wOnHFBw789Yrkn.NNsC kgWPjRN.o6YYcTIVVY2IBp_lRH1m257Kn8lOn41csP.jDCJyac0GeLsf8F6aw39OKJMQFPPJtXKs qPEcRW0nj1k60IxenJ1DKk0ED00S3YrDDP.kpB08wMVw_bb945gVNDDMx1YmSJIrnfzJTlgMPDmr VhMLjpXxVRDtAKHNTDD2UH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ZVWGMAXjpEBYrBKzw5Lzdd9GjVleB9HBgGBySQm0iSVEI_g 2XWYhipeUeAuEwCaxjDM39g_M8Ha2JFsz2h7JSAbzV6zUrUc5AcYoken8iaw_o2tq4AFzi3uvMzM 0ioMRaTablJ.HyQxEJ1gPiiASzo4xhGgv8XPnOkaDQNN_TJQ9AzuA003TtoplVeRnpiEHsIgFsTb ECxyh7LUAD_6UkRKlS8qc1rj94QOI26Mhnea8IM2PrWqyo4WXZJrpiXd.M4EugzCzs6JPqLT1Umh SGW0nwHMFrWEFVq4PXeALum66ftsSRt95uSqWaGTZ4pl7lnu2MHnePQl9m0MAi_0c9eCzJxATcm6 MX3q76X_0Nemg9W0mplSSwI0JokGUUr5hSg16AZwDmyBOxlXVq4Hj0qJZPUvovNUrG5mP_pf17bH Fxl.ZWa.J2VVPa4IoJNnCRygECUHCzQxF17lfurzd3wYCaz92uuEzsOILIJUqkR4PrIxVZ4WH2Iv lwTB1InGlYtLEypqBJ8Vi5G2PHwz5AmvZwY9hN2P2jKtcoFAiCjFMgOJiQ6r5Gng4yw7iep4sHiS 0SL6w0xuywy2nPqzffjwHs6nWFlFi4nQhc7s477cuGhe.chHuUsvmMLAK7ceDO7pYLCH91v2Rx_j JJjS9zRoHvp1rJSVJ1Nfnok9HOLpl_WW0C16QqzwcLel7AVWrzVTSjfQi.ZrHG3NZsnav6GQnuXl Tx.o- X-Sonic-MF: X-Sonic-ID: 3c0e19fb-d8f6-4516-974d-dfefb61866a0 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Fri, 26 May 2023 20:14:06 +0000 Received: by hermes--production-ne1-574d4b7954-glkdx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e1270694cb7fb73bc668228bac64c462; Fri, 26 May 2023 20:14:04 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: devel/arm-none-eabi-newlib headers inconsistencies (not functional) or am I misusing something? Date: Fri, 26 May 2023 13:13:52 -0700 References: <2EC67293-B961-4A1C-A658-E486E5663B39@yahoo.com> To: =?utf-8?B?Sm9zw6kgUMOpcmV6?= , freebsd-arm In-Reply-To: <2EC67293-B961-4A1C-A658-E486E5663B39@yahoo.com> Message-Id: <455E6A3D-98A2-4FEF-B221-3EF3872CAEF0@yahoo.com> X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spamd-Result: default: False [-2.50 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from] X-Rspamd-Queue-Id: 4QSbjW32pjz3Fq2 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On May 26, 2023, at 12:32, Mark Millard wrote: > Jos=C3=A9_P=C3=A9rez wrote on > Date: Fri, 26 May 2023 16:53:15 UTC : >=20 >> a source as simple as this does not compile with=20 >> devel/arm-none-eabi-newlib installed >>=20 >> #include >>=20 >> int main(int argc, char *argv[]) { >> return 0; >> } >>=20 >> % arm-none-eabi-gcc break_arm.c >> . . . list of errors and such . . . >=20 >=20 > Looks like you did nothing to tell arm-none-eabi-gcc > to use arm-none-eabi-newlib materials . It will not > do so automatically from what I can tell. > (arm-none-eabi-gcc is not limited to use of > arm-none-eabi-newlib and arm-none-eabi-newlib is > not a default binding for arm-none-eabi-gcc so far > as I can tell.) >=20 > In other words, if you did not have > devel/arm-none-eabi-newlib installed, and tried the > "arm-none-eabi-gcc break_arm.c" command, I'd expect > the same results that you report: arm-none-eabi-newlib > is simply not being used at all, if I understand > right. >=20 > Looks like you need to figure out how to tell > arm-none-eabi-gcc to use the arm-none-eabi-newlib > materials. (Not something I've ever done.) I tried installing arm-none-eabi-newlib and seeing what files it adds ( note the lack of lib/gcc/ in the paths): # pkg info -l arm-none-eabi-newlib arm-none-eabi-newlib-2.4.0_2: /usr/local/arm-none-eabi/include/_ansi.h /usr/local/arm-none-eabi/include/_newlib_version.h /usr/local/arm-none-eabi/include/_syslist.h /usr/local/arm-none-eabi/include/alloca.h /usr/local/arm-none-eabi/include/ar.h /usr/local/arm-none-eabi/include/argz.h /usr/local/arm-none-eabi/include/assert.h /usr/local/arm-none-eabi/include/complex.h /usr/local/arm-none-eabi/include/ctype.h /usr/local/arm-none-eabi/include/dirent.h /usr/local/arm-none-eabi/include/envlock.h /usr/local/arm-none-eabi/include/envz.h /usr/local/arm-none-eabi/include/errno.h /usr/local/arm-none-eabi/include/fastmath.h /usr/local/arm-none-eabi/include/fcntl.h /usr/local/arm-none-eabi/include/fnmatch.h /usr/local/arm-none-eabi/include/getopt.h /usr/local/arm-none-eabi/include/glob.h /usr/local/arm-none-eabi/include/grp.h /usr/local/arm-none-eabi/include/iconv.h /usr/local/arm-none-eabi/include/ieeefp.h /usr/local/arm-none-eabi/include/inttypes.h /usr/local/arm-none-eabi/include/langinfo.h /usr/local/arm-none-eabi/include/libgen.h /usr/local/arm-none-eabi/include/limits.h /usr/local/arm-none-eabi/include/locale.h /usr/local/arm-none-eabi/include/machine/_arc4random.h /usr/local/arm-none-eabi/include/machine/_default_types.h /usr/local/arm-none-eabi/include/machine/_types.h /usr/local/arm-none-eabi/include/machine/ansi.h /usr/local/arm-none-eabi/include/machine/endian.h /usr/local/arm-none-eabi/include/machine/fastmath.h /usr/local/arm-none-eabi/include/machine/ieeefp.h /usr/local/arm-none-eabi/include/machine/malloc.h /usr/local/arm-none-eabi/include/machine/param.h /usr/local/arm-none-eabi/include/machine/setjmp-dj.h /usr/local/arm-none-eabi/include/machine/setjmp.h /usr/local/arm-none-eabi/include/machine/stdlib.h /usr/local/arm-none-eabi/include/machine/termios.h /usr/local/arm-none-eabi/include/machine/time.h /usr/local/arm-none-eabi/include/machine/types.h /usr/local/arm-none-eabi/include/malloc.h /usr/local/arm-none-eabi/include/math.h /usr/local/arm-none-eabi/include/newlib.h /usr/local/arm-none-eabi/include/paths.h /usr/local/arm-none-eabi/include/pthread.h /usr/local/arm-none-eabi/include/pwd.h /usr/local/arm-none-eabi/include/reent.h /usr/local/arm-none-eabi/include/regdef.h /usr/local/arm-none-eabi/include/regex.h /usr/local/arm-none-eabi/include/sched.h /usr/local/arm-none-eabi/include/search.h /usr/local/arm-none-eabi/include/setjmp.h /usr/local/arm-none-eabi/include/signal.h /usr/local/arm-none-eabi/include/spawn.h /usr/local/arm-none-eabi/include/stdatomic.h /usr/local/arm-none-eabi/include/stdint.h /usr/local/arm-none-eabi/include/stdio.h /usr/local/arm-none-eabi/include/stdio_ext.h /usr/local/arm-none-eabi/include/stdlib.h /usr/local/arm-none-eabi/include/string.h /usr/local/arm-none-eabi/include/strings.h /usr/local/arm-none-eabi/include/sys/_default_fcntl.h /usr/local/arm-none-eabi/include/sys/_intsup.h /usr/local/arm-none-eabi/include/sys/_sigset.h /usr/local/arm-none-eabi/include/sys/_stdint.h /usr/local/arm-none-eabi/include/sys/_timespec.h /usr/local/arm-none-eabi/include/sys/_timeval.h /usr/local/arm-none-eabi/include/sys/_types.h /usr/local/arm-none-eabi/include/sys/cdefs.h /usr/local/arm-none-eabi/include/sys/config.h /usr/local/arm-none-eabi/include/sys/custom_file.h /usr/local/arm-none-eabi/include/sys/dir.h /usr/local/arm-none-eabi/include/sys/dirent.h /usr/local/arm-none-eabi/include/sys/errno.h /usr/local/arm-none-eabi/include/sys/fcntl.h /usr/local/arm-none-eabi/include/sys/features.h /usr/local/arm-none-eabi/include/sys/file.h /usr/local/arm-none-eabi/include/sys/iconvnls.h /usr/local/arm-none-eabi/include/sys/lock.h /usr/local/arm-none-eabi/include/sys/param.h /usr/local/arm-none-eabi/include/sys/queue.h /usr/local/arm-none-eabi/include/sys/reent.h /usr/local/arm-none-eabi/include/sys/resource.h /usr/local/arm-none-eabi/include/sys/sched.h /usr/local/arm-none-eabi/include/sys/select.h /usr/local/arm-none-eabi/include/sys/signal.h /usr/local/arm-none-eabi/include/sys/stat.h /usr/local/arm-none-eabi/include/sys/stdio.h /usr/local/arm-none-eabi/include/sys/string.h /usr/local/arm-none-eabi/include/sys/syslimits.h /usr/local/arm-none-eabi/include/sys/time.h /usr/local/arm-none-eabi/include/sys/timeb.h /usr/local/arm-none-eabi/include/sys/times.h /usr/local/arm-none-eabi/include/sys/timespec.h /usr/local/arm-none-eabi/include/sys/tree.h /usr/local/arm-none-eabi/include/sys/types.h /usr/local/arm-none-eabi/include/sys/unistd.h /usr/local/arm-none-eabi/include/sys/utime.h /usr/local/arm-none-eabi/include/sys/wait.h /usr/local/arm-none-eabi/include/tar.h /usr/local/arm-none-eabi/include/termios.h /usr/local/arm-none-eabi/include/tgmath.h /usr/local/arm-none-eabi/include/threads.h /usr/local/arm-none-eabi/include/time.h /usr/local/arm-none-eabi/include/unctrl.h /usr/local/arm-none-eabi/include/unistd.h /usr/local/arm-none-eabi/include/utime.h /usr/local/arm-none-eabi/include/utmp.h /usr/local/arm-none-eabi/include/wchar.h /usr/local/arm-none-eabi/include/wctype.h /usr/local/arm-none-eabi/include/wordexp.h /usr/local/arm-none-eabi/lib/aprofile-validation.specs /usr/local/arm-none-eabi/lib/aprofile-ve.specs /usr/local/arm-none-eabi/lib/cpu-init/rdimon-aem.o /usr/local/arm-none-eabi/lib/crt0.o /usr/local/arm-none-eabi/lib/iq80310.specs /usr/local/arm-none-eabi/lib/libc.a /usr/local/arm-none-eabi/lib/libg.a /usr/local/arm-none-eabi/lib/libgloss-linux.a /usr/local/arm-none-eabi/lib/libm.a /usr/local/arm-none-eabi/lib/libnosys.a /usr/local/arm-none-eabi/lib/librdimon.a /usr/local/arm-none-eabi/lib/librdpmon.a /usr/local/arm-none-eabi/lib/linux-crt0.o /usr/local/arm-none-eabi/lib/linux.specs /usr/local/arm-none-eabi/lib/nano.specs /usr/local/arm-none-eabi/lib/nosys.specs /usr/local/arm-none-eabi/lib/pid.specs /usr/local/arm-none-eabi/lib/rdimon-crt0.o /usr/local/arm-none-eabi/lib/rdimon.specs /usr/local/arm-none-eabi/lib/rdpmon-crt0.o /usr/local/arm-none-eabi/lib/rdpmon.specs /usr/local/arm-none-eabi/lib/redboot-crt0.o /usr/local/arm-none-eabi/lib/redboot-syscalls.o /usr/local/arm-none-eabi/lib/redboot.ld /usr/local/arm-none-eabi/lib/redboot.specs May be that will help. =3D=3D=3D Mark Millard marklmi at yahoo.com