Package: libnewlib-arm-none-eabi
Version: 2.2.0+git20150830.5a3d536-1
Severity: important

The nano.specs prepends the include search path with the non-existing
directory "=/include/newlib-nano" instead of "/usr/include/newlib/nano".

This leads to source including the standard newlib.h instead of the nano
version and thereby using a different definition of struct reent than the
libraries it is later linked against.

Example output from gcc:

tido@mandark:~/source>arm-none-eabi-gcc -v -specs=nano.specs -c helloworld.c -o 
helloworld.o
Using built-in specs.
Reading specs from 
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/nano.specs
rename spec link to nano_link
rename spec link_gcc_c_sequence to nano_link_gcc_c_sequence
rename spec cpp to nano_cpp
COLLECT_GCC=arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: ../src/configure --build=x86_64-linux-gnu --prefix=/usr 
--includedir='/usr/lib/include' --mandir='/usr/lib/share/man' 
--infodir='/usr/lib/share/info' --sysconfdir=/etc --localstatedir=/var 
--disable-silent-rules --libdir='/usr/lib/lib/x86_64-linux-gnu' 
--libexecdir='/usr/lib/lib/x86_64-linux-gnu' --disable-maintainer-mode 
--disable-dependency-tracking --mandir=/usr/share/man 
--enable-languages=c,c++,lto --enable-multilib --disable-decimal-float 
--disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath 
--disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared 
--disable-threads --disable-tls --build=x86_64-linux-gnu --target=arm-none-eabi 
--with-system-zlib --with-gnu-as --with-gnu-ld 
--with-pkgversion=15:4.9.3+svn227297-1 --without-included-gettext 
--prefix=/usr/lib --infodir=/usr/share/doc/gcc-arm-none-eabi/info 
--htmldir=/usr/share/doc/gcc-arm-none-eabi/html 
--pdfdir=/usr/share/doc/gcc-arm-none-eabi/pdf --bindir=/usr/bin --libexecdi
 r=/usr/lib --libdir=/usr/lib --disable-libstdc++-v3 --host=x86_64-linux-gnu 
--with-headers=no --without-newlib 
--with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r CFLAGS='-g -O2 
-fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2 CXXFLAGS='-g -O2 
-fstack-protector-strong' FCFLAGS='-g -O2 -fstack-protector-strong' FFLAGS='-g 
-O2 -fstack-protector-strong' GCJFLAGS='-g -O2 -fstack-protector-strong' 
LDFLAGS=-Wl,-z,relro OBJCFLAGS='-g -O2 -fstack-protector-strong' 
OBJCXXFLAGS='-g -O2 -fstack-protector-strong' 
INHIBIT_LIBC_CFLAGS=-DUSE_TM_CLONE_REGISTRY=0 AR_FOR_TARGET=arm-none-eabi-ar 
AS_FOR_TARGET=arm-none-eabi-as LD_FOR_TARGET=arm-none-eabi-ld 
NM_FOR_TARGET=arm-none-eabi-nm OBJDUMP_FOR_TARGET=arm-none-eabi-objdump 
RANLIB_FOR_TARGET=arm-none-eabi-ranlib READELF_FOR_TARGET=arm-none-eabi-readelf 
STRIP_FOR_TARGET=arm-none-eabi-strip
Thread model: single
gcc version 4.9.3 20150529 (prerelease) (15:4.9.3+svn227297-1) 
COLLECT_GCC_OPTIONS='-v' '-specs=nano.specs' '-c' '-o' 'helloworld.o'
 /usr/lib/gcc/arm-none-eabi/4.9.3/cc1 -quiet -v -isystem =/include/newlib-nano 
-D__USES_INITFINI__ helloworld.c -quiet -dumpbase helloworld.c -auxbase-strip 
helloworld.o -version -o /tmp/ccsTFI9f.s
GNU C (15:4.9.3+svn227297-1) version 4.9.3 20150529 (prerelease) (arm-none-eabi)
        compiled by GNU C version 5.2.1 20150808, GMP version 6.0.0, MPFR 
version 3.1.3, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "=/include/newlib-nano"
ignoring nonexistent directory 
"/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/arm-none-eabi/4.9.3/include
 /usr/lib/gcc/arm-none-eabi/4.9.3/include-fixed
 /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/include
End of search list.
GNU C (15:4.9.3+svn227297-1) version 4.9.3 20150529 (prerelease) (arm-none-eabi)
        compiled by GNU C version 5.2.1 20150808, GMP version 6.0.0, MPFR 
version 3.1.3, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 31c2daf3ceae3101c6b2735d8918611a
COLLECT_GCC_OPTIONS='-v' '-specs=nano.specs' '-c' '-o' 'helloworld.o'
 /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/as -v -meabi=5 -o 
helloworld.o /tmp/ccsTFI9f.s
GNU assembler version 2.25 (arm-none-eabi) using BFD version (2.25-5+5+b1) 2.25
COMPILER_PATH=/usr/lib/gcc/arm-none-eabi/4.9.3/:/usr/lib/gcc/arm-none-eabi/4.9.3/:/usr/lib/gcc/arm-none-eabi/:/usr/lib/gcc/arm-none-eabi/4.9.3/:/usr/lib/gcc/arm-none-eabi/:/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/
LIBRARY_PATH=/usr/lib/gcc/arm-none-eabi/4.9.3/:/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-v' '-specs=nano.specs' '-c' '-o' 'helloworld.o'

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (501, 'testing'), (500, 'oldstable-updates'), (500, 'oldstable'), 
(400, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libnewlib-arm-none-eabi depends on:
ii  libnewlib-dev  2.2.0+git20150830.5a3d536-1

Versions of packages libnewlib-arm-none-eabi recommends:
ii  gcc-arm-none-eabi               15:4.9.3+svn227297-1
ii  libstdc++-arm-none-eabi-newlib  15:4.9.3+svn227297-1+8

Versions of packages libnewlib-arm-none-eabi suggests:
pn  libnewlib-doc  <none>

-- debconf-show failed

Reply via email to