compiling newlib

Paul Zimmermann Paul.Zimmermann@inria.fr
Fri Aug 21 08:20:43 GMT 2020


       Hi,

I am new to this list. I have two questions:

1) I have a file newlib/libm/libm.a, that I have downloaded somewhere, but
   I don't remember where. I'd like to know to which version of newlib it
   corresponds. Is there a way to do this?

2) I downloaded newlib-3.3.0 from ftp://sourceware.org/pub/newlib/,
   but I am unable to compile it on x86_64 under Linux.
   Here is what I did:
   $ tar xf /tmp/newlib-3.3.0.tar.gz
   $ cd newlib-3.3.0
   $ mkdir build
   $ cd build
   $ ../configure --prefix=/tmp # runs ok
   $ make

   The make command returns almost immediately, and there is no libm.a
   file created.

   I tried also the following:
   $ tar xf /tmp/newlib-3.3.0.tar.gz
   $ cd newlib-3.3.0
   $ mkdir build
   $ cd build
   $ ../configure --prefix=/tmp --target=x86_64
   $ make

   Then make seems to do more job, however it fails with:

   /bin/bash: line 2: x86_64-ar: command not found

Note: item 1 of the FAQ on https://sourceware.org/newlib/ refers to
${FULL_PATH_TO_SRC}/src/configure --prefix=`pwd` --target=XXX but there
is no src directory in the newlib-3.3.0.tar.gz tarball.

What am I doing wrong?

Best regards,
Paul Zimmermann
   


More information about the Newlib mailing list