From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id CC2F73857716 for ; Tue, 19 Sep 2023 08:04:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC2F73857716 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c00b37ad84so29737741fa.0 for ; Tue, 19 Sep 2023 01:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695110672; x=1695715472; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lBVGRraZZekJcaVZ1Cd0PXpoU9VeXX+VI3/hXqAE7Pc=; b=lbWUx4/G6yU+hOn42TC7aIzhX+/1zwpEm/+Tr0gigbGQAvjks+WMUDSrXc70XlMhBi dDq+BArVN7e84p9EsX7Dl/ZZILV5i9H2HCW6P1MUIkJY74mUYe7dd+kFuGRwTBd2VwO5 WfwlGS4/Jff98hdTSfVgunchWmplBI3KOVlwc8AffIrxzGDYIq3bns4U7RbK12V+WlkD ZvBLtJbXrO0/dgQZGP1/znUnuLq5HnZ33KQjjx0JbQThybMnxRZKUMYjT7GNvMkfDlXM vtw9j3/vwqBPAv8DNAgrJnvXD/ngqhbR75bdSm49Y+XYKJt8/9kxEmYzJRvOS2posYv8 Jl+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695110672; x=1695715472; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lBVGRraZZekJcaVZ1Cd0PXpoU9VeXX+VI3/hXqAE7Pc=; b=JWAySySCdt67+MP716leFRYZozb/h7HUvJKrZ9gPv91xRxQbKDsM0Y8kzBwzAKXwVu viSEj6kmf446FJyOn88NDnf6cfScEQnibbej1NiFm9pLysd0Nf4Xv29oM+xv+C0yLuPk aNGjlI4WvT3HuavnlweM7205ms5fu8DYhDUQXpD45ca3My1itbhKnWLTvf2HCY+r75bE J8jd1KhuiGzIfT3xd7ynzxpO9wZY5ZXsqIaVNCWN+jgzuDOXBqV384sHwEfhURUTYN0D dOpWLYD3XoYF/PbbbmaxRJ3d+7DOQLvZC4qbuplP9Tc2naBgJLBNkrheasFJ6VD2Ypkm B16g== X-Gm-Message-State: AOJu0Yyqon5nEriKUfSF6eANukwCovnywxxH7dHE5kfavRqW9RmiJ7Iq SH1sqsdA/9mn83mWiGZ1tpCfJb9mc7fqDd4Tzovl7yo5k54hlQ== X-Google-Smtp-Source: AGHT+IFc72/FoqCtmbT7RVAEXODOqCTvq4vihCRCjaj56d94YZ3MYN/FJji/36laK4c6f8QIlT7QiD9INcVqC4hnx/U= X-Received: by 2002:a2e:7213:0:b0:2bc:f41a:d9c6 with SMTP id n19-20020a2e7213000000b002bcf41ad9c6mr8963875ljc.0.1695110671828; Tue, 19 Sep 2023 01:04:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Chris Packham Date: Tue, 19 Sep 2023 20:04:20 +1200 Message-ID: Subject: Re: Build error for moxiebox architecture To: Torbjorn SVENSSON Cc: newlib@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham 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, Aug 14, 2023 at 10:24=E2=80=AFPM Torbjorn SVENSSON wrote: > > Hello, > > On 2023-08-13 02:27, Chris Packham wrote: > > Hi All, > > > > I'm getting the next crosstool-ng release together and one build > > failure we're having is for the moxiebox architecture: > > > > moxie-unknown-moxiebox/lib/libc.a(libc_a-closer.o): in function `_close= _r': > > moxie-unknown-moxiebox/src/newlib/newlib/libc/reent/closer.c:47: > > undefined reference to `_close' > > > > and similar for _lseek, _read, _write and _sbrk > > As you do not include the link line, I'm assuming that you are not using > anything out of the ordinary. In this case, maybe you should give > --specs=3Dnosys.specs a go and see if it helps. > Regardless if it helps or not, it will likely only provide you with > stubs that you need to override in you application to get something worki= ng. Yeah sorry. I'll get things in an issue for ct-ng so we have a proper record to refer back to. One thing I have found is that things work fine with 4.2.0.20211231 but fail with 4.3.0.20230120 (or the tip of main). I did see the recent commit 55485616b ("Bring back libsim.a for riscv") and I note the moxiebox definition of _close() is in libsim.a so this made me wonder if whatever issue was affecting riscv was related to the moxie failure. But I also note that there has been a bit of a change in some Makefiles as per commit 66dfedc28 ("libgloss: merge bfin into top-level Makefile"). So as a first step maybe I need to do a similar conversion. It looks like those conversions involve some code changes and then the result of running automake but I'm not sure what parts are manual and what parts are from running automake. Any pointers on doing this for another architecture.