Compilation flag --without-newlib is not working

Bug #1838143 reported by Joaquin de Andres on 2019-07-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Undecided
Unassigned
gcc-arm-none-eabi (Debian)
New
Undecided
Unassigned

Bug Description

Compiling with and without the option --without-newlib, the compilation fails in the same way:

```
In file included from /home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/gcc/include/arm_cmse.h:38,
                 from ../../../../../../libgcc/config/arm/cmse.c:27:
/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/gcc/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                ^~~~~~~~~~
compilation terminated.
make[6]: *** [../../../../../../libgcc/config/arm/t-arm:14: cmse.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/arm-none-eabi/thumb/v8-m.base/nofp/libgcc'
make[5]: *** [Makefile:1201: multi-do] Error 1
make[5]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/arm-none-eabi/libgcc'
make[4]: *** [Makefile:125: all-multi] Error 2
make[4]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/arm-none-eabi/libgcc'
make[3]: *** [Makefile:11368: all-target-libgcc] Error 2
make[3]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build'
make[2]: *** [Makefile:883: all] Error 2
make[2]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build'
dh_auto_build: cd build && make -j4 returned exit code 2
make[1]: *** [debian/rules:91: override_dh_auto_build] Error 255
make[1]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi'
make: *** [debian/rules:70: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
```

Using the option --without-newlib and installing in the system newlib the compilation succeed.

TiN (agustinhenze) wrote :

Hi there, I hit with the same error. If you try to build gcc with the option --without-newlib doesn't work. In gcc7 it used to work, so I guess the breakage was introduced in gcc8.

Download full text (3.2 KiB)

Ich bin bis 12.08. nicht im Haus und kann Ihre Nachricht daher leider nicht bearbeiten. In dringenden Fällen wenden Sie sich bitte an <email address hidden> bzw. für technische Fragen an <email address hidden>.

I am out of office until August 12th and won't be able to read your message. In urgent cases, please refer to <email address hidden> or for technical questions to <email address hidden>.

Mit freundlichen Grüßen / Best regards

Steffen Wolfer

--
Dipl.-Inform. Steffen Wolfer
Software Engineer Embedded Systems

WEISS ROBOTICS GmbH & Co. KG
Karl-Heinrich-Käferle-Str. 8
D-71640 Ludwigsburg, Germany

Phone: +49 7141 94702-22
Fax: +49 7141 94702-99
http://www.weiss-robotics.com

Sitz der Gesellschaft: Ludwigsburg
Registergericht Stuttgart, HRA725006

Pers. haftende Gesellschafterin:
Weiss Robotics Verwaltungs-GmbH, Sitz Ludwigsburg
Registergericht Stuttgart, HRB73310
Geschäftsführer: Dr. Karsten Weiß

** Also affects: gcc-arm-none-eabi (Debian)
   Importance: Undecided
       Status: New

--
You received this bug notification because you are subscribed to GNU Arm
Embedded Toolchain.
Matching subscriptions: Älles
https://bugs.launchpad.net/bugs/1838143

Title:
  Compilation flag --without-newlib is not working

Status in GNU Arm Embedded Toolchain:
  New
Status in gcc-arm-none-eabi package in Debian:
  New

Bug description:
  Compiling with and without the option --without-newlib, the
  compilation fails in the same way:

  ```
  In file included from /home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/gcc/include/arm_cmse.h:38,
                   from ../../../../../../libgcc/config/arm/cmse.c:27:
  /home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/gcc/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
   # include_next <stdint.h>
                  ^~~~~~~~~~
  compilation terminated.
  make[6]: *** [../../../../../../libgcc/config/arm/t-arm:14: cmse.o] Error 1
  make[6]: *** Waiting for unfinished jobs....
  make[6]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/arm-none-eabi/thumb/v8-m.base/nofp/libgcc'
  make[5]: *** [Makefile:1201: multi-do] Error 1
  make[5]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/arm-none-eabi/libgcc'
  make[4]: *** [Makefile:125: all-multi] Error 2
  make[4]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build/arm-none-eabi/libgcc'
  make[3]: *** [Makefile:11368: all-target-libgcc] Error 2
  make[3]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build'
  make[2]: *** [Makefile:883: all] Error 2
  make[2]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi/build'
  dh_auto_build: cd build && make -j4 returned exit code 2
  make[1]: *** [debian/rules:91: override_dh_auto_build] Error 255
  make[1]: Leaving directory '/home/cancerbero/data/debian/packages/gcc-arm-none-eabi'
  make: *** [debian/rules:70: build] Error 2
  dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
  ```

  Using the option --without-newlib and installing in the system newlib
  the compilation succeed...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.