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 01/10/2014 04:09 PM, Vidya Praveen wrote:
Hi Jeff

On 07/01/14 22:43, Jeff Johnston wrote:
Actually, this is caused because of a relative file path.

The right way to fix this is to change the arm/ to use
ac_abs_srcdir instead of srcdir as part of host_makefile_frag. I have
made the change and checked it in, but had problem getting an arm
toolchain to build with.

Please verify the change I made works.

-- Jeff J.

arm-none-eabi build does fail with the error:

make[2]: *** No rule to make target `/../config/', needed by `Makefile'. Stop.

Without your previous change, it works though:

Author: Jeff Johnston <>
Date:   Tue Jan 7 22:41:38 2014 +0000

    2014-01-07  Jeff Johnston  <>

* arm/ Fix host_makefile_frag to use ac_abs_srcdir.
            * arm/configure: Regenerated.

Could you please have a look? Thanks.

Thanks for verifying.

It looks like ac_abs_srcdir isn't calculated every time so I shouldn't be using it. I changed the code to calculate the absolute location of srcdir/../config/ and verified the location got filled in for both the arm Makefile and arm/cpu_init Makefile when configuring for arm-none-eabi and doing a make configure-target-libgloss.

I have checked in the new change.

-- Jeff J.

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