From nobody Sat May 27 11:21:16 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 4QSzrN13XFz4WtLR for ; Sat, 27 May 2023 11:21:24 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (mail.yourbox.net [IPv6:2001:41d0:1:767d::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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.yourbox.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QSzrM5Pypz3wmS; Sat, 27 May 2023 11:21:23 +0000 (UTC) (envelope-from fbl@aoek.com) Authentication-Results: mx1.freebsd.org; none Received: from mail.yourbox.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail.yourbox.net (8.17.1/8.17.1) with ESMTP id 34RBLLeA005176; Sat, 27 May 2023 13:21:21 +0200 (CEST) (envelope-from fbl@aoek.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aoek.com; s=mailbox; t=1685186481; bh=nTW1+PciUAivxc76kGunTYhUXsKYxrc8xxMt2BKtodI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BDCGFJ7qRHADOR/FP3x977N7PnDeRST6ZEVI+jzSwVEdVYLielkscQ4nNGrRBpDrT h6uejPshHjnDY2c3iU1rugiCZQ5xXHCGMheWqq2cFEGnM97qhkKlsUKuFx1wLO5Cbt 9VamTAh33A6QkDPA+y1wF8NFLOWqlgQGEpr+5JHOfbqLEJ4FkKPLTwZjYhvbK1cKte ryWkVYfxWEmYBcoMbtVd70Wy4VY3nCg32gKQt4CM/dzNLuktYr79T4AvNvuK9xKhyW X6QUOJLDVFGVRU7MgUT9G3Z8FLXmd39u3tiIJGz5qIU8MiDClEp4Ih90SybqVOSLpq Yq9jxdqt+igXA== 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 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 27 May 2023 13:21:16 +0200 From: =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= To: Mark Millard Cc: freebsd-arm@freebsd.org, kevans@freebsd.org Subject: Re: devel/arm-none-eabi-newlib headers inconsistencies (not functional) or am I misusing something? In-Reply-To: <9E888138-D3D0-4A6C-92B9-31705D470089@yahoo.com> References: <11a941a3a1c9e001559ccc6183af131d@mail.yourbox.net> <784313c52e2f42eb63f3755a5c093fdc@mail.yourbox.net> <9E888138-D3D0-4A6C-92B9-31705D470089@yahoo.com> Message-ID: <232dc6e4e0d3b5f3abcd37049db0991b@mail.yourbox.net> X-Sender: fbl@aoek.com User-Agent: Roundcube Webmail/1.2.0 X-Rspamd-Queue-Id: 4QSzrM5Pypz3wmS X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N El 2023-05-27 12:18, Mark Millard escribió: >> should be fixed or is it ok >> to leave it as it is now? > > Leave it as it is. Ok. > You need > /usr/local/lib/gcc/arm-none-eabi to be first (or > the only entry). > 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. 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 Shall the include path be swapped in the arm gcc port? We shall also evaluate whether the system defaul /usr/include shall be left as a last resort or not. BR, -- José Pérez