Openmoko Bug #2053: Host OS gtk-config affects Toolchain cross compile (in a wrong way)

Openmoko Public Trac bugs at docs.openmoko.org
Sun Oct 5 17:59:28 CEST 2008


#2053: Host OS gtk-config affects Toolchain cross compile (in a wrong way)
----------------------------+-----------------------------------------------
 Reporter:  kempelen        |          Owner:  openmoko-devel
     Type:  defect          |         Status:  new           
 Priority:  normal          |      Milestone:                
Component:  host utilities  |        Version:  Om2008.9-dev  
 Severity:  normal          |       Keywords:                
Blockedby:                  |   Reproducible:                
 Blocking:                  |  
----------------------------+-----------------------------------------------
 If you have gtk-config on host OS, and you run "om-conf" in the Toolchain,
 the ./configure of the program will find Host OS gtk-config and cause
 adding extra (invalid!) host OS include directories.

 XBill compiled fine before I had gtk-config installed on host. After I
 installed gtk-config on the host OS (Mandriva 2008.1) "make" tries to link
 against x86_64 libraries.


 [lion at localhost toolchain]$ . setup-env

 [lion at localhost toolchain]$ export CFLAGS="-g"
 [lion at localhost toolchain]$ om-conf xbill-2.1 --prefix=/media/card
 --enable-gtk --enable-athena
 Source directory: /home/lion/coding/openmoko/toolchain/xbill-2.1
 Extra configure arguments: --prefix=/media/card --enable-gtk --enable-
 athena
 automake (GNU automake) 1.10.1
 Copyright (C) 2008 Free Software Foundation, Inc.
 License GPLv2+: GNU GPL version 2 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.

 Written by Tom Tromey <tromey at redhat.com>
        and Alexandre Duret-Lutz <adl at gnu.org>.
 AUTOV is 1.10
 NOTE: Executing autoreconf --verbose --install --force
 -I/usr/local/openmoko/arm/arm-angstrom-linux-
 gnueabi/usr/share/aclocal-1.10 -I /usr/local/openmoko/arm/arm-angstrom-
 linux-gnueabi/usr/share/aclocal
 autoreconf: Entering directory `.'
 autoreconf: configure.in: not using Gettext
 autoreconf: running: aclocal --force
 autoreconf: configure.in: tracing
 autoreconf: configure.in: not using Libtool
 autoreconf: running: /usr/bin/autoconf --include=/usr/local/openmoko/arm
 /arm-angstrom-linux-gnueabi/usr/share/aclocal-1.10
 --include=/usr/local/openmoko/arm/arm-angstrom-linux-
 gnueabi/usr/share/aclocal --force --warnings=cross
 autoreconf: running: /usr/bin/autoheader --include=/usr/local/openmoko/arm
 /arm-angstrom-linux-gnueabi/usr/share/aclocal-1.10
 --include=/usr/local/openmoko/arm/arm-angstrom-linux-
 gnueabi/usr/share/aclocal --force --warnings=cross
 autoheader: WARNING: Using auxiliary files such as `acconfig.h',
 `config.h.bot'
 autoheader: WARNING: and `config.h.top', to define templates for
 `config.h.in'
 autoheader: WARNING: is deprecated and discouraged.
 autoheader:
 autoheader: WARNING: Using the third argument of `AC_DEFINE' and
 autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template
 without
 autoheader: WARNING: `acconfig.h':
 autoheader:
 autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
 autoheader:             [Define if a function `main' is needed.])
 autoheader:
 autoheader: WARNING: More sophisticated templates can also be produced,
 see the
 autoheader: WARNING: documentation.
 autoreconf: configure.in: not using Automake
 autoreconf: Leaving directory `.'
 NOTE: Running /home/lion/coding/openmoko/toolchain/xbill-2.1/configure
 --build=x86_64-linux                    --host=arm-angstrom-linux-gnueabi
 --target=arm-angstrom-linux-gnueabi                     --prefix=/usr
 --exec_prefix=/usr                 --bindir=/usr/bin
 --sbindir=/usr/sbin                     --libexecdir=/usr/libexec
 --datadir=/usr/share               --sysconfdir=/etc
 --sharedstatedir=/usr/com               --localstatedir=/var
 --libdir=/usr/lib                  --includedir=/usr/include
 --oldincludedir=/usr/include                    --infodir=/usr/share/info
 --mandir=/usr/share/man                     --enable-mainainer-mode
 --prefix=/media/card --enable-gtk --enable-athena                     ...
 configure: loading site script /usr/local/openmoko/arm/site-config
 checking for bison... bison -y
 checking for arm-angstrom-linux-gnueabi-gcc... ccache arm-angstrom-linux-
 gnueabi-gcc -march=armv4t -mtune=arm920t
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... yes
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
 -mtune=arm920t accepts -g... yes
 checking for ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
 -mtune=arm920t option to accept ISO C89... none needed
 checking how to run the C preprocessor... arm-angstrom-linux-gnueabi-gcc
 -E
 checking for flex... flex
 checking lex output file root... lex.yy
 checking lex library... none needed
 checking whether yytext is a pointer... no
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether ln -s works... yes
 checking whether make sets $(MAKE)... yes
 checking for arm-angstrom-linux-gnueabi-ranlib... arm-angstrom-linux-
 gnueabi-ranlib
 checking whether we are using the GNU C++ compiler... yes
 checking whether ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t
 -mtune=arm920t accepts -g... yes
 checking for X... libraries , headers
 checking for gethostbyname... yes
 checking for connect... yes
 checking for remove... yes
 checking for shmat... yes
 checking for IceConnectionNumber in -lICE... yes
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for unistd.h... (cached) yes
 checking for an ANSI C-conforming const... yes
 checking for XmGetPixmap in -lXm... no
 checking for XawInitializeWidgetSet in -lXaw3d... no
 checking for XawInitializeWidgetSet in -lXaw... yes
 checking for gtk-config... yes
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: WARNING:  Makefile.in seems to ignore the --datarootdir
 setting
 config.status: creating config.h




 [lion at localhost toolchain]$ cd xbill-2.1
 [lion at localhost xbill-2.1]$ make
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Bill.c -o Bill.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Bucket.c -o Bucket.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Cable.c -o Cable.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Computer.c -o Computer.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Game.c -o Game.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Horde.c -o Horde.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Network.c -o Network.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 OS.c -o OS.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I.
 -DSCOREFILE=\"/var/xbill/scores\" -c Scorelist.c -o Scorelist.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 Spark.c -o Spark.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 UI.c -o UI.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I. -c
 util.c -o util.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I.  -c
 x11-athena.c -o x11-athena.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I.
 -DIMAGES=\"/usr/share/xbill\" -c x11.c -o x11.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include -I.
 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include
 -I/usr/include -DIMAGES=\"/usr/share/xbill\" -c gtk.c -o gtk.o
 ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -g
 -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-rpath-
 link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-O1 -o
 xbill Bill.o Bucket.o Cable.o Computer.o Game.o Horde.o Network.o OS.o
 Scorelist.o Spark.o UI.o util.o  x11-athena.o x11.o gtk.o -lXaw -lXmu -lXt
 -lXpm -lX11 -L/usr/lib64 -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi
 -lXext -lX11 -lm  -lSM -lICE
 /usr/lib64/libXaw.so: file not recognized: File format not recognized
 collect2: ld returned 1 exit status
 make: *** [xbill] Error 1

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2053>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the devel mailing list