public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* Re: [ARM] architecture specific subdirectories & optimised memchr [V6]
@ 2012-08-04  4:01 acrux_it @ libero.it
  2012-08-04 16:07 ` Joseph S. Myers
  0 siblings, 1 reply; 5+ messages in thread
From: acrux_it @ libero.it @ 2012-08-04  4:01 UTC (permalink / raw)
  To: libc-ports; +Cc: David Alan Gilbert, Joseph S. Myers

[-- Attachment #1: Type: text/plain, Size: 2547 bytes --]

i've tried to enable it --with-cpu=armv7 but it fails on my machine (Freescale i.MX51, armv7-a CortexA8) because -march=armv7 breaks it.

distro: CRUX ARMHF
toolchain: gcc-4.7.1, binutils-2.22, glibc-2.16.0
machine: Genesi EfikaMX Smarttop (T03) based on Freescale i.MX51 SoC


[...]
gcc ../ports/sysdeps/unix/sysv/linux/arm/sysdep.S -c    -I../include -I/mnt/DEVE
L/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/bui
ld -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linu
x/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/p
thread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysd
eps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/un
ix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/uni
x -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdep
s/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../port
s/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/
ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DASSEMBLER  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/.  -Wa,--noexecstack -march=armv7  -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o -MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o.dt -MT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o
../ports/sysdeps/unix/arm/sysdep.S: Assembler messages:
../ports/sysdeps/unix/arm/sysdep.S:47: Error: lo register required -- `sub pc,r0,#31'
../ports/sysdeps/unix/arm/sysdep.S:50: Error: invalid base register for register offset -- `ldr r2,[pc,r2]'
../ports/sysdeps/unix/arm/sysdep.S:52: Error: unshifted register required -- `mvn r0,#0'
make[2]: *** [/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o] Error 1
make[2]: Leaving directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
make: *** [all] Error 2



Instead with -march=armv7-a it builds fine.
Here attached the (failure) build log and a quick dirty patch to 
fix it enabling also --with-cpu=armv7-a .

regards,
Nico
-- 
Sent from Genesi EfikaMX Smartbook - Freescale i.MX51 based

[-- Attachment #2: log-armv7 --]
[-- Type: application/octet-stream, Size: 54622 bytes --]

=======> Building '/mnt/DEVEL/HVA/NEW/00/glibc/glibc#2.16.0-1.pkg.tar.gz'.
bsdtar -p -o -C /mnt/DEVEL/HVA/NEW/00/glibc/work/src -xf /mnt/DEVEL/HVA/NEW/00/glibc/glibc-2.16.0.tar.xz
bsdtar -p -o -C /mnt/DEVEL/HVA/NEW/00/glibc/work/src -xf /mnt/DEVEL/HVA/NEW/00/glibc/glibc-ports-2.16.0.tar.xz
bsdtar -p -o -C /mnt/DEVEL/HVA/NEW/00/glibc/work/src -xf /mnt/DEVEL/HVA/NEW/00/glibc/kernel-headers-3.5.tar.xz
cp hosts /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp resolv.conf /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp nsswitch.conf /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp host.conf /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp ld.so.conf /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp glibc-2.15-fix-res_query-assert.patch /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp glibc-rpc-bootstrap.patch /mnt/DEVEL/HVA/NEW/00/glibc/work/src
cp local-soname-hack.diff /mnt/DEVEL/HVA/NEW/00/glibc/work/src
+ build
+ _CPU=armv7
+ '[' armv7 '!=' '' ']'
+ local CONF=--with-cpu=armv7
+ mkdir /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr
+ cp -r kernel-headers-3.5/include /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr
+ chown root:root /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr
+ mv glibc-ports-2.16.0 glibc-2.16.0/ports
+ patch -p1 -d glibc-2.16.0 -i /mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.15-fix-res_query-assert.patch
patching file resolv/res_query.c
+ mkdir build
+ cd build
+ ../glibc-2.16.0/configure --prefix=/usr --with-cpu=armv7 --build=arm-unknown-linux-gnueabihf --libexecdir=/usr/lib --libdir=/usr/lib --with-headers=/mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include --with-tls --enable-kernel=3.2 --enable-add-ons --enable-stackguard-randomization --enable-obsolete-rpc --disable-profile --without-gd --with-fp
checking build system type... arm-unknown-linux-gnueabihf
checking host system type... arm-unknown-linux-gnueabihf
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for sysdeps preconfigure fragments... x86_64 
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking add-on ports for preconfigure fragments... alpha am33 arm Found compiler is configured for armv7
hppa ia64 m68k mips tile 
checking for assembler gnu_indirect_function symbol type support... yes
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for assembler .type directive prefix... %
checking sysdep dirs... ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.22, ok
checking for ld... ld
checking version of ld... 2.22, ok
checking for gcc... gcc
checking version of gcc... 4.7.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.82, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18.1, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for readelf... readelf
checking for nm... nm
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... no
checking for bison... /usr/bin/bison
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... yes
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking whether to use .ctors/.dtors header and trailer... no
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
configure: WARNING: missing architecture parameter to check for working -z relro
checking for -Bgroup option... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking linker output format... elf32-littlearm
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for compiler option to disable generation of FMA instructions... -ffp-contract=off
checking for compiler option for CPU variant... -march=armv7
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking size of long double... 8
checking for _FORTIFY_SOURCE predefine... no
checking whether gcc implicitly enables -fstack-protector... no
running configure fragment for ports/sysdeps/unix/sysv/linux/arm/nptl
running configure fragment for ports/sysdeps/unix/sysv/linux/arm
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... yes
checking for C cleanup handling... yes
running configure fragment for sysdeps/pthread
running configure fragment for sysdeps/unix/sysv/linux
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking installed Linux kernel header files... 2.6.19 or later
checking for kernel header at least 3.2... ok
checking for symlinks in /usr/include... ok
running configure fragment for sysdeps/gnu
running configure fragment for ports/sysdeps/arm
checking for ARM TLS support... yes
checking whether the CFI directive .cfi_sections is supported... yes
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
checking whether the compiler is using the ARM hard-float ABI... yes
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
+ make
make -r PARALLELMFLAGS="" -C ../glibc-2.16.0 objdir=`pwd` all
make[1]: Entering directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
autoconf  ports/sysdeps/unix/sysv/linux/arm/nptl/configure.in > ports/sysdeps/unix/sysv/linux/arm/nptl/configure.new
chmod a-w ports/sysdeps/unix/sysv/linux/arm/nptl/configure.new
mv -f ports/sysdeps/unix/sysv/linux/arm/nptl/configure.new ports/sysdeps/unix/sysv/linux/arm/nptl/configure
autoconf  ports/sysdeps/unix/sysv/linux/arm/configure.in > ports/sysdeps/unix/sysv/linux/arm/configure.new
chmod a-w ports/sysdeps/unix/sysv/linux/arm/configure.new
mv -f ports/sysdeps/unix/sysv/linux/arm/configure.new ports/sysdeps/unix/sysv/linux/arm/configure
autoconf  ports/sysdeps/arm/configure.in > ports/sysdeps/arm/configure.new
chmod a-w ports/sysdeps/arm/configure.new
mv -f ports/sysdeps/arm/configure.new ports/sysdeps/arm/configure
running CONFIG_SHELL=/bin/sh /bin/sh ../glibc-2.16.0/configure --prefix=/usr --with-cpu=armv7 --build=arm-unknown-linux-gnueabihf --libexecdir=/usr/lib --libdir=/usr/lib --with-headers=/mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include --with-tls --enable-kernel=3.2 --enable-add-ons --enable-stackguard-randomization --enable-obsolete-rpc --disable-profile --without-gd --with-fp build_alias=arm-unknown-linux-gnueabihf CFLAGS=-O2 -march=armv7-a -mthumb -mhard-float -mfpu=vfpv3-d16 -pipe CXXFLAGS=-O2 -march=armv7-a -mthumb -mhard-float -mfpu=vfpv3-d16 -pipe --no-create --no-recursion
checking build system type... arm-unknown-linux-gnueabihf
checking host system type... arm-unknown-linux-gnueabihf
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for sysdeps preconfigure fragments... x86_64 
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking add-on ports for preconfigure fragments... alpha am33 arm Found compiler is configured for armv7
hppa ia64 m68k mips tile 
checking for assembler gnu_indirect_function symbol type support... yes
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for assembler .type directive prefix... %
checking sysdep dirs... ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.22, ok
checking for ld... ld
checking version of ld... 2.22, ok
checking for gcc... gcc
checking version of gcc... 4.7.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.82, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18.1, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for readelf... readelf
checking for nm... nm
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... no
checking for bison... /usr/bin/bison
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... yes
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking whether to use .ctors/.dtors header and trailer... no
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
configure: WARNING: missing architecture parameter to check for working -z relro
checking for -Bgroup option... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking linker output format... elf32-littlearm
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for compiler option to disable generation of FMA instructions... -ffp-contract=off
checking for compiler option for CPU variant... -march=armv7
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking size of long double... 8
checking for _FORTIFY_SOURCE predefine... no
checking whether gcc implicitly enables -fstack-protector... no
running configure fragment for ports/sysdeps/unix/sysv/linux/arm/nptl
running configure fragment for ports/sysdeps/unix/sysv/linux/arm
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... yes
checking for C cleanup handling... yes
running configure fragment for sysdeps/pthread
running configure fragment for sysdeps/unix/sysv/linux
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking installed Linux kernel header files... 2.6.19 or later
checking for kernel header at least 3.2... ok
checking for symlinks in /usr/include... ok
running configure fragment for sysdeps/gnu
running configure fragment for ports/sysdeps/arm
checking for ARM TLS support... yes
checking whether the CFI directive .cfi_sections is supported... yes
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
checking whether the compiler is using the ARM hard-float ABI... yes
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
cd /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build; /bin/sh config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
(echo 'sysd-rules-sysdirs := ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic';		      \
 for dir in ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic; do				      \
   case "$dir" in						      \
   /*) ;;							      \
   *) dir="\$(..)$dir" ;;					      \
   esac;							      \
   asm='.S';							      \
   						      \
   for o in .o .os .op .og .ob .oS; do				      \
     set % % rtld-% rtld-% rtld-% % m_% s_% ptw-% %;			      \
     while [ $# -ge 2 ]; do					      \
       t=$1; shift; 						      \
       d=$1; shift;						      \
       v=${t%%%}; [ x"$v" = x ] || v="\$(${v}CPPFLAGS)";	      \
       for s in $asm .c; do					      \
	 echo "\$(objpfx)$t$o: $dir/$d$s \$(before-compile)";  \
	 echo "	\$(compile-command$s) $v";			      \
       done;							      \
     done;							      \
   done;							      \
   echo "\$(inst_includedir)/%.h: $dir/%.h \$(+force)";	      \
   echo "	\$(do-install)"; 				      \
 done;								      \
 echo 'sysd-rules-done = t') > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-rulesT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-rulesT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-rules
for dir in /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic  nptl  ports; do \
  test -f $dir/syscalls.list && \
  { sysdirs='ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic' \
    asm_CPP='gcc -c    -Iinclude  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -Iports/sysdeps/unix/sysv/linux/arm/nptl -Iports/sysdeps/unix/sysv/linux/arm -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Iports/sysdeps/unix/sysv/linux -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Iports/sysdeps/unix/sysv -Isysdeps/unix/sysv -Iports/sysdeps/unix/arm -Inptl/sysdeps/unix -Iports/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Iports/sysdeps/arm/armv7 -Iports/sysdeps/arm/armv6t2 -Iports/sysdeps/arm/nptl -Iports/sysdeps/arm -Isysdeps/wordsize-32 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Iports   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include include/libc-symbols.h       -DASSEMBLER   -Wa,--noexecstack -march=armv7  -E -x assembler-with-cpp' \
    /bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \
  test $dir = sysdeps/unix && break; \
done > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-syscallsT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-syscallsT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-syscalls
gawk -f scripts/gen-sorted.awk \
       -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \
       -v srcpfx='' \
       nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-sorted-tmp
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-sorted-tmp /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-sorted
make[1]: Leaving directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
make[1]: Entering directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
{ echo '#include "posix/bits/posix1_lim.h"';		\
  echo '#define _LIBC 1';					\
  echo '#include "misc/sys/uio.h"'; } |			\
gcc -E -dM -MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.dT -MT '/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.h /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.d' 	\
       -Iinclude  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -Iports/sysdeps/unix/sysv/linux/arm/nptl -Iports/sysdeps/unix/sysv/linux/arm -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Iports/sysdeps/unix/sysv/linux -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Iports/sysdeps/unix/sysv -Isysdeps/unix/sysv -Iports/sysdeps/unix/arm -Inptl/sysdeps/unix -Iports/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Iports/sysdeps/arm/armv7 -Iports/sysdeps/arm/armv6t2 -Iports/sysdeps/arm/nptl -Iports/sysdeps/arm -Isysdeps/wordsize-32 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Iports   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -xc - -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.hT
sed -e 's@ /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@ $(common-objpfx)@g' -e 's@^/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@$(common-objpfx)@g' -e 's@  *\([^ 	\/$][^ 	\]*\)@ $(..)\1@g' -e 's@^\([^ 	\/$][^ 	\]*\)@$(..)\1@g'			\
    /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.dT > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.dt
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.dt /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.d
fopen_max=`sed -n 's/^#define OPEN_MAX //1p' /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.hT`; 	\
filename_max=`sed -n 's/^#define PATH_MAX //1p' /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.hT`;	\
iov_max=`sed -n 's/^#define UIO_MAXIOV //p' /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.hT`;	\
fopen_max=${fopen_max:-16};					\
filename_max=${filename_max:-1024};				\
if [ -z "$iov_max" ]; then					\
  define_iov_max="# undef IOV_MAX";				\
else								\
  define_iov_max="# define IOV_MAX $iov_max";			\
fi;								\
sed -e "s/@FOPEN_MAX@/$fopen_max/"				\
    -e "s/@FILENAME_MAX@/$filename_max/"			\
    -e "s/@L_tmpnam@/20/"				\
    -e "s/@TMP_MAX@/238328/"				\
    -e "s/@L_ctermid@/9/"				\
    -e "s/@L_cuserid@/9/"				\
    -e "s/@define_IOV_MAX@/$define_iov_max/"			\
    stdio-common/stdio_lim.h.in > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.h.new
/bin/sh scripts/move-if-change /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.h.new /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.h
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.dT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.dt
touch /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/bits/stdio_lim.st
sed '/^[ 	]*%/!s/#.*$//;/^[ 	]*$/d;s/^[ 	]*%/#/' \
    ports/sysdeps/arm/shlib-versions nptl/shlib-versions libidn/shlib-versions nptl_db/shlib-versions shlib-versions \
| gcc -E -undef    -Iinclude  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -Iports/sysdeps/unix/sysv/linux/arm/nptl -Iports/sysdeps/unix/sysv/linux/arm -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Iports/sysdeps/unix/sysv/linux -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Iports/sysdeps/unix/sysv -Isysdeps/unix/sysv -Iports/sysdeps/unix/arm -Inptl/sysdeps/unix -Iports/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Iports/sysdeps/arm/armv7 -Iports/sysdeps/arm/armv6t2 -Iports/sysdeps/arm/nptl -Iports/sysdeps/arm -Isysdeps/wordsize-32 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Iports   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include include/libc-symbols.h       -x assembler-with-cpp - \
	   > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.v.iT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.v.iT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.v.i
sed '/^[ 	]*#/d;/^[ 	]*$/d' /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.v.i > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.vT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.vT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.v
gawk -v default_setname='' \
       -v cpu='arm' \
       -v vendor='unknown' \
       -v os='linux-gnueabihf' \
       -f scripts/soversions.awk /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/shlib-versions.v > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.iT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.iT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.i
sed '/^[ 	]*%/!s/#.*$//;/^[ 	]*$/d;s/^[ 	]*%/#/' \
    Versions.def \
| gcc -E -undef    -Iinclude  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -Iports/sysdeps/unix/sysv/linux/arm/nptl -Iports/sysdeps/unix/sysv/linux/arm -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Iports/sysdeps/unix/sysv/linux -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Iports/sysdeps/unix/sysv -Isysdeps/unix/sysv -Iports/sysdeps/unix/arm -Inptl/sysdeps/unix -Iports/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Iports/sysdeps/arm/armv7 -Iports/sysdeps/arm/armv6t2 -Iports/sysdeps/arm/nptl -Iports/sysdeps/arm -Isysdeps/wordsize-32 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Iports   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include include/libc-symbols.h       -x assembler-with-cpp - \
	   > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.v.iT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.v.iT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.v.i
sed '/^[ 	]*#/d;/^[ 	]*$/d' /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.v.i > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.vT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.vT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.v
{ while read which lib version setname; do \
    test x"$which" = xDEFAULT || continue; \
    test -z "$setname" || echo "$lib : $setname"; \
  done < /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.i; \
  cat /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.def.v; \
} | LC_ALL=C gawk -f scripts/firstversions.awk > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.allT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.allT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.all
LC_ALL=C gawk -v oldest_abi=default -f scripts/abi-versions.awk /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.all > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/abi-versions.hT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/abi-versions.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/abi-versions.h
sed '/^[ 	]*%/!s/#.*$//;/^[ 	]*$/d;s/^[ 	]*%/#/' \
    csu/Versions iconv/Versions locale/Versions assert/Versions ctype/Versions intl/Versions catgets/Versions math/Versions setjmp/Versions signal/Versions stdlib/Versions stdio-common/Versions libio/Versions dlfcn/Versions malloc/Versions string/Versions wcsmbs/Versions time/Versions dirent/Versions grp/Versions pwd/Versions posix/Versions io/Versions termios/Versions resource/Versions misc/Versions socket/Versions sysvipc/Versions gmon/Versions wctype/Versions shadow/Versions gshadow/Versions argp/Versions crypt/Versions nptl/Versions resolv/Versions nss/Versions rt/Versions debug/Versions libidn/Versions nptl_db/Versions inet/Versions hesiod/Versions sunrpc/Versions nis/Versions streams/Versions login/Versions elf/Versions ports/sysdeps/unix/sysv/linux/arm/nptl/Versions ports/sysdeps/unix/sysv/linux/arm/Versions nptl/sysdeps/unix/sysv/linux/Versions sysdeps/pthread/Versions sysdeps/unix/sysv/linux/Versions ports/sysdeps/arm/Versions sysdeps/wordsize-32/Versions \
| gcc -E -undef    -Iinclude  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -Iports/sysdeps/unix/sysv/linux/arm/nptl -Iports/sysdeps/unix/sysv/linux/arm -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Iports/sysdeps/unix/sysv/linux -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Iports/sysdeps/unix/sysv -Isysdeps/unix/sysv -Iports/sysdeps/unix/arm -Inptl/sysdeps/unix -Iports/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Iports/sysdeps/arm/armv7 -Iports/sysdeps/arm/armv6t2 -Iports/sysdeps/arm/nptl -Iports/sysdeps/arm -Isysdeps/wordsize-32 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Iports   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include include/libc-symbols.h       -x assembler-with-cpp - \
	   > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.v.iT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.v.iT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.v.i
sed '/^[ 	]*#/d;/^[ 	]*$/d' /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.v.i > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.vT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.vT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.v
( echo 'sysd-versions-subdirs = csu iconv locale localedata iconvdata assert ctype intl catgets math setjmp signal stdlib stdio-common libio dlfcn malloc string wcsmbs timezone time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib wctype manual shadow gshadow po argp crypt nptl resolv nss rt conform debug libidn nptl_db inet hesiod sunrpc nis nscd streams login elf ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/armv7 ports/sysdeps/arm/armv6t2 ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic' ; \
  cat /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.v \
  | LC_ALL=C gawk -v buildroot=/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/ -v defsfile=/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/Versions.all \
		    -v move_if_change='/bin/sh scripts/move-if-change' \
		    -f scripts/versions.awk; \
) > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-versionsT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-versionsT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/sysd-versions
(while read which lib number setname; do \
   eval seen_$which=1; \
   test x"$which" != xABI || echo abi-name = "$lib"; \
   test x"$which" = xDEFAULT || continue; \
   case $number in \
     [0-9]*) echo "$lib.so-version=.$number"; \
	     echo "all-sonames+=$lib=$lib.so\$($lib.so-version)";;\
     *)	     echo "$lib.so-version=\$(if \$(abi-hard-$lib-soname),\$(abi-hard-$lib-soname),$number)"; \
	     echo "all-sonames+=$lib=\$($lib.so-version)";;\
   esac; \
 done; \
 echo soversions.mk-done = t;) < /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.i > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.mkT; exit 0
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.mkT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/soversions.mk
make[1]: Leaving directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
make[1]: Entering directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/stamp.o; > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/stamp.o
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/stamp.os; > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/stamp.os
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/stamp.oS; > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/stamp.oS
make  subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0/csu'
/bin/sh ../scripts/gen-libc-abis \
	 arm-unknown-linux-gnueabihf \
	 < ../libc-abis > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/libc-abis.hT
/bin/sh ../scripts/move-if-change /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/libc-abis.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/libc-abis.h
touch /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/libc-abis.stamp
.././scripts/mkinstalldirs /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu
mkdir /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu
(case linux-gnueabihf in \
   linux*) version=`(printf '%s\n%s\n' \
			    '#include <linux/version.h>' \
			    UTS_RELEASE \
		     | gcc    -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -O -E -P - -DNOT_IN_libc=1 | \
		     sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\
	   if [ -z "$version" ]; then \
	     version=`(printf '%s\n%s\n' \
			      '#include <linux/version.h>' \
			       LINUX_VERSION_CODE \
		       | gcc    -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -O -E -P - -DNOT_IN_libc=1 \
		       | sed -n -e '/^[123456789].*/p' \
		       | awk '{v=$1; \
			       printf("%d.%d.%d\n", \
				      v/65535, v/256%256, v%256)}') \
			2>/dev/null`; \
	   fi; \
	   if [ -z "$version" ]; then \
	     if [ -r /proc/version ]; then \
	       version=`sed 's/.*Linux version \([^ ]*\) .*/>>\1<</' \
			< /proc/version`; \
	     else \
	       version=`uname -r`; \
	     fi; \
	   fi; \
	   os=`uname -s 2> /dev/null`; \
	   if [ -z "$os" ]; then \
	     os=Linux; \
	   fi; \
	   printf '"Compiled on a %s %s system on %s.\\n"\n' \
		  "$os" "$version" "`date +%Y-%m-%d`";; \
   *) ;; \
 esac; \
 files="../crypt/Banner ../libidn/Banner ../nptl/Banner ../ports/Banner ../resolv/Banner";				\
 if test -n "$files"; then				\
   printf '"Available extensions:\\n"\n';		\
   sed -e '/^#/d' -e 's/^[[:space:]]*/	/'		\
       -e 's/^\(.*\)$/\"\1\\n\"/' $files;		\
 fi) > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/version-info.hT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/version-info.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/version-info.h
.././scripts/mkinstalldirs /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/gnu
mkdir /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/gnu
{ \
 echo '/* This file is automatically generated.';\
 echo '   It defines macros to allow user program to find the shared'; \
 echo '   library files which come as part of GNU libc.  */'; \
 echo '#ifndef __GNU_LIB_NAMES_H'; \
 echo '#define __GNU_LIB_NAMES_H	1'; \
 echo ''; \
  \
    echo '#if !defined __ARM_PCS_VFP'; (  echo libnss_dns=libnss_dns.so.2;   echo libgcc_s=libgcc_s.so.1;   echo libm=libm.so.6;   echo libresolv=libresolv.so.2;   echo libnss_files=libnss_files.so.2;   echo ld=ld-linux.so.3;   echo libdl=libdl.so.2;   echo libpthread=libpthread.so.0;   echo libc=libc.so.6;   echo libutil=libutil.so.1;   echo libnss_compat=libnss_compat.so.2;   echo libnsl=libnsl.so.1;   echo libnss_hesiod=libnss_hesiod.so.2;   echo libnss_ldap=libnss_ldap.so.2;   echo libthread_db=libthread_db.so.1;   echo libnss_nis=libnss_nis.so.2;   echo libnss_test1=libnss_test1.so.2;   echo libnss_nisplus=libnss_nisplus.so.2;   echo libnss_db=libnss_db.so.2;   echo libcidn=libcidn.so.1;   echo libBrokenLocale=libBrokenLocale.so.1;   echo libanl=libanl.so.1;   echo librt=librt.so.1;   echo libcrypt=libcrypt.so.1;) | LC_ALL=C gawk -v multi=1 -f ../scripts/lib-names.awk | LC_ALL=C sort; echo '#endif';   echo '#if defined __ARM_PCS_VFP'; (  echo libnss_dns=libnss_dns.so.2;   echo libgcc_s=libgcc_s.so.1;   echo libm=libm.so.6;   echo libresolv=libresolv.so.2;   echo libnss_files=libnss_files.so.2;   echo ld=ld-linux-armhf.so.3;   echo libdl=libdl.so.2;   echo libpthread=libpthread.so.0;   echo libc=libc.so.6;   echo libutil=libutil.so.1;   echo libnss_compat=libnss_compat.so.2;   echo libnsl=libnsl.so.1;   echo libnss_hesiod=libnss_hesiod.so.2;   echo libnss_ldap=libnss_ldap.so.2;   echo libthread_db=libthread_db.so.1;   echo libnss_nis=libnss_nis.so.2;   echo libnss_test1=libnss_test1.so.2;   echo libnss_nisplus=libnss_nisplus.so.2;   echo libnss_db=libnss_db.so.2;   echo libcidn=libcidn.so.1;   echo libBrokenLocale=libBrokenLocale.so.1;   echo libanl=libanl.so.1;   echo librt=librt.so.1;   echo libcrypt=libcrypt.so.1;) | LC_ALL=C gawk -v multi=1 -f ../scripts/lib-names.awk | LC_ALL=C sort; echo '#endif'; \
 echo ''; \
 echo '#endif	/* gnu/lib-names.h */'; \
} >  /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/gnu/lib-names.T
/bin/sh ../scripts/move-if-change /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/gnu/lib-names.T /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/gnu/lib-names.h
touch /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/gnu/lib-names.stmp
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/abi-tag.h.new
sed -e 's/#.*$//' -e '/^[	]*$/d' ../abi-tags | \
while read conf tagos tagver; do \
  test `expr 'arm-unknown-linux-gnueabihf' \
	     : "$conf"` != 0 || continue; \
  ( echo "$tagos" | \
    sed -e 's/[^0-9xXa-fA-F 	]//' \
	-e 's/^/#define __ABI_TAG_OS /'; \
    echo "#ifndef __ABI_TAG_VERSION"; \
    echo "$tagver" | \
    sed -e 's/[^0-9xXa-fA-F]/ /g' -e 's/ *$//' \
      -e 's/ /,/g' -e 's/^/# define __ABI_TAG_VERSION /'; \
    echo "#endif" ) > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/abi-tag.h.new; \
done
if test -r /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/abi-tag.h.new; then mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/abi-tag.h.new /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
gawk -f ../scripts/gen-as-const.awk ../ports/sysdeps/arm/nptl/tcb-offsets.sym \
| gcc -S -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -march=armv7 -march=armv7-a -mfpu=vfpv3-d16 -mhard-float -mthumb -pipe -Wstrict-prototypes         -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -x c - \
	-MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.dT -MT '/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.d /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
	/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.hT3 > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.hT
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.hT3
sed -e 's@ /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@ $(common-objpfx)@g' -e 's@^/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^ 	\]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^ 	\]*\)@$(..)\1@g' \
    /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.dT > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.dT2
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.dT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.dT2 /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h.d
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tcb-offsets.h
gawk -f ../scripts/gen-as-const.awk ../ports/sysdeps/arm/rtld-global-offsets.sym \
| gcc -S -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -march=armv7 -march=armv7-a -mfpu=vfpv3-d16 -mhard-float -mthumb -pipe -Wstrict-prototypes         -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -x c - \
	-MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.dT -MT '/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.d /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
	/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.hT3 > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.hT
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.hT3
sed -e 's@ /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@ $(common-objpfx)@g' -e 's@^/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^ 	\]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^ 	\]*\)@$(..)\1@g' \
    /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.dT > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.dT2
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.dT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.dT2 /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h.d
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/rtld-global-offsets.h
gawk -f ../scripts/gen-as-const.awk ../ports/sysdeps/arm/tlsdesc.sym \
| gcc -S -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -march=armv7 -march=armv7-a -mfpu=vfpv3-d16 -mhard-float -mthumb -pipe -Wstrict-prototypes         -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -x c - \
	-MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.dT -MT '/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.d /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
	/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.hT3 > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.hT
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.hT3
sed -e 's@ /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@ $(common-objpfx)@g' -e 's@^/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^ 	\]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^ 	\]*\)@$(..)\1@g' \
    /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.dT > /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.dT2
rm -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.dT
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.dT2 /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h.d
mv -f /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.hT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/tlsdesc.h
gcc ../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -march=armv7 -march=armv7-a -mfpu=vfpv3-d16 -mhard-float -mthumb -pipe -Wstrict-prototypes         -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/init-first.o -MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/init-first.o.dt -MT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/init-first.o 
gcc libc-start.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -march=armv7 -march=armv7-a -mfpu=vfpv3-d16 -mhard-float -mthumb -pipe -Wstrict-prototypes   -fexceptions      -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/libc-start.o -MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/libc-start.o.dt -MT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/libc-start.o
gcc ../ports/sysdeps/unix/sysv/linux/arm/sysdep.S -c    -I../include -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/armv7 -I../ports/sysdeps/arm/armv6t2 -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/4.7.1/include -isystem /mnt/DEVEL/HVA/NEW/00/glibc/work/pkg/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DASSEMBLER  -I/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/.  -Wa,--noexecstack -march=armv7  -o /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o -MD -MP -MF /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o.dt -MT /mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o 
../ports/sysdeps/unix/arm/sysdep.S: Assembler messages:
../ports/sysdeps/unix/arm/sysdep.S:47: Error: lo register required -- `sub pc,r0,#31'
../ports/sysdeps/unix/arm/sysdep.S:50: Error: invalid base register for register offset -- `ldr r2,[pc,r2]'
../ports/sysdeps/unix/arm/sysdep.S:52: Error: unshifted register required -- `mvn r0,#0'
make[2]: *** [/mnt/DEVEL/HVA/NEW/00/glibc/work/src/build/csu/sysdep.o] Error 1
make[2]: Leaving directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/DEVEL/HVA/NEW/00/glibc/work/src/glibc-2.16.0'
make: *** [all] Error 2
=======> ERROR: Building '/mnt/DEVEL/HVA/NEW/00/glibc/glibc#2.16.0-1.pkg.tar.gz' failed.

[-- Attachment #3: 0.patch --]
[-- Type: text/x-diff, Size: 781 bytes --]

diff -Naur glibc-ports-2.16.0-orig/sysdeps/arm/armv7-a/Implies glibc-ports-2.16.0/sysdeps/arm/armv7-a/Implies
--- glibc-ports-2.16.0-orig/sysdeps/arm/armv7-a/Implies	1970-01-01 01:00:00.000000000 +0100
+++ glibc-ports-2.16.0/sysdeps/arm/armv7-a/Implies	2012-08-03 09:17:28.401950316 +0200
@@ -0,0 +1,2 @@
+# We can do everything that 7 can
+arm/armv7
diff -Naur glibc-ports-2.16.0-orig/sysdeps/arm/preconfigure glibc-ports-2.16.0/sysdeps/arm/preconfigure
--- glibc-ports-2.16.0-orig/sysdeps/arm/preconfigure	2012-06-21 19:08:19.000000000 +0200
+++ glibc-ports-2.16.0/sysdeps/arm/preconfigure	2012-08-03 09:16:04.906650327 +0200
@@ -20,7 +20,7 @@
 		  ;;
 
 		x__ARM_ARCH_7A__)
-		  machine=armv7
+		  machine=armv7-a
 		  echo "Found compiler is configured for $machine"
 		  ;;
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ARM] architecture specific subdirectories & optimised memchr [V6]
  2012-08-04  4:01 [ARM] architecture specific subdirectories & optimised memchr [V6] acrux_it @ libero.it
@ 2012-08-04 16:07 ` Joseph S. Myers
  0 siblings, 0 replies; 5+ messages in thread
From: Joseph S. Myers @ 2012-08-04 16:07 UTC (permalink / raw)
  To: acrux_it @ libero.it; +Cc: libc-ports, David Alan Gilbert

On Sat, 4 Aug 2012, acrux_it @ libero.it wrote:

> i've tried to enable it --with-cpu=armv7 but it fails on my machine 
> (Freescale i.MX51, armv7-a CortexA8) because -march=armv7 breaks it.

--with-cpu=armv7 is not a valid configure option, since -march=armv7 means 
the common subset of v7-A, v7-M and v7-R, which cannot be used to build 
glibc (most .S source files expect to be built in ARM mode, not Thumb-2).

These directories are expected to be selected on the basis of 
autodetection of what architecture $CC $CFLAGS $CPPFLAGS builds for, not 
using --with-cpu configure options.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ARM] architecture specific subdirectories & optimised memchr [V6]
  2011-12-08 15:47     ` Joseph S. Myers
@ 2011-12-08 15:49       ` David Gilbert
  0 siblings, 0 replies; 5+ messages in thread
From: David Gilbert @ 2011-12-08 15:49 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: libc-ports, patches

On 8 December 2011 15:46, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Thu, 8 Dec 2011, Dr. David Alan Gilbert wrote:
>
>> Relative to v5 I've:
>>   Removed the cbz in the align loop (thanks Joseph for spotting that!)
>
> Thanks.  I've committed this patch with the following ChangeLog entry;
> please remember to include ChangeLog entries in future submissions.

Oops - sorry about that; I'll remember for the future.

> 2011-12-08  David Alan Gilbert  <david.gilbert@linaro.org>
>
>        * sysdeps/arm/preconfigure: Identify architecture version from
>        preprocessor defines.
>        * sysdeps/arm/eabi/armv6t2/memchr.S,
>        sysdeps/arm/eabi/armv7/Implies: New.

Thank you!

Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ARM] architecture specific subdirectories & optimised memchr [V6]
  2011-12-08 10:03   ` [ARM] architecture specific subdirectories & optimised memchr [V6] Dr. David Alan Gilbert
@ 2011-12-08 15:47     ` Joseph S. Myers
  2011-12-08 15:49       ` David Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph S. Myers @ 2011-12-08 15:47 UTC (permalink / raw)
  To: Dr. David Alan Gilbert; +Cc: libc-ports, patches

On Thu, 8 Dec 2011, Dr. David Alan Gilbert wrote:

> Relative to v5 I've:
>   Removed the cbz in the align loop (thanks Joseph for spotting that!)

Thanks.  I've committed this patch with the following ChangeLog entry; 
please remember to include ChangeLog entries in future submissions.

2011-12-08  David Alan Gilbert  <david.gilbert@linaro.org>

        * sysdeps/arm/preconfigure: Identify architecture version from
        preprocessor defines.
        * sysdeps/arm/eabi/armv6t2/memchr.S,
        sysdeps/arm/eabi/armv7/Implies: New.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ARM] architecture specific subdirectories & optimised memchr [V6]
  2011-12-05 22:11 ` Joseph S. Myers
@ 2011-12-08 10:03   ` Dr. David Alan Gilbert
  2011-12-08 15:47     ` Joseph S. Myers
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2011-12-08 10:03 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: libc-ports, patches


This is v6 of my ARM memchr + version specific subdirectory patch.  It's against 
svn rev r15869.

Relative to v5 I've:
  Removed the cbz in the align loop (thanks Joseph for spotting that!)

Relative to v4 I've:
  1) Taken on board some of the comments from my submission to newlib.
     Including the use or ldrd rather than ldm.
  2) Added a pattern so that ARM_ARCH_8 or 9 fall back to v7 so that
     it should work for 32bit ARMv8.  Note that ARMv8 is deprecating
     some features in 32bit according to the docs on ARMs website,
     although they should still work in v8.

Dave


Index: ports/sysdeps/arm/preconfigure
===================================================================
--- ports/sysdeps/arm/preconfigure	(revision 15384)
+++ ports/sysdeps/arm/preconfigure	(working copy)
@@ -3,6 +3,38 @@
 	base_machine=arm
 	case $config_os in
 	linux-gnueabi*)
+		# Lets ask the compiler which ARM family we've got
+		# Unfortunately it doesn't define any flags for implementations
+		# that you might pass to -mcpu or -mtune
+		# Note if you add patterns here you must ensure that
+		# an appropriate directory exists in sysdeps/arm/eabi
+		archcppflag=`echo "" |
+		$CC $CFLAGS $CPPFLAGS -E -dM - |
+		  grep __ARM_ARCH |
+		  sed -e 's/^#define //' -e 's/ .*//'` 
+
+		case x$archcppflag in
+		x__ARM_ARCH_[89]*__)
+		  machine=armv7
+		  echo "Found compiler is configured for something newer than v7 - using v7"
+		  ;;
+
+		x__ARM_ARCH_7A__)
+		  machine=armv7
+		  echo "Found compiler is configured for $machine"
+		  ;;
+
+		x__ARM_ARCH_6T2__)
+		  machine=armv6t2
+		  echo "Found compiler is configured for $machine"
+		  ;;
+
+		*)
+		  machine=arm
+		  echo 2>&1 "arm/preconfigure: Did not find ARM architecture type; using default"
+		  ;;
+		esac
+
 		machine=arm/eabi/$machine
 		if [ "${CFLAGS+set}" != "set" ]; then
 		  CFLAGS="-g -O2"
Index: ports/sysdeps/arm/eabi/armv6t2/memchr.S
===================================================================
--- ports/sysdeps/arm/eabi/armv6t2/memchr.S	(revision 0)
+++ ports/sysdeps/arm/eabi/armv6t2/memchr.S	(revision 0)
@@ -0,0 +1,164 @@
+/* Copyright (C) 2011 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Code contributed by Dave Gilbert <david.gilbert@linaro.org>
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#include <sysdep.h>
+
+@ This memchr routine is optimised on a Cortex-A9 and should work on all ARMv7
+@ and ARMv6T2 processors.  It has a fast path for short sizes, and has an
+@ optimised path for large data sets; the worst case is finding the match early
+@ in a large data set.
+@ Note: The use of cbz/cbnz means it's Thumb only
+
+@ 2011-07-15 david.gilbert@linaro.org
+@    Copy from Cortex strings release 21 and change license
+@ http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/view/head:/src/linaro-a9/memchr.S
+@    Change function declarations/entry/exit
+@ 2011-12-01 david.gilbert@linaro.org
+@    Add some fixes from comments received (including use of ldrd instead ldm)
+@ 2011-12-07 david.gilbert@linaro.org
+@    Removed cbz from align loop - can't be taken
+
+@ this lets us check a flag in a 00/ff byte easily in either endianness
+#ifdef __ARMEB__
+#define CHARTSTMASK(c) 1<<(31-(c*8))
+#else
+#define CHARTSTMASK(c) 1<<(c*8)
+#endif
+	.syntax unified
+
+	.text
+	.thumb
+
+@ ---------------------------------------------------------------------------
+	.thumb_func
+	.global memchr
+	.type memchr,%function
+ENTRY(memchr)
+	@ r0 = start of memory to scan
+	@ r1 = character to look for
+	@ r2 = length
+	@ returns r0 = pointer to character or NULL if not found
+	and	r1,r1,#0xff	@ Don't think we can trust the caller to actually pass a char
+
+	cmp	r2,#16		@ If it's short don't bother with anything clever
+	blt	20f
+
+	tst	r0, #7		@ If it's already aligned skip the next bit
+	beq	10f
+
+	@ Work up to an aligned point
+5:
+	ldrb	r3, [r0],#1
+	subs	r2, r2, #1
+	cmp	r3, r1
+	beq	50f		@ If it matches exit found
+	tst	r0, #7
+	bne	5b		@ If not aligned yet then do next byte
+
+10:
+	@ At this point, we are aligned, we know we have at least 8 bytes to work with
+	push	{r4,r5,r6,r7}
+	cfi_adjust_cfa_offset (16)
+	cfi_rel_offset (r4, 0)
+	cfi_rel_offset (r5, 4)
+	cfi_rel_offset (r6, 8)
+	cfi_rel_offset (r7, 12)
+
+	cfi_remember_state
+
+	orr	r1, r1, r1, lsl #8	@ expand the match word across to all bytes
+	orr	r1, r1, r1, lsl #16
+	bic	r4, r2, #7	@ Number of double words to work with * 8
+	mvns	r7, #0		@ all F's
+	movs	r3, #0
+
+15:
+	ldrd 	r5,r6, [r0],#8
+	subs	r4, r4, #8
+	eor	r5,r5, r1	@ Get it so that r5,r6 have 00's where the bytes match the target
+	eor	r6,r6, r1
+	uadd8	r5, r5, r7	@ Parallel add 0xff - sets the GE bits for anything that wasn't 0
+	sel	r5, r3, r7	@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION
+	uadd8	r6, r6, r7	@ Parallel add 0xff - sets the GE bits for anything that wasn't 0
+	sel	r6, r5, r7	@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION
+	cbnz	r6, 60f
+	bne	15b		@ (Flags from the subs above) If not run out of bytes then go around again
+
+	pop	{r4,r5,r6,r7}
+	cfi_adjust_cfa_offset (-16)
+	cfi_restore (r4)
+	cfi_restore (r5)
+	cfi_restore (r6)
+	cfi_restore (r7)
+
+	and	r1,r1,#0xff	@ Get r1 back to a single character from the expansion above
+	and	r2,r2,#7	@ Leave the count remaining as the number after the double words have been done
+
+20:
+	cbz	r2, 40f		@ 0 length or hit the end already then not found
+
+21:  @ Post aligned section, or just a short call
+	ldrb	r3,[r0],#1
+	subs	r2,r2,#1
+	eor	r3,r3,r1	@ r3 = 0 if match - doesn't break flags from sub
+	cbz	r3, 50f
+	bne	21b		@ on r2 flags
+
+40:
+	movs	r0,#0		@ not found
+	DO_RET(lr)
+
+50:
+	subs	r0,r0,#1	@ found
+	DO_RET(lr)
+
+60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was
+     @ r0 points to the start of the double word after the one that was tested
+     @ r5 has the 00/ff pattern for the first word, r6 has the chained value
+	cfi_restore_state
+	cmp	r5, #0
+	itte	eq
+	moveq	r5, r6		@ the end is in the 2nd word
+	subeq	r0,r0,#3	@ Points to 2nd byte of 2nd word
+	subne	r0,r0,#7	@ or 2nd byte of 1st word
+
+	@ r0 currently points to the 2nd byte of the word containing the hit
+	tst	r5, # CHARTSTMASK(0)	@ 1st character
+	bne	61f
+	adds	r0,r0,#1
+	tst	r5, # CHARTSTMASK(1)	@ 2nd character
+	ittt	eq
+	addeq	r0,r0,#1
+	tsteq	r5, # (3<<15)		@ 2nd & 3rd character
+	@ If not the 3rd must be the last one
+	addeq	r0,r0,#1
+
+61:
+	pop	{r4,r5,r6,r7}
+	cfi_adjust_cfa_offset (-16)
+	cfi_restore (r4)
+	cfi_restore (r5)
+	cfi_restore (r6)
+	cfi_restore (r7)
+
+	subs	r0,r0,#1
+	DO_RET(lr)
+
+END(memchr)
+libc_hidden_builtin_def (memchr)
Index: ports/sysdeps/arm/eabi/armv7/Implies
===================================================================
--- ports/sysdeps/arm/eabi/armv7/Implies	(revision 0)
+++ ports/sysdeps/arm/eabi/armv7/Implies	(revision 0)
@@ -0,0 +1,2 @@
+# We can do everything that 6T2 can
+arm/eabi/armv6t2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-04 16:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-04  4:01 [ARM] architecture specific subdirectories & optimised memchr [V6] acrux_it @ libero.it
2012-08-04 16:07 ` Joseph S. Myers
  -- strict thread matches above, loose matches on Subject: below --
2011-12-02 17:32 [ARM] architecture specific subdirectories & optimised memchr [V5] Dr. David Alan Gilbert
2011-12-05 22:11 ` Joseph S. Myers
2011-12-08 10:03   ` [ARM] architecture specific subdirectories & optimised memchr [V6] Dr. David Alan Gilbert
2011-12-08 15:47     ` Joseph S. Myers
2011-12-08 15:49       ` David Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).