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
Task Type Feature Request
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Eli Schwartz (eschwartz) - Tuesday, 15 January 2019, 15:57 GMT
  • Field changed: Task Type (Bug Report → Feature Request)
  • Field changed: Severity (High → Low)
And this is a high-severity *bug*, because why? The package is behaving exactly as expected, you want to enable extra features.
Comment by Andrew A (andrew-wja) - Tuesday, 15 January 2019, 21:43 GMT
Apologies, you're correct this is not a bug report but rather a feature request.

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.
Comment by Anatol Pomozov (anatolik) - Wednesday, 16 January 2019, 04:26 GMT
Thank you for the report. I'll look at it.

It would be even better if you provide a patch over official PKGBUILD file.

Loading...