This is the mail archive of the mailing list for the newlib project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newlib 2.1.0 not building

On 12/27/2013 05:12 PM, Legimet  wrote:
> Hi, I think I found a bug in Newlib 2.1.0. I tried building with the following:
> ./configure --target=arm-none-eabi --prefix=/usr/local
> --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld
> --disable-nls --with-float=soft --disable-werror
> But when make enters arm-none-eabi/thumb/libgloss/arm/cpu-init, the
> build fails with the message
> *** No rule to make target
> `../../../.././libgloss/arm/../config/', needed by
> `Makefile'.  Stop.

I confirm, I get the same error. Please find attached a patch that I applied to
fix this.


From: Agustin Henze <>
Date: Fri, 3 Jan 2014 11:29:55 -0300
Subject: [PATCH] Fix wrong path to libgloss/config/

 libgloss/arm/cpu-init/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libgloss/arm/cpu-init/ b/libgloss/arm/cpu-init/
index 547c58d..d63149f 100644
--- a/libgloss/arm/cpu-init/
+++ b/libgloss/arm/cpu-init/
@@ -18,6 +18,7 @@ libdir = @libdir@
 tooldir = $(exec_prefix)/$(target_alias)
 objtype = @objtype@
+host_makefile_frag = $(srcdir)/../../config/
@@ -80,7 +81,7 @@ info:
-Makefile: ../config.status @host_makefile_frag_path@
+Makefile: ../config.status ${host_makefile_frag_path}
 	$(SHELL) ../config.status --file cpu-init/Makefile
 ../config.status: ../configure

Attachment: signature.asc
Description: OpenPGP digital signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]