GNU bug report logs - #66507
30.0.50; Cannot build some modules without adding LOCAL_EXPORT_CFLAGS=-isystem ... on Android port.

Previous Next

Package: emacs;

Reported by: Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>

Date: Thu, 12 Oct 2023 21:19:01 UTC

Severity: normal

Found in version 30.0.50

Done: Po Lu <luangruo <at> yahoo.com>

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 66507 in the body.
You can then email your comments to 66507 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#66507; Package emacs. (Thu, 12 Oct 2023 21:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 12 Oct 2023 21:19:02 GMT) Full text and rfc822 format available.

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

From: Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50;
 Cannot build some modules without adding LOCAL_EXPORT_CFLAGS=-isystem
 ... on Android port.
Date: Fri, 13 Oct 2023 06:17:50 +0900
[Message part 1 (text/plain, inline)]
Hello,

Duaring building Emacs Android port, I encountered some modules that could
not build without specifying system include header file by -isystem.

These modules are

libxml2:
add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/include
 to its Android.mk.

lbjansson:
add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/src -I
$(LOCAL_PATH)/android
 to its Android.mk

core/libpackagelistparser:
add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/../include
(I installed it from core/libpackagelistparser)

Thanks,
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66507; Package emacs. (Fri, 13 Oct 2023 01:07:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>
Cc: 66507 <at> debbugs.gnu.org
Subject: Re: bug#66507: 30.0.50; Cannot build some modules without adding
 LOCAL_EXPORT_CFLAGS=-isystem ... on Android port.
Date: Fri, 13 Oct 2023 09:06:11 +0800
Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com> writes:

> Hello,
>
> Duaring building Emacs Android port, I encountered some modules that could not build without specifying system include header file by -isystem.
>
> These modules are
>
> libxml2:
> add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/include
>  to its Android.mk.
>
> lbjansson:
> add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/src -I $(LOCAL_PATH)/android
>  to its Android.mk
>
> core/libpackagelistparser:
> add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/../include
> (I installed it from core/libpackagelistparser)
>
> Thanks,

IIRC all three of these changes are mentioned in java/INSTALL, but
please correct me if I'm wrong.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66507; Package emacs. (Fri, 13 Oct 2023 04:32:02 GMT) Full text and rfc822 format available.

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

From: Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 66507 <at> debbugs.gnu.org
Subject: Re: bug#66507: 30.0.50; Cannot build some modules without adding
 LOCAL_EXPORT_CFLAGS=-isystem ... on Android port.
Date: Fri, 13 Oct 2023 13:30:19 +0900
[Message part 1 (text/plain, inline)]
Hello Po- san.

Unfortunately it doesn't seem to be mentioned in the java/INSTALL.

Thanks,

2023年10月13日(金) 午前10:06 Po Lu <luangruo <at> yahoo.com>:

> Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com> writes:
>
> > Hello,
> >
> > Duaring building Emacs Android port, I encountered some modules that
> could not build without specifying system include header file by -isystem.
> >
> > These modules are
> >
> > libxml2:
> > add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/include
> >  to its Android.mk.
> >
> > lbjansson:
> > add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/src -I
> $(LOCAL_PATH)/android
> >  to its Android.mk
> >
> > core/libpackagelistparser:
> > add LOCAL_EXPORT_CFLAGS := -isystem $(LOCAL_PATH)/../include
> > (I installed it from core/libpackagelistparser)
> >
> > Thanks,
>
> IIRC all three of these changes are mentioned in java/INSTALL, but
> please correct me if I'm wrong.
>
[Message part 2 (text/html, inline)]

Reply sent to Po Lu <luangruo <at> yahoo.com>:
You have taken responsibility. (Fri, 13 Oct 2023 05:03:01 GMT) Full text and rfc822 format available.

Notification sent to Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>:
bug acknowledged by developer. (Fri, 13 Oct 2023 05:03:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>
Cc: 66507-done <at> debbugs.gnu.org
Subject: Re: bug#66507: 30.0.50; Cannot build some modules without adding
 LOCAL_EXPORT_CFLAGS=-isystem ... on Android port.
Date: Fri, 13 Oct 2023 13:01:58 +0800
Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com> writes:

> Hello Po- san.
>
> Unfortunately it doesn't seem to be mentioned in the java/INSTALL.

I've now repaired these ommissions; that being said, I opted to
recommend modifications to the Makefiles different from those you
mentioned, for include paths are customarily exported through the
variable LOCAL_EXPROT_C_INCLUDE_DIRS, not variables meant for exporting
CFLAGS.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66507; Package emacs. (Fri, 13 Oct 2023 06:42:02 GMT) Full text and rfc822 format available.

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

From: Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 66507-done <at> debbugs.gnu.org
Subject: Re: bug#66507: 30.0.50; Cannot build some modules without adding
 LOCAL_EXPORT_CFLAGS=-isystem ... on Android port.
Date: Fri, 13 Oct 2023 15:40:27 +0900
[Message part 1 (text/plain, inline)]
Hello,

I will try LOCAL_EXPORT_C_INCLUDE_DIRS instead.

Thanks,

2023年10月13日(金) 午後2:02 Po Lu <luangruo <at> yahoo.com>:

> Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com> writes:
>
> > Hello Po- san.
> >
> > Unfortunately it doesn't seem to be mentioned in the java/INSTALL.
>
> I've now repaired these ommissions; that being said, I opted to
> recommend modifications to the Makefiles different from those you
> mentioned, for include paths are customarily exported through the
> variable LOCAL_EXPROT_C_INCLUDE_DIRS, not variables meant for exporting
> CFLAGS.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66507; Package emacs. (Sun, 15 Oct 2023 17:37:02 GMT) Full text and rfc822 format available.

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

From: ayatakesi <ayanokoji.takesi <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 66507-done <at> debbugs.gnu.org
Subject: Re: bug#66507: 30.0.50; Cannot build some modules without adding
 LOCAL_EXPORT_CFLAGS=-isystem ... on Android port.
Date: Mon, 16 Oct 2023 02:35:32 +0900
Hello, again

I tried LOCAL_EXPORT_C_INCLUDE_DIRS, and worked fine
 except core/libpackagelistparser.

When I build libpackagelistparser, make failed with

/home/runner/work/my-emacs/my-emacs/my_sub_modules/core/libpackagelistparser//packagelistparser.c:30:10: fatal error: 'utils/Log.h' file not found
#include <utils/Log.h>
         ^~~~~~~~~~~~~

I cloned core package from Google, and I specify such bellow

directory structure:
core
|-libpackagelistparser
    Android.mk
|-utils
  |-include
      Log.h

in Android.mk:
LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/../include

But LOCAL_EXPORT_C_INCLUDE_DIRS and LOCAL_EXPORT_C_INCLUDES
 did not work except LOCAL_EXPORT_CFLAGS.


Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com> writes:

> Hello,
>
> I will try LOCAL_EXPORT_C_INCLUDE_DIRS instead.
>
> Thanks,
>
> 2023年10月13日(金) 午後2:02 Po Lu <luangruo <at> yahoo.com>:
>
>  Takesi Ayanokoji <ayanokoji.takesi <at> gmail.com> writes:
>
>  > Hello Po- san.
>  >
>  > Unfortunately it doesn't seem to be mentioned in the
>  java/INSTALL.
>
>  I've now repaired these ommissions; that being said, I
>  opted to
>  recommend modifications to the Makefiles different from
>  those you
>  mentioned, for include paths are customarily exported
>  through the
>  variable LOCAL_EXPROT_C_INCLUDE_DIRS, not variables
>  meant for exporting
>  CFLAGS.




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

This bug report was last modified 1 year and 218 days ago.

Previous Next


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