Ticket #2053 (closed defect: worksforme)

Opened 11 years ago

Last modified 19 months ago

Host OS gtk-config affects Toolchain cross compile (in a wrong way)

Reported by: kempelen Owned by: openmoko-devel
Priority: normal Milestone:
Component: host utilities Version: Om2008.9-dev
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

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@localhost toolchain]$ . setup-env

[lion@localhost toolchain]$ export CFLAGS="-g"
[lion@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@…>

and Alexandre Duret-Lutz <adl@…>.

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@localhost toolchain]$ cd xbill-2.1
[lion@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

Change History

comment:1 Changed 11 years ago by zecke

  • Status changed from new to closed
  • Resolution set to worksforme

I don't know where to start:

  • gtk-config is from the Gtk+1.2 times and this was replaced by the generic pkg-config utility which honors PKG_CONFIG_PATH (which is set) and the SYSROOT path
  • xbill's configure.ac is simply executing "gtk-config" and find that in your path and is using the result... again with pkg-config this would not happend
  • xbill's buildsystem should search for the tool called arm-angstrom...-gtk-config but it does not.
  • xbill's buildsystem is not within the control of Openmoko.

Try irc (feel free to message me for help) or a development mailinglist to get support in compiling software. Your options are basicly go for native building, go for insane stuff like scratchbox, cope with broken buildsystems and fix them.

Sorry, but I think this should not be handled in this bugtracker.

comment:2 Changed 11 years ago by kempelen

Ok, thanks, I did not know gtk-config is old. I was tricked by their homepage saying this is completely new version updated to current automake, gtk..... (Last update: 2002.) :-)

I'll check these pkg-config and automake things...

comment:3 Changed 19 months ago by JeffRipt

Generique Viagra Soft http://cialtobuy.com - generic cialis Priligy Prospecto
Medicpills
Will Keflex Reduce Breastmilk Production <a href=http://cialtobuy.com >viagra cialis</a> Cialis Pastiglie

comment:4 Changed 19 months ago by RonDert

Finasteride Pas Cher http://cialtobuy.com - generic cialis Propecia Cipla Pharmacy
Cialis Ulcera Fake Generic Viagra
Cialis Mg 5 Prezzo <a href=http://cialtobuy.com >online pharmacy</a> Online Generic Propecia Review

Note: See TracTickets for help on using tickets.