bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross compilation to w32


From: Roumen Petrov
Subject: Re: cross compilation to w32
Date: Sun, 09 Mar 2008 18:01:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080212 SeaMonkey/1.1.8

Ralf Wildenhues wrote:
Hello,

we have a couple of problems wrt. cross compilation to w32 in 2.2.
When I cross-compile from GNU/Linux to MinGW using Debian's mingw32
packages (i586-mingw32msvc-gcc etc.), then link mode already
requires executing a host program; for example:

cd tests/demo
/bin/sh -x ./libtool --tag=CC   --mode=link i586-mingw32msvc-gcc  -g -O2 
-export-dynamic -dlpreopen libhello.la -L/usr/i586-mingw32msvc/lib -o 
helldl.exe dlmain.o

[...]
+ ./helldl.exe --lt-dump-script
Wine exited with a successful status
+ exit 0

This means that building will fail on systems without a simulator.

The other problem I've stumbled over so far is this one: the
*_ltshwrapper file has DOS line endings.  This causes 'make install'
to fail, because the native /bin/sh cannot parse the script:

  /bin/sh ./libtool --mode=install /usr/bin/install -c 'hell.exe' 
'/home/ralf/download/cvs/libtool/HEAD/build-mingw/_inst/bin/hell.exe'
: command not foundapper: line 2:
: command not foundapper: line 11:
: command not foundapper: line 16:
./.libs/hell_ltshwrapper: line 26: syntax error near unexpected token `newline'
./.libs/hell_ltshwrapper: line 26: `  case `(set -o) 2>/dev/null` in *posix*) 
se' -o posix;; esac
libtool: install: invalid libtool wrapper script `./.libs/hell_ltshwrapper'

Does anybody see easy ways out?

Verbose old suite log and new suite testsuite.log attached, bzip2
(tests run with CVS HEAD plus a couple of pending patches).

Thanks,
Ralf


Please find attached my check.log (12 of 77 tests failed).
Tested libtool 2.2.
env:
  gcc (GCC) 3.4.5 (mingw special)
  wine(0.9.24).

Make install is fine.

Did you run tests/install inside wine session or you use binfmt for run w32 applications test inside linux ?

Roumen
make  check-recursive
make[1]: Entering directory `[LOCAL]/mingw-cross/libtool-2.2/.build'
make[2]: Entering directory `[LOCAL]/mingw-cross/libtool-2.2/.build'
make  check-TESTS check-local
make[3]: Entering directory `[LOCAL]/mingw-cross/libtool-2.2/.build'
PASS: tests/link.test
PASS: tests/link-2.test
PASS: tests/nomode.test
PASS: tests/objectlist.test
PASS: tests/quote.test
PASS: tests/sh.test
PASS: tests/suffix.test
PASS: tests/tagtrace.test
PASS: tests/cdemo-static.test
PASS: tests/cdemo-make.test
PASS: tests/cdemo-exec.test
PASS: tests/demo-static.test
PASS: tests/demo-make.test
PASS: tests/demo-exec.test
PASS: tests/demo-inst.test
PASS: tests/demo-unst.test
PASS: tests/depdemo-static.test
PASS: tests/depdemo-make.test
PASS: tests/depdemo-exec.test
PASS: tests/depdemo-inst.test
PASS: tests/depdemo-unst.test
PASS: tests/mdemo-static.test
PASS: tests/mdemo-make.test
PASS: tests/mdemo-exec.test
PASS: tests/mdemo-inst.test
PASS: tests/mdemo-unst.test
PASS: tests/cdemo-conf.test
PASS: tests/cdemo-make.test
SKIP: tests/cdemo-exec.test
PASS: tests/demo-conf.test
PASS: tests/demo-make.test
SKIP: tests/demo-exec.test
FAIL: tests/demo-inst.test
SKIP: tests/demo-unst.test
SKIP: tests/demo-deplibs.test
PASS: tests/depdemo-conf.test
PASS: tests/depdemo-make.test
SKIP: tests/depdemo-exec.test
FAIL: tests/depdemo-inst.test
SKIP: tests/depdemo-unst.test
PASS: tests/mdemo-conf.test
PASS: tests/mdemo-make.test
SKIP: tests/mdemo-exec.test
FAIL: tests/mdemo-inst.test
SKIP: tests/mdemo-unst.test
FAIL: tests/mdemo-dryrun.test
PASS: tests/mdemo2-conf.test
SKIP: tests/mdemo2-make.test
SKIP: tests/mdemo2-exec.test
PASS: tests/pdemo-conf.test
PASS: tests/pdemo-make.test
SKIP: tests/pdemo-exec.test
FAIL: tests/pdemo-inst.test
PASS: tests/demo-nofast.test
PASS: tests/demo-make.test
SKIP: tests/demo-exec.test
FAIL: tests/demo-inst.test
SKIP: tests/demo-unst.test
PASS: tests/depdemo-nofast.test
PASS: tests/depdemo-make.test
SKIP: tests/depdemo-exec.test
FAIL: tests/depdemo-inst.test
SKIP: tests/depdemo-unst.test
PASS: tests/demo-pic.test
PASS: tests/demo-make.test
SKIP: tests/demo-exec.test
PASS: tests/demo-nopic.test
PASS: tests/demo-make.test
SKIP: tests/demo-exec.test
PASS: tests/cdemo-shared.test
PASS: tests/cdemo-make.test
SKIP: tests/cdemo-exec.test
PASS: tests/demo-shared.test
PASS: tests/demo-make.test
SKIP: tests/demo-exec.test
FAIL: tests/demo-inst.test
FAIL: tests/demo-hardcode.test
FAIL: tests/demo-relink.test
PASS: tests/demo-noinst-link.test
SKIP: tests/demo-unst.test
PASS: tests/depdemo-shared.test
PASS: tests/depdemo-make.test
SKIP: tests/depdemo-exec.test
FAIL: tests/depdemo-inst.test
SKIP: tests/depdemo-relink.test
SKIP: tests/depdemo-unst.test
PASS: tests/mdemo-shared.test
PASS: tests/mdemo-make.test
SKIP: tests/mdemo-exec.test
FAIL: tests/mdemo-inst.test
SKIP: tests/mdemo-unst.test
PASS: tests/cdemo-undef.test
PASS: tests/cdemo-make.test
SKIP: tests/cdemo-exec.test
PASS: tests/tagdemo-static.test
PASS: tests/tagdemo-make.test
PASS: tests/tagdemo-exec.test
PASS: tests/tagdemo-conf.test
PASS: tests/tagdemo-make.test
SKIP: tests/tagdemo-exec.test
PASS: tests/tagdemo-shared.test
PASS: tests/tagdemo-make.test
SKIP: tests/tagdemo-exec.test
PASS: tests/tagdemo-undef.test
PASS: tests/tagdemo-make.test
SKIP: tests/tagdemo-exec.test
====================================
12 of 77 tests failed
(29 tests were not run)
Please report to address@hidden
====================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `[LOCAL]/mingw-cross/libtool-2.2/.build'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `[LOCAL]/mingw-cross/libtool-2.2/.build'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `[LOCAL]/mingw-cross/libtool-2.2/.build'
make: *** [check] Error 2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]