Hi,

I have a problem when i try to build glib for an arm system. I use
ptxdist-1.0.0.
The problem seem to be with libtool that use the host /usr/lib for the target
librairie linking !

the build output :

*************************************
--------------------
target: glib.install
--------------------

...

Making install in gobject
make[3]: entrant dans le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject
»
make  install-am
make[4]: entrant dans le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject
»
make[5]: entrant dans le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject
»
/bin/sh ../mkinstalldirs
/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
 /bin/sh ../libtool --mode=install /usr/bin/install -c  libgobject-2.0.la
/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib/libgobject-2.0.la
libtool: install: warning: relinking `libgobject-2.0.la'
(cd
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject;
/bin/sh ../libtool  --mode=relink arm_v5t_le-gcc -g -O2 -Wall
-L/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/lib
-L/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-Wl,-rpath-link
-Wl,/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-L/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/lib
-L/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-Wl,-rpath-link
-Wl,/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-o libgobject-2.0.la -rpath /usr/lib -version-info 1200:9:1200 -export-dynamic
-export-symbols-regex "^[^_].*" gboxed.lo gclosure.lo genums.lo gobject.lo
gparam.lo gparamspecs.lo gsignal.lo gsourceclosure.lo gtype.lo gtypemodule.lo
gtypeplugin.lo gvalue.lo gvaluearray.lo gvaluetransform.lo gvaluetypes.lo
../glib/libglib-2.0.la -inst-prefix-dir
/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu)
generating symbol list for `libgobject-2.0.la'
arm_v5t_le-nm  .libs/gboxed.o .libs/gclosure.o .libs/genums.o .libs/gobject.o
.libs/gparam.o .libs/gparamspecs.o .libs/gsignal.o .libs/gsourceclosure.o
.libs/gtype.o .libs/gtypemodule.o .libs/gtypeplugin.o .libs/gvalue.o
.libs/gvaluearray.o .libs/gvaluetransform.o .libs/gvaluetypes.o  | sed -n -e
's/^.*[         ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      
]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1
\2 \2/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libgobject-2.0.exp
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded:
ignored.
/bin/grep -E -e "^[^_].*" ".libs/libgobject-2.0.exp" >
".libs/libgobject-2.0.expT"
mv -f ".libs/libgobject-2.0.expT" ".libs/libgobject-2.0.exp"
echo "{ global:" > .libs/libgobject-2.0.ver
 cat .libs/libgobject-2.0.exp | sed -e "s/\(.*\)/\1;/" >>
.libs/libgobject-2.0.ver
 echo "local: *; };" >> .libs/libgobject-2.0.ver
 arm_v5t_le-gcc -shared  .libs/gboxed.o .libs/gclosure.o .libs/genums.o
.libs/gobject.o .libs/gparam.o .libs/gparamspecs.o .libs/gsignal.o
.libs/gsourceclosure.o .libs/gtype.o .libs/gtypemodule.o .libs/gtypeplugin.o
.libs/gvalue.o .libs/gvaluearray.o .libs/gvaluetransform.o .libs/gvaluetypes.o 
-L/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/lib
-L/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-L/usr/lib -lglib-2.0  -Wl,-rpath-link
-Wl,/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-Wl,-rpath-link
-Wl,/home/nexvision/etudes/projects/NexDome/src/rootfs/local/arm-v5t_le-linux-gnu/usr/lib
-Wl,-soname -Wl,libgobject-2.0.so.0 -Wl,-version-script
-Wl,.libs/libgobject-2.0.ver -o .libs/libgobject-2.0.so.0.1200.9
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded:
ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded:
ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded:
ignored.
/home/nexvision/tools/davinci/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld:
skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/libc.a: could not read symbols: File format not recognized
collect2: ld returned 1 exit status
libtool: install: error: relink `libgobject-2.0.la' with the above command
before installing it
make[5]: *** [install-libLTLIBRARIES] Erreur 1
make[5]: quittant le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject
»
make[4]: *** [install-am] Erreur 2
make[4]: quittant le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject
»
make[3]: *** [install] Erreur 2
make[3]: quittant le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9/gobject
»
make[2]: *** [install-recursive] Erreur 1
make[2]: quittant le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9 »
make[1]: *** [install] Erreur 2
make[1]: quittant le répertoire «
/home/nexvision/etudes/projects/NexDome/src/rootfs/build-target/glib-2.12.9 »

error: a command in the pipe returned 2, bailing out

make: ***
[/home/nexvision/etudes/projects/NexDome/src/rootfs/state/glib.install] Erreur 2

error: a command in the pipe returned 2, bailing out

*************************************


Does anyone have a solution to this problem ?


By the way a small patch to correct the glib.in file :

-       select LIBICONV if GLIB_LIBICONV
+       select LIBICONV if GLIB_ICONV_LIBICONV
-       select GETTEXT if GLIB_GETTEXT



Regards,

Guillaume GOURAT.

-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to