Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946892 - media-gfx/darktable: uses march=native preventing cross host builds
Summary: media-gfx/darktable: uses march=native preventing cross host builds
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Markus Meier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-25 09:23 UTC by Hendrik Borghorst
Modified: 2024-12-25 09:43 UTC (History)
1 user (show)

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


Attachments
emerge --info of my build host (running on a AMD Zen 1 host) (emerge-info,8.72 KB, text/plain)
2024-12-25 09:23 UTC, Hendrik Borghorst
Details
Darktable build.log showing "march=native" use (build.log.gz,70.18 KB, application/gzip)
2024-12-25 09:43 UTC, Hendrik Borghorst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Borghorst 2024-12-25 09:23:55 UTC
Created attachment 914835 [details]
emerge --info of my build host (running on a AMD Zen 1 host)

The Darktable (by default) activates a build option to set `-march=native`.

This breaks builds that compile on one host and run on another host (e.g. binary packages or in my case a read-only image builder).

The option can be prevented by setting `-DBINARY_PACKAGE_BUILD=ON` in the cmake configuration options.

For context the `march=native` cflag is handled in "cmake/march-mtune.cmake" in the darktable sources

I am building darktable on a AMD Zen 1 host but I am running it on a Goldmont Plus Intel CPU (Intel Celeron n5030) and when running darktable it crashes with a "Invalid Instruction" signature.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-25 09:31:43 UTC
Note that the build.log is (more) valuable here than just emerge --info. But not so needed hopefully here given you identified the problem already.
Comment 2 Hendrik Borghorst 2024-12-25 09:43:41 UTC
Created attachment 914836 [details]
Darktable build.log showing "march=native" use