delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/14/10:22:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_XJ,TW_YG
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Heiko Elger <heiko_elger AT arburg DOT com>
Subject: "Bad address" error while building cygwin with make -j2
Date: Wed, 14 Dec 2011 15:22:05 +0000 (UTC)
Lines: 94
Message-ID: <loom.20111214T162122-168@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT ftp DOT arburg DOT 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 AT ftp DOT arburg DOT 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 AT PCFX061 /src/cygwin-snapshot-20111213-1/i686-pc-cygwin/newlib/libc/argz
$ rm *.o

ente59 AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019