void-linux / void-linux/void-packages

datatypes package fails to build in Octave 11.1.0 on Void Linux: libgomp.spec error

Open
#59,745 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Is this a new report?

Yes

System Info

Void 6.12.79_1 x86_64 GenuineIntel uptodate rr

Package(s) Affected

octave-datatypes

Does a report exist for this bug with the project's home (upstream) and/or another distro?

Package: octave-datatypes 1.2.2
Octave version: 11.1.0
System: Void Linux x86_64

When installing via 'pkg install datatypes', compilation fails:

g++: fatal error: cannot read spec file 'libgomp.spec'
compilation terminated.
make: *** [Makefile:15: all] Error 1

Notes:

  • g++ 14.2.1 and libgomp 14.2.1 are installed
  • mkoctfile shows -fopenmp in ALL_CXXFLAGS but not in ALL_LDFLAGS
  • Temporary fix: export CXXFLAGS="-fopenmp" LDFLAGS="-fopenmp" CXX=g++

This seems related to Void Linux gcc toolchain and library paths.

Expected behaviour

The octave-datatypes package should compile and install without errors, allowing the use of table() and other datatypes functionality in Octave 11.1.0.

Actual behaviour

The compilation fails with a fatal error related to libgomp.spec:

g++: fatal error: cannot read spec file 'libgomp.spec'
compilation terminated.
make: *** [Makefile:15: all] Error 1

Even though g++ and libgomp are installed, the package does not link OpenMP properly, preventing successful installation.

Steps to reproduce
  1. Install Octave 11.1.0 on Void Linux x86_64.
  2. Ensure g++ and libgomp are installed.
  3. Run 'pkg install -forge datatypes'.
  4. Observe fatal error: 'cannot read spec file libgomp.spec'.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the octave-datatypes build output and the Makefile target reported at line 15, then compare the mkoctfile OpenMP flags with the temporary CXXFLAGS and LDFLAGS workaround. The work is done when pkg install -forge datatypes builds and installs successfully on Void Linux with g++ and libgomp installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.