From nobody Mon Jul 6 05:34:12 2026 X-Original-To: freebsd-embedded@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 4gttN92fR6z6kY9C for ; Mon, 06 Jul 2026 05:34:49 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp6.goneo.de (smtp6.goneo.de [85.220.129.31]) (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 4gttN70dwKz44n0 for ; Mon, 06 Jul 2026 05:34:47 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=gMd1NE8b; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 85.220.129.31 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de Received: from hub1.goneo.de (hub1.goneo.de [IPv6:2001:1640:5::8:52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp6.goneo.de (Postfix) with ESMTPS id 833F8240B06 for ; Mon, 06 Jul 2026 07:34:44 +0200 (CEST) Received: from hub1.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPS id CBB46240545 for ; Mon, 06 Jul 2026 07:34:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1783316081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HckCh/5FrKv1CH70sMFmRNST3U1XCnA5Zq5JfpXtDuA=; b=gMd1NE8bLG7M/SsVUChMpU25WP+Ecraai3ADqdjT3cbxnPTo7UZ0Sc1ZagkmeecSqrZRvj BywjN1mKJvb2AVn+vK4J2EmaCjWlTfktQ17SivPUg1kjvULxkF7TARzbu9SHeG3VZh7UDb S5J+JmUvjcHxAUkssC4Kwx42yFH1RQ2PKNFD+3yofSv8nw4sY/rC6Lz2dt2Gkax3oufAwS bTSmiwSUjbZ7wsyVh6YGFfdzwcxegFIKhFkUMvesk3GNbYKUuE3zBiEnsylXgwaj1kEuDG 1VaknDQHBzufOvlhIa7SPy+tXbkSAvZ/yxctCJr5FbV0oOO1c9CT+eo2H7kiRA== Received: from thor.sb211.local (dynamic-2a02-3100-1bea-8e02-825a-a05d-10ef-d97b.310.pool.telefonica.de [IPv6:2a02:3100:1bea:8e02:825a:a05d:10ef:d97b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPSA id 8E0F724046D for ; Mon, 06 Jul 2026 07:34:41 +0200 (CEST) Date: Mon, 6 Jul 2026 07:34:12 +0200 From: A FreeBSD User To: freebsd-embedded@freebsd.org Subject: Xtensa LX7/RISCv32 (ESP) toolchain: picolibc.specs location Message-ID: <20260706073219.5ee1e0a2@thor.sb211.local> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; amd64-portbld-freebsd16.0) List-Id: Dedicated and Embedded Systems List-Archive: https://lists.freebsd.org/archives/freebsd-embedded List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-embedded@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/ST=_v5fMuL/yjB02Qgja2gV"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: c77080 X-Rspamd-UID: 91db88 X-Spamd-Result: default: False [-5.68 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; R_SPF_ALLOW(-0.20)[+ip4:85.220.129.0/25]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[85.220.129.31:from]; ARC_NA(0.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-embedded@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-embedded@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Spamd-Bar: ----- X-Rspamd-Queue-Id: 4gttN70dwKz44n0 --Sig_/ST=_v5fMuL/yjB02Qgja2gV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, first of all I am a absolute beginner in embedded development! So, my knowl= edge about certain toolchains and library specifica is limited. I use FreeBSD (15/1-STABLE and CURRENT) a the development platform and for = some ESP32 projects I'd like to utilize the ESP32 toolchain provided here https://github.com/trombik/xtensa-esp32-elf The port/toolchain does build for almost all espressif provided ESP-IDF (see https://github.com/espressif/esp-idf), except esp-idf-v55 (espressif did ch= ange somehow the requirements within a minor release update). I'm with ESP-IDF v6.0.2 using = both Xtensa- and RISCv32 toolchains with success on some small self-brewn code and on exampl= es. But: I can't use the default picolibc library! The compiler (gcc14-xtensa o= r gcc14-riscv32) bails out with an error not capable of finding any "-spec=3Dpicolibc.specs"= file. It seems that such a picolibc.spec file is provided by the port/sources of = piclib itself,, but not installed by the port's framework. So I started fiddling around where t= he compiler might search for this default specs file. There is not much information available= about the correct place to put the file, it is said that the file should reside within the to= olchain's path - which is beginning with /usr/local/xtensa-esp-elf-idf60/bin.=20 But I failed. Putting picolibc.specs anywhere within this base search path = doesn't prevent me being gifted by the error described above. So, I guess I lack in fundamental understandings of how this ominous picoli= bc.spec file works and what it is intended for and therefor there might someone be willing to = enlighten me. At the moment a workaround is to use old newlib by putting an appropriate s= dkconfig.defaults tag within the tree of the project: CONFIG_LIBC_NEWLIB=3Dy Thanks in advance, Oliver --=20 A FreeBSD user --Sig_/ST=_v5fMuL/yjB02Qgja2gV Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iJEEARYKADkWIQRQheDybVktG5eW/1Kxzvs8OqokrwUCaks+bxsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDMACgkQsc77PDqqJK8ivQD/bsi+wdQXmSnTTHfNkVY3 0QT8L06c07KfEDZxHCl7UiYBAJzIhTUOUMKQBbc5TPmlNRAG4/vVxVgt0dFtmIqS 4n4J =x3mi -----END PGP SIGNATURE----- --Sig_/ST=_v5fMuL/yjB02Qgja2gV--