m68k-unknown-elf-ar: ../stdlib/lib.a: No such file or directory

Josef Wolf <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Hello all,

I am trying to compile newlib-4.4.0 with gcc-14.1.0 and keep getting the
following error:

  [ ... ]
  Making all in .
  make[8]: Entering directory
  '/var/tmp/builds/crossgcc/build/m68k-unknown-elf/newlib-4.2.0.20211231/m68k-unknown-elf/m68000/newlib/libc'
  rm -f libc.a
  rm -rf tmp
  mkdir tmp
  cd tmp; \
   for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a  errno/lib.a misc/lib.a ssp/lib.a     machine/lib.a ; do \
      m68k-unknown-elf-ar x ../$i; \
   done; \
  m68k-unknown-elf-ar rc ../libc.a *.o
  m68k-unknown-elf-ar: ../stdlib/lib.a: No such file or directory
  m68k-unknown-elf-ranlib libc.a
  rm -rf tmp
  make[8]: Leaving directory
  '/var/tmp/builds/crossgcc/build/m68k-unknown-elf/newlib-4.2.0.20211231/m68k-unknown-elf/m68000/newlib/libc'
  [ ... ]

This are the commands I use to build everything:

  PATH=$PATH:/snap/bin:/usr/local/crossgcc/bin:/usr/local/crossgcc/m68k-unknown-elf/bin
  mkdir -p /var/tmp/builds/crossgcc/build/m68k-unknown-elf/newlib-4.2.0.20211231
  cd  /var/tmp/builds/crossgcc/build/m68k-unknown-elf/newlib-4.2.0.20211231
  /var/tmp/builds/crossgcc/src/newlib-4.2.0.20211231/configure \
     --target=m68k-unknown-elf \
     --build=x86_64-pc-linux-gnu \
     --host=x86_64-pc-linux-gnu \
     --prefix=/usr/local/crossgcc/m68k-unknown-elf \
     --enable-languages=c,c++ \
     --with-gnu-ld \
     --with-gnu-as \
     --with-newlib \
     --with-system-zlib \
     --enable-commonbfdlib \
     --enable-interwork \
     --enable-install-libbfd \
     --enable-plugins \
     --enable-multilib \
     --disable-nls \
     --disable-shared \
     --disable-libssp \
     --nfp \
     --gas \
     -v \
     --enable-newlib-io-c99-formats \
     --enable-newlib-io-long-long \
     --disable-newlib-atexit-dynamic-alloc \
     --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
  make -j12

Looks like there's some dependency missing in the makefiles?

Any hints?

-- 
Josef Wolf
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.