public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: newlib@sourceware.org
Subject: Re: nds broken by recent patches
Date: Tue, 1 Feb 2022 10:25:26 -0700	[thread overview]
Message-ID: <f1b7e750-8227-2f2f-2051-1c0074ebc5df@gmail.com> (raw)
In-Reply-To: <YfTM8ejeDH9YeDy0@vapier>



On 1/28/2022 10:13 PM, Mike Frysinger wrote:
> On 28 Jan 2022 09:36, Jeff Law wrote:
>> For example, someone mucked up the compiler for or1k-elf at the same
>> time you're doing your refactoring.  Now I've got a patch to fix the
>> compiler ICE, *but* I'm also getting a crap-ton of new testsuite
>> failures in the testsuite due to missing _init/_fini symbols.  I don't
>> know yet if that's a newlib issue or something else mucked up on the
>> compiler side.
> i had tried to run the newlib testsuite, but it didn't seem to work out
> of the box.  is there some trick/docs i'm missing to make them work ?
No idea.  I'm actually using the GCC testsuite.   The whole idea behind 
my tester is to catch GCC codegen issues closer to the point where 
they're introduced.  Of course for these embedded targets I need a C 
library & simulator.  Enter newlib and the old cygnus simulators....


So for a newlib target the sequence looks something like:

build & install binutils
build & install gcc & libgcc
build & install newlib
run gcc testsuite



>
>> The h8300-elf port in the last few days has started failing while
>> building newlib with:
>>
>> cp: cannot stat 'libc/crt0.o': No such file or directory
> i pushed a fix for this, so retry latest please
> https://sourceware.org/pipermail/newlib/2022/019024.html
Thanks.  I can confirm that's fixed.

>
>> The iq-2000-elf port has started failing building newlib in the last few
>> days with:
>>
>> make[3]: *** No rule to make target 'configure', needed by
>> 'config.status'.  Stop.
>> make[3]: Leaving directory
>> '/home/jlaw/jenkins/workspace/iq2000-elf/iq2000-elf-obj/newlib/iq2000-elf/libgloss/iq2000'
>> make[2]: *** [Makefile:132: stmp-bsp] Error 2
> i sent+pushed a fix for this
> https://sourceware.org/git/?p=newlib-cygwin.git;a=commit;h=580817ec0132265e6dfd0bb19b5deaf6b5866a35
Also confirmed as fixed.

>
>> And there's others.  Some are definitely on the GCC side (arc failures
>> for example) , but having so many things breaking at once is frustrating.
> if your CI builders are public, point me at them and i can flip through.
> i should be able to identify many of the libgloss/newlib ones that were
> my fault a bit quicker.
At this point we've covered those which are obviously due to the 
newlib/libgloss changes.  The current failures have to be examined with 
a debugger.  For example, bfin-elf seems to be failing after

> commit 754f8def0dfeeb43afa5a96ad1971fd0ef02c419
> Author: Mike Frysinger <vapier@gentoo.org>
> Date:   Sun Jan 23 01:10:33 2022 -0500
>
>     libgloss: merge stub arch configure scripts up a level
>
>     For about half the ports, we don't need a subdir configure script.
>     They're using the config/default.m[ht] rules, and they aren't doing
>     any unique configure tests, so they exist just to pass top-level
>     settings down to create the arch Makefile.  We can just as easily
>     do that from the top-level Mkaefile directly and skip configure.
>
>     Most of the remaining configure scripts could be migrated up to
>     the top-level too, but that would require care in each subdir.
>     So let's be lazy and put that off to another day.
>
But the failure mode is it looks like libgloss/bfin/syscalls.c got 
mis-compiled, but you have to dig into a failed GCC testsuite binary 
with gdb to make that determination.  On a positive note, you may have 
fixed this issue this morning with:

> commit 4b0e66093c0b48d5c363cf17c45ad9bf88ae526c
> Author: Mike Frysinger <vapier@gentoo.org>
> Date:   Fri Jan 28 05:12:54 2022 -0500
>
>     newlib: fix preprocessor checks


Anyway, if you want to take a peek at the CI/CD system

http://gcc.gnu.org/jenkins

Jeff

  parent reply	other threads:[~2022-02-01 17:25 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171dc9cb-6b2c-ead3-1c55-27fadb33220f@gmail.com>
2022-01-28 10:23 ` [PATCH 1/2] newlib: fix preprocessor checks Mike Frysinger
2022-01-28 10:23   ` [PATCH 2/2] newlib: add AC_CACHE_CHECK sugar around " Mike Frysinger
2022-01-31 14:20     ` Corinna Vinschen
2022-01-31 14:18   ` [PATCH 1/2] newlib: fix " Corinna Vinschen
     [not found] ` <YfPDA/LVL745V+02@vapier>
2022-01-28 16:36   ` nds broken by recent patches Jeff Law
2022-01-28 21:54     ` Jeff Law
2022-01-28 23:32       ` Stafford Horne
2022-01-29  0:58         ` Jeff Law
2022-01-29  2:12           ` Stafford Horne
2022-01-29  3:28             ` Jeff Law
2022-01-29  5:15       ` Mike Frysinger
2022-01-29  5:12     ` [PATCH/committed] libgloss: update Makefile regen rules for merged arches Mike Frysinger
2022-01-29  5:13     ` nds broken by recent patches Mike Frysinger
2022-01-31 14:34       ` R. Diez
2022-02-01 17:25       ` Jeff Law [this message]
2022-02-02 10:23         ` Mike Frysinger
2022-02-02 20:59           ` Jeff Law
2022-02-03 16:11       ` libgloss multilib installs broken [was nds broken by recent patches] Jeff Law
2022-02-04  5:45         ` Mike Frysinger
2022-02-07 15:40           ` Jeff Law
2022-02-04  8:55         ` [PATCH] libgloss: restore multilib settings in subdir makefiles Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1b7e750-8227-2f2f-2051-1c0074ebc5df@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).