From nobody Sat May 27 12:27:05 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 4QT1JX5Mdtz4Cg4f for ; Sat, 27 May 2023 12:27:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-54.consmr.mail.gq1.yahoo.com (sonic315-54.consmr.mail.gq1.yahoo.com [98.137.65.30]) (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 4QT1JX1Q03z45w2 for ; Sat, 27 May 2023 12:27:24 +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=1685190442; bh=fIU7vPbOl0+GRJoMuiuDETgKEEV7IR+eIQ/r3dgS4sc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=rbHqLXvLg/AGRvsjkQiPqblhf626vlLDcv5wZX/3dcitYbT7fJjrGWJM/UX4BiCbuMa1pt0PAuaG6oAR67BBHT97UXdarkusLsMlKzyWmQAXwnp1MCFAbGGq/XRxRHPEpHgI5OFnjDNZmzvI/jrNoO6KsBQ7ZTBBN2sQIaz0WZulByHCrvMiEfVlK+77xCN/nd05hAeoV2xunpeHoRALCfXNcXPc0AyuFvpeM6NQvzXDnyxXe03DTgBtKJiOkMk753zeT9gqrvoVczaxl1Tb7eaWyLWgDGQGymY/yZCsxqtgGSNcpAshRRYBjshECpVCG60JX/43fiFoPjGf2FDzTQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685190442; bh=VmMdANqZUaspXJ4YPd0r3R8n5SL7kk2eU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RmGv6XCGaOi7vzBzndOuvosLR0gbzSevVwiFVSRBYKhnmJy2ROzEGVZVn86QDVZ E3TRWT3w0Ras8X7KIXv_TWhemFx8aYjBWbjo6.tV8ruIeSpRtw26QqAwCAqTYiS2_NlmChshpGky 0kGAWEXiYbsDL3dhBn1.Pg3E341cY7f8IbU7ewVCfVJ74kAgW.2OJ2qaatWTTeNMQQls1rcTHTcB 3fEj3ct0Zm7vsZtEEuUx5qekDhdgzUJmmhqG0wLwzBtnsqtdAfV3JXTgo1fqWLgMFBIXFiK9sIw6 UowtT.eiYCEz_kcD_z5aF6a6sKyyDzqBdaoXrDDsiHTfaZ59yMc0mPCmB43TljjHCQ6AzFqDSsV7 aC0uZ3_M7hXL1RgHBmSP.kv3pJ2nTAlxPSzZ2DUMV55wlkMc6VxjdssbOA_B6eCVqnTQBbOaSVNB 3blG36jvVYMyr.XuoJ7mwcjvP7YSN25raSvVLPpofMTQNQQr6PTRqlR0ysUwnp0O8YSw4baUyY5i Rhl5B4gAmrck8b56Ii6KAnLTs2CeoWCCqo0H3l9fOQrPxzHujuo7uWF7HD0BSOE.B1q6oCcElLMh LrJU- X-Sonic-MF: X-Sonic-ID: d3e1cb16-261a-4b92-8fb1-00627c9062a3 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sat, 27 May 2023 12:27:22 +0000 Received: by hermes--production-bf1-54475bbfff-4rjwb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 54e375c3a20a35dbe7cf30a9eae60c94; Sat, 27 May 2023 12:27:17 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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? From: Mark Millard In-Reply-To: <232dc6e4e0d3b5f3abcd37049db0991b@mail.yourbox.net> Date: Sat, 27 May 2023 05:27:05 -0700 Cc: freebsd-arm@freebsd.org, kevans@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8A93F4D2-4FDA-4C3D-8FA3-2D72DAD06A8B@yahoo.com> References: <11a941a3a1c9e001559ccc6183af131d@mail.yourbox.net> <784313c52e2f42eb63f3755a5c093fdc@mail.yourbox.net> <9E888138-D3D0-4A6C-92B9-31705D470089@yahoo.com> <232dc6e4e0d3b5f3abcd37049db0991b@mail.yourbox.net> To: =?utf-8?B?Sm9zw6kgUMOpcmV6?= X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4QT1JX1Q03z45w2 X-Spamd-Bar: ---- 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] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On May 27, 2023, at 04:21, Jos=C3=A9 P=C3=A9rez wrote: > El 2023-05-27 12:18, Mark Millard escribi=C3=B3: >>> should be fixed or is it ok >>> to leave it as it is now? >> Leave it as it is. >=20 > Ok. >=20 >> You need >> /usr/local/lib/gcc/arm-none-eabi to be first (or >> the only entry). >=20 > If I force the search path to use /usr/local/arm-none-eabi/include > only, it does not work: > % arm-none-eabi-gcc -nostdinc -I/usr/local/arm-none-eabi/include = break_arm.c > In file included from /usr/local/arm-none-eabi/include/stdio.h:35, > from break_arm.c:1: > /usr/local/arm-none-eabi/include/sys/cdefs.h:45:10: fatal error: = stddef.h: No such file or directory > 45 | #include > | ^~~~~~~~~~ > compilation terminated. Interesting that devel/arm-none-eabi-newlib would be incomplete in its file coverage. But its use of stddef.h from gcc is probably just fine (for now). (Language standard update tracking could change that someday if material that is used is moved between headers by the standard.) > If I add arm gcc port paths AFTER newlib path, it works: > % arm-none-eabi-gcc -nostdinc -I/usr/local/arm-none-eabi/include = -I/usr/local/lib/gcc/arm-none-eabi/11.3.0/include = -I/usr/local/lib/gcc/arm-none-eabi/11.3.0/include-fixed -c break_arm.c = && echo done > done >=20 > Shall the include path be swapped in the arm gcc port? No. Ports like sysutils/u-boot-rpi2 would end up using devel/arm-none-eabi-newlib when it happens to be installed -- but should not use devel/arm-none-eabi-newlib. The order is correct for the 30+ ports that use devel/arm-none-eabi-gcc already. You should not change what happens for those ports. > We shall also evaluate whether the system defaul /usr/include shall > be left as a last resort or not. This removal might be valid, I do not know. None of the ports that use devel/arm-none-eabi-gcc should actually find or use any files from the /usr/include/ tree. If some purpose needed /usr/include/ , it could use the command line to get the search path it needs. =3D=3D=3D Mark Millard marklmi at yahoo.com