commit:     d9d41ff1fc978d4bbc07b0ea3d53ef4a69d6f11e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  7 02:02:36 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  7 02:08:26 2025 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=d9d41ff1

crossdev: disable openmp for avr

Explicitly disable openmp for avr as it needs threads, though we shouldn't
have to do this as the eclass tries to disable openmp when pthreads
aren't available...

But still, it's an easy fix/workaround, and we do -openmp for baremetal
below anyway.

See https://forums.gentoo.org/viewtopic-t-1174467.html. Given the user
had earlier cross-avr/gcc installed:
```
[ebuild     U ] cross-avr/gcc-14.3.0 [14.2.1_p20241221] USE="cet cxx lto 
(multilib) nls openmp -ada -custom-cflags
 -d -debug -default-stack-clash-protection -default-znow -doc -fixed-point 
-fortran -go -graphite (-hardened)
  -ieee-long-double -jit -libssp -modula2 -objc -objc++ -objc-gc (-pch) -pgo 
(-pie) -rust -sanitize
  (-ssp) -systemtap -test (-time64) -valgrind -vanilla -vtv -zstd"
``
... I fear that it's a regression from 37dded9b48c93a67b9a32b5eca2b1ef0fc6e8b9e
in ::gentoo, just not sure how yet.

Bug: https://bugs.gentoo.org/326757
Bug: https://bugs.gentoo.org/335883
Bug: https://bugs.gentoo.org/489798
Signed-off-by: Sam James <sam <AT> gentoo.org>

 crossdev | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crossdev b/crossdev
index 9eda714..1e5c4ac 100755
--- a/crossdev
+++ b/crossdev
@@ -270,7 +270,7 @@ parse_target() {
                        KPKG="[none]"
                        LCAT="dev-embedded"
                        LPKG="avr-libc"
-                       GUSE+=" -fortran -go" # doesn't work
+                       GUSE+=" -openmp -fortran -go" # doesn't work
                        MULTILIB_USE="yes" #377039
                        BUSE+=" cxx"
                        WITH_DEF_HEADERS="no"

Reply via email to