[oe] [abiword] CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/freetype2

Phil Black phil.black at hillcrestlabs.com
Fri Dec 4 15:17:08 UTC 2009


I believe this is more an indication of a problem with the abiword
package.  My understanding is OE applies a patch to the cross compiler
so that if '/usr/include' (or some sub dir thereof) is ever included the
compile will fail.  This is to protect host (the system you are building
on) include files from contaminating cross-compiled programs. 

The fix may be as simple as making sure freetype2 is built before ABI
word (added freetype2 to the DEPENDS list).
-Phil

On Thu, 2009-12-03 at 23:45 +0100, Paul Menzel wrote:
> Dear OpenEmbedded hackers,
> 
> 
> I ran `bitbake beagleboard-demo-image` and got the following error. I am
> using HEAD 7303994323260b1190486655b694397b3a8a7272.
> 
>         $ bitbake beagleboard-demo-image
>         […]
>         ERROR: function do_compile failed
>         ERROR: see log in /srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/temp/log.do_compile.13680
>         NOTE: Task failed: /srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/temp/log.do_compile.13680
>         ERROR: TaskFailed event exception, aborting
>         ERROR: Build of /srv/oe/openembedded/recipes/abiword/abiword_2.8.1.bb do_compile failed
>         NOTE: Running task 10113 of 10150 (ID: 19, /srv/oe/openembedded/recipes/images/beagleboard-demo-image.bb, do_package_write_ipk)
>         NOTE: Running task 10114 of 10150 (ID: 12, /srv/oe/openembedded/recipes/images/beagleboard-demo-image.bb, do_qa_staging)
>         ERROR: Task 3406 (/srv/oe/openembedded/recipes/abiword/abiword_2.8.1.bb, do_compile) failed
>         NOTE: Waiting for 3 active tasks to finish
>         NOTE: 1: /srv/oe/openembedded/recipes/images/beagleboard-demo-image.bb, do_qa_staging (6766)
>         NOTE: 2: /srv/oe/openembedded/recipes/opkg/opkg-native_svn.bb, do_configure (5978)
>         NOTE: 3: /srv/oe/openembedded/recipes/images/beagleboard-demo-image.bb, do_package_write_ipk (6719)
>         NOTE: Waiting for 2 active tasks to finish
>         NOTE: 1: /srv/oe/openembedded/recipes/images/beagleboard-demo-image.bb, do_qa_staging (6766)
>         NOTE: 2: /srv/oe/openembedded/recipes/opkg/opkg-native_svn.bb, do_configure (5978)
>         NOTE: Waiting for 1 active tasks to finish
>         NOTE: 1: /srv/oe/openembedded/recipes/opkg/opkg-native_svn.bb, do_configure (5978)
>         NOTE: Tasks Summary: Attempted 10110 tasks of which 9772 didn't need to be rerun and 1 failed.
>         ERROR: '/srv/oe/openembedded/recipes/abiword/abiword_2.8.1.bb' failed
>         
>         $ more build/conf/local.conf
>         […]
>         DISTRO = "angstrom-2008.1"
>         
>         MACHINE = "beagleboard"
>         BUILD_ARCH = "i686"
>         BUILD_OS = "linux"
>         
>         BB_NICE_LEVEL="19"
>         
>         $ more oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/temp/log.do_compile.13680
>         […]
>         Making all in xp
>         make[4]: Entering directory `/srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/abiword-2.8.1/plugins/wmf/xp'
>         /bin/sh ../../../arm-angstrom-linux-gnueabi-libtool --tag=CXX   --mode=compile arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I../../..  -I/usr/include/freetype2 -I/usr/include -pthread -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/glib-2.0/include   -pthread -DORBIT2=1 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/fribidi -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/glib-2.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libgsf-1 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libxml2 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/wv -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/enchant -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gnome-vfs-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/gnome-vfs-2.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gconf/2 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/orbit-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/dbus-1.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/dbus-1.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libbonobo-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/bonobo-activation-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libgoffice-0.8 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gtk-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libglade-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/cairo -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/pango-1.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/gtk-2.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/atk-1.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/pixman-1 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/freetype2 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libpng12 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gtk-unix-print-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/librsvg-2   -I../../..  -I../../../src/af/ev/gtk -I../../../src/af/ev/xp -I../../../src/af/gr/gtk -I../../../src/af/gr/xp -I../../../src/af/util/unix -I../../../src/af/util/xp -I../../../src/af/xap/gtk -I../../../src/af/xap/xp -I../../../src/text/fmt/gtk -I../../../src/text/fmt/xp -I../../../src/text/ptbl/xp -I../../../src/wp/impexp/gtk -I../../../src/wp/impexp/xp -I../../../src/wp/ap/gtk -I../../../src/wp/ap/xp -I../../../src/plugins -DABI_DLL -DABI_BUILD_VERSION=\"2.8.1\" -isystem/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -Wall -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wmissing-noreturn -Wunused -Wpointer-arith -Wshadow  -isystem/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden -MT ie_impGraphic_WMF.lo -MD -MP -MF .deps/ie_impGraphic_WMF.Tpo -c -o ie_impGraphic_WMF.lo ie_impGraphic_WMF.cpp
>         arm-angstrom-linux-gnueabi-libtool: compile:  arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/freetype2 -I/usr/include -pthread -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/glib-2.0/include -pthread -DORBIT2=1 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/fribidi -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/glib-2.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libgsf-1 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libxml2 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/wv -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/enchant -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gnome-vfs-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/gnome-vfs-2.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gconf/2 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/orbit-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/dbus-1.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/dbus-1.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libbonobo-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/bonobo-activation-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libgoffice-0.8 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gtk-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libglade-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/cairo -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/pango-1.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/gtk-2.0/include -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/atk-1.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/pixman-1 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/freetype2 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libpng12 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gtk-unix-print-2.0 -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/librsvg-2 -I../../.. -I../../../src/af/ev/gtk -I../../../src/af/ev/xp -I../../../src/af/gr/gtk -I../../../src/af/gr/xp -I../../../src/af/util/unix -I../../../src/af/util/xp -I../../../src/af/xap/gtk -I../../../src/af/xap/xp -I../../../src/text/fmt/gtk -I../../../src/text/fmt/xp -I../../../src/text/ptbl/xp -I../../../src/wp/impexp/gtk -I../../../src/wp/impexp/xp -I../../../src/wp/ap/gtk -I../../../src/wp/ap/xp -I../../../src/plugins -DABI_DLL -DABI_BUILD_VERSION=\"2.8.1\" -isystem/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -Wall -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wmissing-noreturn -Wunused -Wpointer-arith -Wshadow -isystem/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden -MT ie_impGraphic_WMF.lo -MD -MP -MF .deps/ie_impGraphic_WMF.Tpo -c ie_impGraphic_WMF.cpp  -fPIC -DPIC -o .libs/ie_impGraphic_WMF.o
>         CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/freetype2
>         cc1plus: internal compiler error: in add_path, at c-incpath.c:425
>         Please submit a full bug report,
>         with preprocessed source if appropriate.
>         See <http://gcc.gnu.org/bugs.html> for instructions.
>         make[4]: *** [ie_impGraphic_WMF.lo] Error 1
>         make[4]: Leaving directory `/srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/abiword-2.8.1/plugins/wmf/xp'
>         make[3]: *** [all-recursive] Error 1
>         make[3]: Leaving directory `/srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/abiword-2.8.1/plugins/wmf'
>         make[2]: *** [all-recursive] Error 1
>         make[2]: Leaving directory `/srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/abiword-2.8.1/plugins'
>         make[1]: *** [all-recursive] Error 1
>         make[1]: Leaving directory `/srv/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/abiword-2.8.1-r2/abiword-2.8.1'
>         make: *** [all] Error 2
>         FATAL: oe_runmake failed
> 
> Do I need to report this to gcc upstream? Can I provide more
> information?
> 
> 
> Thanks,
> 
> Paul 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list