GNU bug report logs - #48116
Problems when cross-compiling native-comp

Previous Next

Package: emacs;

Reported by: Anatole Dahan <dahan <at> imj-prg.fr>

Date: Fri, 30 Apr 2021 11:35:01 UTC

Severity: normal

Done: Andrea Corallo <acorallo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48116 in the body.
You can then email your comments to 48116 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#48116; Package emacs. (Fri, 30 Apr 2021 11:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Anatole Dahan <dahan <at> imj-prg.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 30 Apr 2021 11:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Anatole Dahan <dahan <at> imj-prg.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: Headers presents but unusable
Date: Fri, 30 Apr 2021 12:30:41 +0200
[Message part 1 (text/plain, inline)]
Hi,

I have encountered errors while configuring emacs, and I was told to send a bug report here. You will find my config.log attached, together with my environment variables.

For context, I am trying to cross-compile native-compilation. I guess this might not be supported, as libgccjit makes it quite complicated (I didn’t yet find a way to bypass the smoke test). I have built the NATIVE libgccjit for i586-linux-musl (maybe I am wrong about that ?)

Anyway, both sys/inotify.h and libgccjit.h are present, but they are marked as missing because they can’t be used (which seems legit, at least for libgccjit, since it is built for native i586-linux-musl). From what I understood, this is considered a bug. 

Best,
—Anatole Dahan
[bug_report.tar (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]



Changed bug title to 'Problems when cross-compiling native-comp' from 'Headers presents but unusable' Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 02 May 2021 07:30:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48116; Package emacs. (Sun, 02 May 2021 07:32:01 GMT) Full text and rfc822 format available.

Message #10 received at 48116 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Anatole Dahan <dahan <at> imj-prg.fr>
Cc: 48116 <at> debbugs.gnu.org, Andrea Corallo <akrl <at> sdf.org>
Subject: Re: bug#48116: Headers presents but unusable
Date: Sun, 02 May 2021 09:31:08 +0200
Anatole Dahan <dahan <at> imj-prg.fr> writes:

> For context, I am trying to cross-compile native-compilation. I guess
> this might not be supported, as libgccjit makes it quite complicated
> (I didn’t yet find a way to bypass the smoke test).

I'm not sure whether this is supposed to be supported yet or not -- I've
added Andrea to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48116; Package emacs. (Sun, 02 May 2021 21:46:01 GMT) Full text and rfc822 format available.

Message #13 received at 48116 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Anatole Dahan <dahan <at> imj-prg.fr>
Cc: 48116 <at> debbugs.gnu.org
Subject: Re: bug#48116: Headers presents but unusable
Date: Sun, 02 May 2021 21:45:25 +0000
Anatole Dahan <dahan <at> imj-prg.fr> writes:

> Hi,
>
> I have encountered errors while configuring emacs, and I was told to send a bug report here. You will find my config.log attached, together with my environment variables.
>
> For context, I am trying to cross-compile native-compilation. I guess
> this might not be supported, as libgccjit makes it quite complicated
> (I didn’t yet find a way to bypass the smoke test). I have built the
> NATIVE libgccjit for i586-linux-musl (maybe I am wrong about that ?)
>
> Anyway, both sys/inotify.h and libgccjit.h are present, but they are
> marked as missing because they can’t be used (which seems legit, at
> least for libgccjit, since it is built for native
> i586-linux-musl). From what I understood, this is considered a bug.
>
> Best,
> —Anatole Dahan

Hi Anatole,

generally speaking we do not support cross compilation using the native
build as libgccjit AFAIK is just not made for cross compiling.  I
suspect in your specific case this should be possible with some hacking
but coming to the problem of bypassing the smoke test I think the
easiest is to start with is commenting it out from configure.ac.

  Andrea




Reply sent to Andrea Corallo <acorallo <at> gnu.org>:
You have taken responsibility. (Wed, 07 Jun 2023 21:39:02 GMT) Full text and rfc822 format available.

Notification sent to Anatole Dahan <dahan <at> imj-prg.fr>:
bug acknowledged by developer. (Wed, 07 Jun 2023 21:39:02 GMT) Full text and rfc822 format available.

Message #18 received at 48116-done <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <acorallo <at> gnu.org>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: 48116-done <at> debbugs.gnu.org, Anatole Dahan <dahan <at> imj-prg.fr>
Subject: Re: bug#48116: Problems when cross-compiling native-comp
Date: Wed, 07 Jun 2023 17:38:45 -0400
Andrea Corallo <akrl <at> sdf.org> writes:

> Anatole Dahan <dahan <at> imj-prg.fr> writes:
>
>> Hi,
>>
>> I have encountered errors while configuring emacs, and I was told to send a bug report here. You will find my config.log attached, together with my environment variables.
>>
>> For context, I am trying to cross-compile native-compilation. I guess
>> this might not be supported, as libgccjit makes it quite complicated
>> (I didn’t yet find a way to bypass the smoke test). I have built the
>> NATIVE libgccjit for i586-linux-musl (maybe I am wrong about that ?)
>>
>> Anyway, both sys/inotify.h and libgccjit.h are present, but they are
>> marked as missing because they can’t be used (which seems legit, at
>> least for libgccjit, since it is built for native
>> i586-linux-musl). From what I understood, this is considered a bug.
>>
>> Best,
>> —Anatole Dahan
>
> Hi Anatole,
>
> generally speaking we do not support cross compilation using the native
> build as libgccjit AFAIK is just not made for cross compiling.  I
> suspect in your specific case this should be possible with some hacking
> but coming to the problem of bypassing the smoke test I think the
> easiest is to start with is commenting it out from configure.ac.

Closing this old bug as, as mentioned, we (and libgccjit as well) don't
support cross native compiled builds.

Best Regards

  Andrea





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Jul 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 266 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.