[gccsdk] Problems building libxml with autobuilder on Ubuntu

Simon Wilson ksattic at gmail.com
Sun Jul 8 14:14:35 PDT 2007

John, John-Mark,

Thank you both for your help. However, I now have another problem that
occurs much later after calling:

/home/simon/src/gccsdk/autobuilder/build -v gnash

It looks like the library libxml2.la was built into a format not
recognised by the linker. Any idea why? Could the native library
archiver on my Linux box have been used to create the library instead
of the cross compiler's?

/home/riscos/cross/bin/gcc  -O2 -pedantic -W -Wformat -Wunused
-Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat
-Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline
-Wredundant-decls  -L/home/riscos/env/lib  -o io1,ff8 io1.o
../../libxml2.la -lpthread -lz  -lm
Error: File '../../libxml2.la' has an unrecognised file format
Drlink: Link failed with 1 error
ld fatal error: program /home/riscos/cross/bin/drlink returned exit
status 3072:
make[3]: *** [io1,ff8] Error 1
make[3]: Leaving directory
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
make: *** [all] Error 2
Package libxml2: ***Failure***

More information about the gcc mailing list