From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9612 invoked by alias); 25 Apr 2014 12:58:46 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 9588 invoked by uid 89); 25 Apr 2014 12:58:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qc0-f177.google.com Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com) (209.85.216.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 25 Apr 2014 12:58:44 +0000 Received: by mail-qc0-f177.google.com with SMTP id w7so3884138qcr.8 for ; Fri, 25 Apr 2014 05:58:42 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.229.96.199 with SMTP id i7mr11294201qcn.20.1398430721990; Fri, 25 Apr 2014 05:58:41 -0700 (PDT) Received: by 10.229.138.131 with HTTP; Fri, 25 Apr 2014 05:58:41 -0700 (PDT) Date: Fri, 25 Apr 2014 12:58:00 -0000 Message-ID: Subject: Infinite loop in eglibc-2.18 cross build for private port From: Konstantin Vladimirov To: libc-ports@sourceware.org, libc-help@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00000.txt.bz2 Hi, I am working on private port for eglibc-2.18, cross-build (host system is x86, target system is private) I detected strange behavior in build system -- if build was interrupted (say by Ctrl+C) and then again started (and only in this case, regular rebuild works ok), then it loops infinitely on generated headers, like tlsdesc.h (it may loop on any, depending on time when Ctrl-C is pressed, say on tcb-offsets.h). Scheme is (skipping long paths, gcc arguments and sed magic lines): 1) make[2]: Entering directory `eglibc-2.18/libc/csu' 2) /usr/bin/install -c -m 644 ../include/limits.h ... 3) gawk -f ../scripts/gen-as-const.awk tlsdesc.sym \ | gcc -S -o tlsdesc.hT3 ... -x c - -MD -MP -MF tlsdesc.h.dT -MT tlsdesc.h.d tlsdesc.h 4) sed -n 's/...' tlsdesc.hT3 > tlsdesc.hT 5) rm -f tlsdesc.hT3 6) sed -e 's@ ... ' -e 's@ ...' tlsdesc.h.dT > tlsdesc.h.dT2 7) rm -f tlsdesc.h.dT 8) mv -f tlsdesc.h.dT2 tlsdesc.h.d 9) mv -f tlsdesc.hT tlsdesc.h 10) make[2]: Leaving directory `eglibc-2.18/libc/csu' after that build system enters csu folder again and those 10 steps repeats again and again. On step 10, tlsdesc.h looks meaningful and filled with correct information. I really stuck in attempts to find this bug. I suppose something wrong in my port, but I can not even imagine what can I do to reveal such problems. If anyone faced similar problems and has an experience like this, any help, or even advice "where to look" will be appreciated. --- With best regards, Konstantin