Compilation flag --without-newlib is not working

Bug #1838143 reported by Joaquin de Andres
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Won't Fix
Undecided
Przemyslaw Wirkus
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.

Revision history for this message
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.

Revision history for this message
stewo (wolfer-y) wrote : [Autoreply] [Bug 1838143] Re: Compilation flag --without-newlib is not working
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...

Revision history for this message
Joaquin de Andres (xcancerberox) wrote :
Revision history for this message
Keith Packard (keithp) wrote :

Merge request !10 includes a work-around for this issue by patching the code to use gcc's own stdint.h directly

Revision history for this message
Przemyslaw Wirkus (wirkus) wrote :

As there was a fix for this I'm closing.

Changed in gcc-arm-embedded:
status: New → Fix Committed
assignee: nobody → Przemyslaw Wirkus (wirkus)
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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