Issue with Qemu Binfmt and CMake not detecting compiler.

OpenSubmitted by Brett Gilio.
Details
One participant
  • Brett Gilio
Owner
unassigned
Severity
normal
B
B
Brett Gilio wrote on 20 Jul 21:44 +0200
(address . bug-guix@gnu.org)
87y2nej7jk.fsf@gnu.org
Hey all,
Opening a bug report as per a request following this issue identifiedat: https://lists.gnu.org/archive/html/guix-devel/2020-07/msg00124.html.
To recap, when running
Toggle snippet (3 lines)./pre-inst-env guix build --system=armhf-linux swi-prolog
the configure phase is failing to identify the C/CXX compilertoolchains to compile a test CMake file. There is a variety ofCMakeError.log and other object outputs that populate the builddirectory when ran with --keep-failed.
This seems to be reported before, but subsequently patched athttps://issues.guix.gnu.org/38454#3.This only occurs when using theQemu method of compiling on a foreign architecture, and is not presentwhen natively compiling on true hardware.
Thanks,Brett Gilio
B
B
Brett Gilio wrote on 21 Jul 01:04 +0200
A possible solution
(address . 42448@debbugs.gnu.org)
87v9ihkcuw.fsf@gnu.org
As Marius Bakke pointed out on IRC, this issue is related to a change inCMake where after 3.15 they removed the explicit `#define_FILE_OFFSET_BITS 64`. The solution solution to this is to add
Toggle snippet (4 lines)CFLAGS="-D_FILE_OFFSET_BITS=64"CXXFLAGS="-D_FILE_OFFSET_BITS=64"
to CMakes compilation procedure. This is a core-updates change. I willleave this issue open for now in case this needs moreinvestigation. Since I am just coming off of a haitus I think there arechanges to the core-updates and staging procedures so I dont think I amcomfortable making this change myself.
Brett Gilio
?