Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 909453

Summary: openmp error in crossdev when compiling for aarch64 musl
Product: Gentoo Linux Reporter: Nezar <nizar.t96>
Component: Current packagesAssignee: Cross compilation support <cross>
Status: UNCONFIRMED ---    
Severity: normal CC: herrtimson, toolchain
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nezar 2023-07-01 18:30:37 UTC
I was setting up a cross-compile chain using crossdev for aarch64 musl device. The exact target is: aarch64-gentoo-linux-musl. The host was a glibc amd64 gentoo.

After setting up the cross compiler, attempting to emerge almost any package using the cross-compile chain `emerge-aarch64-gentoo-linux-musl`, including updating system packages, fails with the message:

```
[code]
* Messages for package app-crypt/libb2-0.98.1-r3 merged to /usr/aarch64-gentoo-linux-musl/:

 * Your current compiler does not support OpenMP!
 * Enable OpenMP support by building sys-devel/gcc with USE="openmp".
 * ERROR: app-crypt/libb2-0.98.1-r3::gentoo failed (pretend phase):
 *   Active compiler does not have required support for OpenMP
[/code]
```

However, attempting to do as the error message does not work either. After running `USE="openmp" emerge-aarch64-gentoo-linux-musl sys-devel/gcc` does not fix the issue.

I ended up fixing this issue by adding the "openmp" USE flag to the cross compiler, running `USE="openmp" emerge --oneshot cross-aarch64-gentoo-linux-musl/gcc`  

Maybe this should be set as a default flag?
Comment 1 Nezar 2023-07-01 19:15:43 UTC
Apologies for not providing a `emerge --info`. I had already fixed the problem when I made this bug report, but thought it would be good to post here for visibility and adding a permanent fix