* bug#42448: Issue with Qemu Binfmt and CMake not detecting compiler.
@ 2020-07-20 19:44 Brett Gilio
2020-07-20 23:04 ` bug#42448: A possible solution Brett Gilio
0 siblings, 1 reply; 2+ messages in thread
From: Brett Gilio @ 2020-07-20 19:44 UTC (permalink / raw)
To: 42448
Hey all,
Opening a bug report as per a request following this issue identified
at: https://lists.gnu.org/archive/html/guix-devel/2020-07/msg00124.html.
To recap, when running
--8<---------------cut here---------------start------------->8---
./pre-inst-env guix build --system=armhf-linux swi-prolog
--8<---------------cut here---------------end--------------->8---
the configure phase is failing to identify the C/CXX compiler
toolchains to compile a test CMake file. There is a variety of
CMakeError.log and other object outputs that populate the build
directory when ran with --keep-failed.
This seems to be reported before, but subsequently patched at
https://issues.guix.gnu.org/38454#3. This only occurs when using the
Qemu method of compiling on a foreign architecture, and is not present
when natively compiling on true hardware.
Thanks,
Brett Gilio
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#42448: A possible solution
2020-07-20 19:44 bug#42448: Issue with Qemu Binfmt and CMake not detecting compiler Brett Gilio
@ 2020-07-20 23:04 ` Brett Gilio
0 siblings, 0 replies; 2+ messages in thread
From: Brett Gilio @ 2020-07-20 23:04 UTC (permalink / raw)
To: 42448
As Marius Bakke pointed out on IRC, this issue is related to a change in
CMake where after 3.15 they removed the explicit `#define
_FILE_OFFSET_BITS 64`. The solution solution to this is to add
--8<---------------cut here---------------start------------->8---
CFLAGS="-D_FILE_OFFSET_BITS=64"
CXXFLAGS="-D_FILE_OFFSET_BITS=64"
--8<---------------cut here---------------end--------------->8---
to CMakes compilation procedure. This is a core-updates change. I will
leave this issue open for now in case this needs more
investigation. Since I am just coming off of a haitus I think there are
changes to the core-updates and staging procedures so I dont think I am
comfortable making this change myself.
Brett Gilio
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-20 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 19:44 bug#42448: Issue with Qemu Binfmt and CMake not detecting compiler Brett Gilio
2020-07-20 23:04 ` bug#42448: A possible solution Brett Gilio
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).