newlib-3.3.0 "make install" failure?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

newlib-3.3.0 "make install" failure?

Josef Wolf
Hello,

while building newlib-3.3.0, I get an error at the "make install"
step. Unfortunately, I can't get any clue from the error message:

  [ ... Thousands of lines without any error messages deleted ]
  mkdir -p -- /usr/local/crossgcc/arm-none-eabi/nanoLibraries/arm-none-eabi/include
  mkdir -p -- /usr/local/crossgcc/arm-none-eabi/nanoLibraries/arm-none-eabi/include/machine
  mkdir -p -- /usr/local/crossgcc/arm-none-eabi/nanoLibraries/arm-none-eabi/include/rpc
  mkdir -p -- /usr/local/crossgcc/arm-none-eabi/nanoLibraries/arm-none-eabi/include/ssp
  mkdir -p -- /usr/local/crossgcc/arm-none-eabi/nanoLibraries/arm-none-eabi/include/sys
  mkdir -p -- /usr/local/crossgcc/arm-none-eabi/nanoLibraries/arm-none-eabi/include/bits
  make[4]: Leaving directory '/var/tmp/newlib-3.3.0-nano/arm-none-eabi/newlib'
  make[3]: Leaving directory '/var/tmp/newlib-3.3.0-nano/arm-none-eabi/newlib'
  make[2]: Leaving directory '/var/tmp/newlib-3.3.0-nano/arm-none-eabi/newlib'
  make[1]: Leaving directory '/var/tmp/newlib-3.3.0-nano'
  make: *** [Makefile:2276: install] Error 2

The make recipe in question reads like this:

  .PHONY: install uninstall
  install:
          @: $(MAKE); $(unstage)
          @r=`${PWD_COMMAND}`; export r; \           # <--- THIS IS LINE 2276
          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
          $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target

To build the package, I used the following commands:

   $ PATH=$PATH:/usr/local/crossgcc/bin:/usr/local/crossgcc/arm-none-eabi/bin:/usr/local/crossgcc/arm-none-eabi/nanoLibraries/bin
   $ cd /var/tmp/builds/crossgcc/src
   $ tar xzf /var/tmp/builds/crossgcc/download/newlib-3.3.0.tar.gz
   $ mkdir -p /var/tmp/builds/crossgcc/build/newlib-3.3.0-nano
   $ cd /var/tmp/builds/crossgcc/build/newlib-3.3.0-nano
   $ /var/tmp/builds/crossgcc/src/newlib-3.3.0/configure \
      --prefix=/usr/local/crossgcc/arm-none-eabi/nanoLibraries \
      --target=arm-none-eabi \
      --enable-newlib-nano-malloc \
      --enable-lite-exit \
      --enable-newlib-nano-formatted-io \
      --disable-newlib-supplied-syscalls \
      --enable-newlib-reent-small \
      --disable-newlib-fvwrite-in-streamio \
      --disable-newlib-fseek-optimization \
      --disable-newlib-wide-orient \
      --disable-newlib-unbuf-stream-opt \
      --enable-newlib-global-atexit \
      --enable-newlib-retargetable-locking \
      --enable-newlib-global-stdio-streams \
      --disable-nls
   $ make -j4
   $ make -j4 install

Any ideas how to track down the problem?

--
Josef Wolf
[hidden email]
Reply | Threaded
Open this post in threaded view
|

"-j4" option don't work with "make install" [Was: newlib-3.3.0 "make install" failure?]

Josef Wolf
On Sun, Mar 29, 2020 at 12:55:16PM +0200, Josef Wolf wrote:

> while building newlib-3.3.0, I get an error at the "make install"
> step. Unfortunately, I can't get any clue from the error message:
> [ ... ]
> Any ideas how to track down the problem?

Uh!

"make install" has prblems with the "-j4" option!

--
Josef Wolf
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: "-j4" option don't work with "make install" [Was: newlib-3.3.0 "make install" failure?]

Sourceware - newlib list mailing list


On 30 Mar 2020, at 9:27, Josef Wolf wrote:

> "make install" has prblems with the "-j4" option!

Yeap, I’ve been using

make -jN
make -j1 install

for a while…