Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909453 - openmp error in crossdev when compiling for aarch64 musl
Summary: openmp error in crossdev when compiling for aarch64 musl
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-01 18:30 UTC by Nezar
Modified: 2023-07-03 18:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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