From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.killthe.net (mail.killthe.net [207.126.114.3]) by sourceware.org (Postfix) with ESMTP id 604F33858D33 for ; Fri, 29 Dec 2023 22:37:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 604F33858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=killthe.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=killthe.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 604F33858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=207.126.114.3 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703889430; cv=none; b=cmR9bQ/iC1pKh5O17Odxde+1p0UENDfpYy1MbVv0Jv8yxcAQha3ElzMIKCgSKKbZpb7um6lrjJlYbBSk1Z3xxMr3q5lAvA3OWKR3QUa8VT09CBtlfUNXAK/Wyj+/rQSXeOq69oAtzSDHIXVrgtOw+wumPBzBQtvLAMOprNm64cc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703889430; c=relaxed/simple; bh=TrxWYbZkBehsNRb3W1eRxqCo7pTrGxCsAbLFw/dXx0o=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=ljhKzpmTnvKmctm7uUrbFZagDpYRQJZUCkqJZpM41l6W5e26m4ZOWR7BBuK6fptFbpCozYV3WpWea/i8fkb/HVSgV4IDoU1GoBpvrJlqOZOQmBuhj/6SsdU3knj3v0Dfm/x/LjYNJeOqAgxrucdQ8QUJL6qzQUs2Q7Oa8WWFjwE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from magic (unknown [216.194.47.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.killthe.net (Postfix) with ESMTPSA id C1EFF12001D for ; Fri, 29 Dec 2023 17:37:05 -0500 (EST) Date: Fri, 29 Dec 2023 16:40:19 -0600 From: Dave Blanchard To: gcc@gcc.gnu.org Subject: Re: 'posix_spawnp' error in build Message-Id: <20231229164019.0abb93e50a0bb183dfd1ffa1@killthe.net> In-Reply-To: <20231225162814.GS19790@gate.crashing.org> References: <20231225162814.GS19790@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, 25 Dec 2023 10:28:14 -0600 Segher Boessenkool wrote: > That is wrong. Build dir as a subdir of the source dir is not > supported. It might work in many cases, but that does not mean it is > okay to do. Works perfectly fine on every version of GCC I've used, from 5 to 12, and I've done this countless times in various configurations. If there is any kind of problem here, GCC needs to fix its junk build process, instead of being the one package on the planet requiring some absurd out-of-directory build. > I don't know if that is one of the weird problems caused by this. Easy > enough to find out. First "make distclean", and then "git status". > > The error message says that the newly compiled compiler driver ("xgcc", > which will be insbtalled as just "gcc" eventually) cannot execute the > newly compiled actual C++ compiler ("cc1plus"), not from the place it > thinks it put it, anyway. It's GNU software, so go figure. A mysterious "No such file or directory" error here can also indicate the binary isn't finding the libc loader for some reason, due to bad rpath or some such. Use 'readelf -a' to ensure the C library loader path is correct. Dave