From nobody Wed Dec 29 12:06:41 2021 X-Original-To: freebsd-current@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 B38A719064AE; Wed, 29 Dec 2021 12:06:54 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp5.goneo.de (smtp5.goneo.de [IPv6:2001:1640:5::8:30]) (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 4JP9B63tLLz3G5G; Wed, 29 Dec 2021 12:06:54 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from hub2.goneo.de (hub2.goneo.de [85.220.129.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id 8B32F1067541; Wed, 29 Dec 2021 13:06:45 +0100 (CET) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id AD35E10A32E6; Wed, 29 Dec 2021 13:06:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1640779603; 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=mCXS0xYzEk7CexJRxyXyDNxMcu84BEG5VFA60yIENvw=; b=ku9fjI2CA7rP52CrFCo615zH2MjD+4UIP3V/1SjaS4TlGOqh0pOpyAjUbTwFVrw9j9LWD0 M3+Y6JOqr56jiG9RN+oYPzKE5jg9+KJtF9IvAOw3vpBUJ9TEoG3adHSlU00+U2dEYBviSk Bue+si+yi7zwJ4WKwlJFESXu/q2/RkOz1lcxSkvfUUBfIlo68T9OJ1vSFYuc7r9fvA1AXM rEa3yUjFV7Wd5daQs5gczBom3hXzzFRRhOj5ZqlDbfB+hOstpynErWe1Mcn6EdyPlt/pUc zPXrY5/ORYs3wt2GN58L592S8Vn/WYWnWpaNLrv6kxq078nAy/fipTz1dstrEQ== Received: from hermann (dynamic-2a01-0c22-3454-c100-2ad2-44ff-fe79-8732.c22.pool.telefonica.de [IPv6:2a01:c22:3454:c100:2ad2:44ff:fe79:8732]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id 9530910A3309; Wed, 29 Dec 2021 13:06:42 +0100 (CET) Date: Wed, 29 Dec 2021 13:06:41 +0100 From: FreeBSD User To: Daniel Braniss Cc: Marc Fonvieille , Andrew Stevenson , freebsd-embedded@freebsd.org, FreeBSD CURRENT Subject: Re: Arduino IDF -> make/automake based environment Message-ID: <20211229130641.26a93b2f@hermann> In-Reply-To: References: <20211219120947.75530a82@hermann> <0024BDB4-ABFE-4DAE-BC99-0AF43F8B3180@ugh.net.au> <20211229002510.2e2c9cb0@hermann> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-UID: dd1e16 X-Rspamd-UID: 98ad0f X-Rspamd-Queue-Id: 4JP9B63tLLz3G5G X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 29 Dec 2021 09:10:02 +0200 Daniel Braniss wrote: > > On 29 Dec 2021, at 01:25, FreeBSD User wrote: > >=20 > > On Mon, 20 Dec 2021 14:35:10 +0100 > > Marc Fonvieille > wr= ote: > > =20 > >> Le 19.12.2021 21:03, Andrew Stevenson a =C3=A9crit : =20 > >>>=20 > >>> =20 > >>>> On 19. Dec 2021, at 12:18, FreeBSD User wro= te: > >>>>=20 > >>>> environment. Since I'm interested in coding for some smaller AMTEL M= CUs and ESP32 > >>>> and like to digg a bit deeper than simply clicking a host base from = a menu, I'm not > >>>> afraid of doing some larger basic setup if needed. =20 > >>>=20 > >>> If by small AMTEL MCUs you mean AVRs then avr-gcc and avrdude are in = ports. > >>> =20 > >>=20 > >> For ESP32, you should look at: > >> https://wiki.freebsd.org/electronics/arduino/esp32 =20 > >=20 > > Following these instructions with the most recent required ports on the= latest > > 13-STABLE, results in an linker error: > >=20 > > /usr/local/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../..= /../../xtensa-esp32-elf/bin/ld: > > cannot find crt1-sim.o: No such file or directory > > /usr/local/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../..= /../../xtensa-esp32-elf/bin/ld: > > cannot find _vectors.o: No such file or directory > > collect2: error: ld returned 1 exit status > >=20 > > =20 > >> and > >> https://forums.freebsd.org/threads/a-guide-for-installing-esp32-board-= for-arduino-on-freebsd12-update-2021-08-17.78408/ > >> > >> =20 > i gave up compiling the xtensa stuff, specially after espressif came out = with a riscv > version. so I downloaded the oficial idf and under FreeBSD-13 it almost w= orked out of > the box, if you want I can search my notes =E2=80=A6 >=20 > danny >=20 Hello. I think, that will be the first step in the right direction (using the offi= cial eps-idf). Since I didn't come along with the salvation of the linker error reported e= arlier, I switched back to an older project from January this year. It is also based = on the official FreeBSD Arduino 1.8.5 port and the xtensa compiler 5.2.0 from port= s, but I used within sketchbook/hardware/esp32 the esp32 git branch release/v1.0 instead = of master on which I faced the crt1-sim.o error. The goal is to compile HyperionLED (as = a side product) with the recommended libraries for this project. It doesn't compile with ESP32 branch release/v1.0, the error is now [...] libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.h:149:33: error: 'cpu_hal_get_cycle_count' was not declared ... [...] which lead me to the conclusion that a more recent version is required. Wit= h the recent version of ESP32 stuff in place, I face the mentioned crt1-sim.o error. Searching the web for that error leads to a discrepancy of ESP-IDF and the = compiler stuff. I'll try the original esp-idf as you suggested (it is a pity it is backed b= y cmake, I'm not quite familiar with cmake yet). Any advice is highly appreciated. Kind regards, oh