Re: arm-eabi fails in libc/sys/arm/: No rule to make target 'lib_a-trap.o', needed by 'lib.a'.
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <YfyE8MtkYjBuLErv@vapier> |
On 03 Feb 2022 16:49, Richard Earnshaw wrote: > On 01/02/2022 04:49, Mike Frysinger wrote: > > this is because i think newlib was relying on automake behavior that is > > undocumented or unintended. that said, i'm not sure why this Makefile.am > > is written the way it is. it'd be a lot simpler like: > > > > --- a/newlib/libc/sys/arm/Makefile.am > > +++ b/newlib/libc/sys/arm/Makefile.am > > @@ -6,16 +6,10 @@ AM_CCASFLAGS = $(AM_CPPFLAGS) > > > > noinst_LIBRARIES = lib.a > > > > +lib_a_SOURCES = access.c aeabi_atexit.c > > if MAY_SUPPLY_SYSCALLS > > -extra_objs = $(lpfx)libcfunc.o $(lpfx)trap.o $(lpfx)syscalls.o > > -else > > -extra_objs = > > +lib_a_SOURCES += libcfunc.c trap.S syscalls.c > > endif > > - > > -lib_a_SOURCES = access.c aeabi_atexit.c > > -lib_a_LIBADD = $(extra_objs) > > -EXTRA_lib_a_SOURCES = trap.S syscalls.c libcfunc.c > > -lib_a_DEPENDENCIES = $(extra_objs) > > lib_a_CFLAGS = $(AM_CFLAGS) > > > > if MAY_SUPPLY_SYSCALLS > > This seems to work although one small difference is that instead of > building libc_a-trap.o it now builds trap.o. I'm not sure if that > really matters, though. right, the .S files don't have the prefix on the filename anymore. i noticed that and looked through the tree and couldn't see why it would be a problem. there is one or two places where the exact object file name is used (the MATHOBJS_IN_LIBC which pulls a small number of libm objects out to copy into libc.a). i'm going to push the fix now and we can revisit if someone points out a problem with it. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmH8hPAACgkQQWM7n+g3 9YHMgRAAseGTUG82C81HRj7PXr8l4u9Gdf8kiaJSegkp/3ll268Tb1MtbJnlxMjE JLWwJCAtHOGA7pAAMhupIOOWEfR7xi1CwnEtVHHnViweVgbeL9bv9bWWBGfLd+2o rZm6l7Gp+1IyXmb1q4robjjRU1G7nZsGag9HOijVBHpsyF4bR0CVFVmjF5Pmuzbl of0jvKsZ7yDQ33nCINdBMBeoFFeuTp3gpJ35CUN1dJLdMc68jxQ4/ftDK0Bjjetq jpD4+IYZdnntAwSUsJtB8wNAsIZHSQ+a9qmetgfzv+5gL49/mJ8wzNAetyOAGTit YjdNs7HVNKh3ECSrRjlMCLTHqE0+G12ukjQ07KfodUQej1KMo2GR2rA0E589OJuA sjLRFj1BvjYUJVBnt/Yc1/7g4imYqFXAtzYzUEJP2n9x3K2htY9Ix7PLC8uMnj6s B3rtOFxcsgSDp9DFBieVS+mvSgr4Rb01nXC5DgcGb3aSLM6oxDl8iC+KpHV8mu5K kKLx8ZVUImbZcciiQ9oiAEQJ61A62SAvK4E+j4nwnj9VuOFK5WsBO89gHFlHJOy9 Q+9yraXNDVO7QaaYXblIScJfDjf6mem/+62S5NhOM1r5pLEX27JXRNHuOcHC/eMb kdanN7sMMnZLQQcApJ3yC2JUG/XR9lbpUJvrCl9yggA2sLAAoos= =2Yxe -----END PGP SIGNATURE-----