From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37787 invoked by alias); 21 Dec 2016 21:04:48 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 37724 invoked by uid 89); 21 Dec 2016 21:04:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=stranger, canadian, suggesting, networks X-HELO: MTA-05-3.privateemail.com Received: from mta-05-3.privateemail.com (HELO MTA-05-3.privateemail.com) (68.65.122.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Dec 2016 21:04:36 +0000 Received: from localhost (unknown [10.20.151.248]) by MTA-05.privateemail.com (Postfix) with ESMTPA id 2FEFD6003C; Wed, 21 Dec 2016 21:04:34 +0000 (UTC) Date: Wed, 21 Dec 2016 21:04:00 -0000 From: Matt Kline To: crossgcc@sourceware.org Subject: Shell errors when building GCC 6.3 in parallel Message-ID: <20161221210432.GA21485@fluke-mrkline> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) X-SW-Source: 2016-12/txt/msg00020.txt.bz2 My company has been using crosstool-NG for about a year now to build cross-compilers for our embedded systems (largely ARM Cortex-M4 boards). It's been invaluable - many thanks to everyone involved in the project. We've been using GCC 6, and I'm trying to build the latest 6.3 bugfix release. Building an x64 -> ARMv7 cross-compiler works fine, but I also need to build x86 -> ARM compilers since a few of my coworkers still have 32-bit setups.[*] I've had trouble with an x64->x86->ARM Canadian cross, so my approach so far has been building the x86 toolchain in an i686 VM. Oddly enough, when I run CT-NG in the VM (both the last release, 1.22.0, and Git HEAD), I get some _really_ weird errors. Perusing the log, it almost looks like there's some parse error in the shell scripts: [ALL ] /usr/bin/bash: line 2: : command not found [ALL ] /bin/sh: line 3: (cd ./zlib && : No such file or directory [ALL ] /bin/sh: line 4: /usr/bin/make "DESTDIR=" ... : File name too long [ALL ] /bin/sh: line 5: $'tall)': command not found You can see some full logs at https://gist.github.com/mrkline/0a89952cd2f6284ae534fbd94b158f73 What's stranger still is that the problems go away if I set the number of parallel jobs to 1, suggesting that it might be some concurrency problem. Does anyone have suggestions as to what might be causing this? FWIW, I'm on Arch Linux, which currently ships GCC 6.2. Many thanks, Matt Kline Fluke Networks [*]: We're working on fixing that ASAP, but until then...