Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2023 14:01:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272142] devel/xtensa-esp32-elf: Request lang/gcc as default
Message-ID:  <bug-272142-7788-yM0DFk8Cdk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272142-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272142-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272142

--- Comment #3 from O. Hartmann <ohartmann@walstatt.org> ---
My skills of understanding the design of the toolset is limited. I stumbled
into this problem regarding gcc, since my CURRENT boxes are on "default gcc=
",
which is lang/gcc (which is lang/gcc12 ). It takes a significant amount of =
time
on my oldish hardware to compile gcc.

First: lang/gcc12 (as other compilers) have backward compatibility knobs, l=
ike=20

-std=3Dc++11

I tried to apply those knobs via "CXXFLAGS+=3D-std=3Dc++11" in the Makefile=
 to get
rid of the c++17 warning (treated as error) when compiling with gcc12, but =
no
success - I guess the configure part via (gnu) autotools isn't run properly=
 to
deploy the CXXFLAGS knob or, more likely, the set of options is fixed in the
sources and need to be patched.

Second: I did not understand the concept of this port, on the one hand we u=
se
gcc10 to compile the "port", on the other hand, gcc5.2 is included as the c=
ross
compiler(?) to deliver Xtensa binary code. Reasons unknown.

Third: I checked whether the FreeBSD base compiler, LLVM (LLVM16 now in
CURRENT) supports the target Xtensa - and it seems, following this=20

https://www.esp32.com/viewtopic.php?t=3D9226

reveals that LLVM already supports the target in some way - I did not
investigate the state of efficiency yet.

At the end I'd like to have a development environment ready to compile and
deploy some code on ESP32 MCUs.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272142-7788-yM0DFk8Cdk>