gd package and cross compile badness
Hello,
I'm trying to compile tetex with org.openembedded.dev but it needs to compile gd (gd_2.0.33) but it does not work. It seems to be a problem in configure. In the config.log
I can see
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
cc1: internal compiler error: Aborted
I have not well understood the message on http://www.openembedded.org/
about this. So I'm writing to this list.
Thanks,
Alain
Quoted 11 lines · On Wed, Aug 30, 2006 at 09:47:16PM +0200, Alain2210 wrote:
Hello,
I'm trying to compile tetex with org.openembedded.dev but it needs to compile gd (gd_2.0.33) but it does not work. It seems to be a problem in configure. In the config.log
I can see
CROSS COMPILE Badness:/usr/includein INCLUDEPATH:/usr/include
cc1: internal compiler error: AbortedI have not well understood the message on http://www.openembedded.org/
about this. So I'm writing to this list.
The configure script is looking in /usr/include for headers, but those headers are for your host system and not for the target system. I suspect you have one of those distro's that include the X header in /usr/include only and not in /usr/X11R6/include and so it's the search for the X headers that is the issue.
It looks for the X headers because they are needed if freetype or xpm is support is being included in gd. It looks like neither of these are included, so disabling the check for X is probably the correct fix:
#
# old_revision [63b7883c8cd45c0306b301ca925831ff27775b20]
#
# patch "packages/gd/gd_2.0.33.bb"
# from [09dd91fdad9775cef7f151a0565b024ee673a635]
# to [1216c7c3c1dba874b78d93bcaa926ba3217bb075]
#
============================================================
--- packages/gd/gd_2.0.33.bb 09dd91fdad9775cef7f151a0565b024ee673a635
+++ packages/gd/gd_2.0.33.bb 1216c7c3c1dba874b78d93bcaa926ba3217bb075
@@ -13,7 +13,8 @@ EXTRA_OECONF += " --with-zlib=${STAGING_
EXTRA_OECONF += " --with-zlib=${STAGING_LIBDIR}/.. \
--with-png=${STAGING_LIBDIR}/.. \
--with-jpeg=${STAGING_LIBDIR}/.. \
- --without-xpm"
+ --without-xpm \
+ --without-x" EXTRA_OEMAKE = "LDFLAGS=-L${STAGING_LIBDIR}"
Signature · 1 line
Jamie Lenehan <[email protected]>
Hello,
thnaks for this answer :
Quoting Jamie Lenehan <[email protected]>:
Quoted 12 lines · On Wed, Aug 30, 2006 at 09:47:16PM +0200, Alain2210 wrote:
Quoted 1 line
I'm trying to compile tetex with org.openembedded.dev but it needs to
compile gd
Quoted 1 line
(gd_2.0.33) but it does not work. It seems to be a problem in configure. In
the
Quoted 4 lines
config.log
I can see
CROSS COMPILE Badness:/usr/includein INCLUDEPATH:/usr/include
cc1: internal compiler error: AbortedThe configure script is looking in
/usr/includefor headers, but those headers are for your host system and not for the target system.
Yes, I understand that.
Quoted 3 lines
I suspect you have one of those distro's that include the X header in
/usr/includeonly and not in/usr/X11R6/includeand so it's the search for the X headers that is the issue.
I have forgotten to say that I was using familiar-unstable.
Quoted 5 lines
It looks for the X headers because they are needed if freetype or xpm is support is being included in gd. It looks like neither of these are included, so disabling the check for X is probably the correct fix:
Yes, this corrects the problem.
I get an analogous problem in tetex. And will try to solve it with the same technic.
Thanks,
Alain
On Fri, Sep 01, 2006 at 12:01:45PM +0200, Alain2210 wrote:
[...]
Quoted 5 lines
Quoted 3 lines
I suspect you have one of those distro's that include the X header in
/usr/includeonly and not in/usr/X11R6/includeand so it's the search for the X headers that is the issue.I have forgotten to say that I was using familiar-unstable.
Ah, that's not actually what I meant ;). In this case I was talking about your "host distro" not the OE distro you were building for.
The check for host systems headers complains if something tries to use headers from /usr/include but it doesn't complain if something tries to use headers from /usr/X11R6/include. Most host distro's have the X headers in /usr/X11R6/include - I have Fedora Core 4 x86_64 and that's where it puts the X headers. But some disto's (whatever host distro your using for example) have the X headers in /usr/include/X11 only. The configure scripts appear to check for /usr/X11R6/include before /usr/include/X11/.
So most OE developers don't actually see any of the problems that are related to the use of the X headers, so you may run into a few of those.
The solution for the X headers that usually works is to pass appropriate options to config. That's either:
--without-x
if X isn't needed, or:
--x-libraries=${STAGING_LIBDIR} --x-includes=${STAGING_INCDIR}
if X is needed.
[...]
Quoted 1 line
I get an analogous problem in tetex. And will try to solve it with the same
Yeah, tetex is looking for the X libs and headers as well:
[nynaeve][12:09AM]%> grep /usr/.\*/include /data/oe/build/wrap-glibc/tmp/work/tetex-native-3.0-r1/temp/log.do_configure.18267 checking for X... libraries /usr/X11R6/lib64, headers /usr/X11R6/include
On your system it'll be finding th headers in /usr/include/X11, so the fix should be the same.
You should probably add entries in the bugtracker for each one of these you find and fix as well.
Signature · 1 line
Jamie Lenehan <[email protected]>
Hello,
Quoting Jamie Lenehan <[email protected]>:
Quoted 10 lines · On Fri, Sep 01, 2006 at 12:01:45PM +0200, Alain2210 wrote:
[...]
Quoted 5 lines
Quoted 3 lines
I suspect you have one of those distro's that include the X header in
/usr/includeonly and not in/usr/X11R6/includeand so it's the search for the X headers that is the issue.I have forgotten to say that I was using familiar-unstable.
Ah, that's not actually what I meant ;). In this case I was talking about your "host distro" not the OE distro you were building for.
Ok, my host distro is Debian etch i386
Quoted 9 lines
The check for host systems headers complains if something tries to use headers from
/usr/includebut it doesn't complain if something tries to use headers from/usr/X11R6/include. Most host distro's have the X headers in/usr/X11R6/include- I have Fedora Core 4x86_64and that's where it puts the X headers. But some disto's (whatever host distro your using for example) have the X headers in/usr/include/X11only. The configure scripts appear to check for/usr/X11R6/includebefore/usr/include/X11/.
Yes, on my host system, X include are in /usr/include/X11.
Quoted 8 lines
So most OE developers don't actually see any of the problems that are related to the use of the X headers, so you may run into a few of those.
The solution for the X headers that usually works is to pass appropriate options to config. That's either:
Quoted 7 lines
--without-x
if X isn't needed, or:
--x-libraries=${STAGING_LIBDIR} --x-includes=${STAGING_INCDIR}
if X is needed.
I will try that.
Quoted 8 lines
[...]
Quoted 1 line
I get an analogous problem in tetex. And will try to solve it with the same
Yeah, tetex is looking for the X libs and headers as well:
[nynaeve][12:09AM]%> grep /usr/.\*/include
/data/oe/build/wrap-glibc/tmp/work/tetex-native-3.0-r1/temp/log.do_configure.18267
Quoted 7 lines
checking for X... libraries
/usr/X11R6/lib64, headers/usr/X11R6/includeOn your system it'll be finding th headers in
/usr/include/X11, so the fix should be the same.You should probably add entries in the bugtracker for each one of these you find and fix as well.
I have found a non correct solution for tetex :
export includedir = "${STAGING_INCDIR}"
but that was not a good solution (the package tetex-dev want to install the files in
${STAGING_INCDIR}...)
Moreover, since xdvi is configure to not be compile, tetex could be configure with
-without-x
I will experiment your solution.
Tanks,
Alain