| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu Feb 28, 2008 2:15 am Post subject: Cross Compiling - Cannot find dependency /usr/include |
|
|
I have been trying to cross compile icecast and ices for the Gumstix platform (http://www.gumstix.net) using the OpenEmbedded Build Environment. These are ARM based processors.
The issue I have been running into is that when the configure is including '-I /usr/include' as some of the compiler flags. When cross compiling, this is very bad as the target system cannot be dependent on building host's system. I wanted to post this to Icecast forums to see if anyone could help me solve this problem. This issue affects both Icecast and Ices.
Here is some of the output I am seeing:
| Code: |
configure:22602: arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -c -Werror -I/usr/include -isystem/home/dmfrey/gumstix/gumstix-oe/tmp/stag
ing/arm-angstrom-linux-gnueabi/include conftest.c >&5
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
cc1: internal compiler error: in add_path, at c-incpath.c:362
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
configure:22608: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Icecast"
| #define PACKAGE_TARNAME "icecast"
| #define PACKAGE_VERSION "2.3.1"
| #define PACKAGE_STRING "Icecast 2.3.1"
| #define PACKAGE_BUGREPORT "icecast@xiph.org"
| #define PACKAGE "icecast"
| #define VERSION "2.3.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_PWD_H 1
| #define CHUID 1
| #define HAVE_UNISTD_H 1
| #define CHROOT 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_POLL 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SETHOSTENT 1
| #define HAVE_GETNAMEINFO 1
| #define HAVE_ENDHOSTENT 1
| #define HAVE_GETADDRINFO 1
| #define HAVE_INET_ATON 1
| #define HAVE_WRITEV 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
| #define HAVE_INET_PTON 1
| #define HAVE_XSLTSAVERESULTTOSTRING 1
| #define HAVE_OGG 1
| #define HAVE_STRUCT_OVECTL_RATEMANAGE_ARG 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:22641: checking for libtheora
|
Thank you for any help. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Feb 28, 2008 2:45 am Post subject: |
|
|
That is a gcc crash so you better had report that with the gcc folks. We don't have a /usr/include explicitly in our bits but we do use whatever the libs specify (eg xml2-config -cflags) and that could be the trigger for this gcc crash.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Feb 28, 2008 2:53 am Post subject: |
|
|
| Thanks Karl. I will look into doing that. |
|
| Back to top |
|
 |
|