FS#61410 - [aarch64-linux-gnu-gcc] Missing OpenMP support
Attached to Project:
Community Packages
Opened by Andrew A (andrew-wja) - Tuesday, 15 January 2019, 15:48 GMT
Last edited by Anatol Pomozov (anatolik) - Thursday, 17 January 2019, 01:17 GMT
Opened by Andrew A (andrew-wja) - Tuesday, 15 January 2019, 15:48 GMT
Last edited by Anatol Pomozov (anatolik) - Thursday, 17 January 2019, 01:17 GMT
|
Details
Description:
When I try to compile any code with -fopenmp, I get an error because /usr/lib/libgomp.spec is missing. (The compiler was built without support for OpenMP) Additional info: * package version(s): 8.2.0-2 Steps to reproduce: Compile any program with -fopenmp |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Thursday, 17 January 2019, 01:17 GMT
Reason for closing: Fixed
Additional comments about closing: aarch64-linux-gnu-gcc-8.2.0-3
Thursday, 17 January 2019, 01:17 GMT
Reason for closing: Fixed
Additional comments about closing: aarch64-linux-gnu-gcc-8.2.0-3
A lot of critical systems software is not working on aarch64 because OpenMP is used in a wide variety of projects. I work primarily on compilers and systems software for embedded systems, and a ton of that stuff relies on OpenBLAS, which needs OpenMP, which should be present. In fact, if you look on the mailing list for upstream GCC, they have actually made it more and more difficult to disable OpenMP, because it's so widely used.
This package actually builds OpenMP support because you can't disable the switch in GCC any more -- it simply doesn't install the matching runtime library, so you get a linker error.
I've prototyped a solution over on the AUR here: https://aur.archlinux.org/packages/aarch64-linux-gnu-gcc-openmp/
All that's required is to add the targets `install-target-libgomp install-target-libgfortran install-target-libquadmath` to the make line, and to add fortran to GCC's --enable-languages line.
This would bring this package to feature parity with the normal x86_64 gcc package.
It would be even better if you provide a patch over official PKGBUILD file.