This is the mail archive of the
cygwin
mailing list for the Cygwin project.
"Bad address" error while building cygwin with make -j2
- From: Heiko Elger <heiko_elger at arburg dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 14 Dec 2011 15:22:05 +0000 (UTC)
- Subject: "Bad address" error while building cygwin with make -j2
Hello,
I spend much of time in reproducing a testcase - I hope that this problem can
be reproduced by others too.
While looking for a testcase for reproducing our other problem with "Bad
address" errors - I tried to build cygwin snapshot 20111213.
I did a fresh cygwin intallation for this test.
I installed snapshot cygwin-inst-20111213.tar.bz2.
I run rebaseall and peflagsall and did a reboot.
$ uname -a
CYGWIN_NT-6.1-WOW64 PCFX061 1.7.10s(0.255/5/3) 20111213 04:12:34 i686 Cygwin
Here is my configuration
$ cygcheck -c >cygcheck.log
ftp://temp3-ro:tempro@ftp.arburg.com/temp3/make_strace.log
Her you will find an strace of the problem:
$ strace -o make_strace.log make -j2
ftp://temp3-ro:tempro@ftp.arburg.com/temp3/cygcheck.log
I've downloaded cygwin-src-20111213.tar.bz2.
running make -j2 in /cygwin-snapshot-20111213-1/i686-pc-cygwin/newlib/libc/argz
will produce the following error:
******* snip snip snip *******
ente59@PCFX061 /src/cygwin-snapshot-20111213-1/i686-pc-cygwin/newlib/libc/argz
$ rm *.o
ente59@PCFX061 /src/cygwin-snapshot-20111213-1/i686-pc-cygwin/newlib/libc/argz
$ make -j2
gcc -L/src/cygwin-snapshot-20111213-1/i686-pc-cygwin/winsup -L/src/cygwin-
snapshot-20111213-1/i686-pc-cygwin/winsup/cygwin -L/src/cygwin-snapshot-
20111213-1/i686-pc-cygwin/winsup/w32api/lib -isystem /src/cygwin-snapshot-
20111213-1/winsup/include -isystem /src/cygwin-snapshot-20111213-
1/winsup/cygwin/include -isystem /src/cygwin-snapshot-20111213-
1/winsup/w32api/include -B/src/cygwin-snapshot-20111213-1/i686-pc-
cygwin/newlib/ -isystem /src/cygwin-snapshot-20111213-1/i686-pc-
cygwin/newlib/targ-include -isystem /src/cygwin-snapshot-20111213-
1/newlib/libc/include -I/src/cygwin-snapshot-20111213-
1/winsup/cygwin/include -DPACKAGE_NAME=\"newlib\" -
DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.19.0\" -
DPACKAGE_STRING=\"newlib\ 1.19.0\" -DPACKAGE_BUGREPORT=\"\" -
DPACKAGE_URL=\"\" -I. -I../../../.././newlib/libc/argz -DHAVE_OPENDIR -
DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_BLKSIZE -
DHAVE_FCNTL -DMALLOC_PROVIDED -fno-builtin -g -O2 -c -o lib_a-dummy.o
`test -f 'dummy.c' || echo '../../../.././newlib/libc/argz/'`dummy.c
gcc -L/src/cygwin-snapshot-20111213-1/i686-pc-cygwin/winsup -L/src/cygwin-
snapshot-20111213-1/i686-pc-cygwin/winsup/cygwin -L/src/cygwin-snapshot-
20111213-1/i686-pc-cygwin/winsup/w32api/lib -isystem /src/cygwin-snapshot-
20111213-1/winsup/include -isystem /src/cygwin-snapshot-20111213-
1/winsup/cygwin/include -isystem /src/cygwin-snapshot-20111213-
1/winsup/w32api/include -B/src/cygwin-snapshot-20111213-1/i686-pc-
cygwin/newlib/ -isystem /src/cygwin-snapshot-20111213-1/i686-pc-
cygwin/newlib/targ-include -isystem /src/cygwin-snapshot-20111213-
1/newlib/libc/include -I/src/cygwin-snapshot-20111213-
1/winsup/cygwin/include -DPACKAGE_NAME=\"newlib\" -
DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.19.0\" -
DPACKAGE_STRING=\"newlib\ 1.19.0\" -DPACKAGE_BUGREPORT=\"\" -
DPACKAGE_URL=\"\" -I. -I../../../.././newlib/libc/argz -DHAVE_OPENDIR -
DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_BLKSIZE -
DHAVE_FCNTL -DMALLOC_PROVIDED -fno-builtin -g -O2 -c -o lib_a-argz_add.o
`test -f 'argz_add.c' || echo '../../../.././newlib/libc/argz/'`argz_add.c
make: *** read jobs pipe: Bad address. Stop.
make: *** Waiting for unfinished jobs....
make: INTERNAL: Exiting with 1 jobserver tokens available; should be 2!
******* snip snip snip *******
Running without -j flag all works fine.
I did the following steps: running configure and run make without -j flag for
the first build:
$ tar xjf /cygdrive/c/Programme/cygwin/mirror/snapshots/cygwin-src-
20111213.tar.bz2
$ cd cygwin-snapshot-20111213-1
$ md myinstall
$ ./configure --prefix=/src/cygwin-snapshot-20111213-1/myinstall
$ make
Then I tried make using -j flag in a sub directory.
$ cd i686-pc-cygwin/newlib/libc/argz
$ rm *.o
$ make -j2
I hope other users can reproduce same problem.
regards
Heiko
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple