[ptxdist] OSELAS.Toolchain: Error in i686 build?
Hi all, I'm trying to get a i686 OSELAS.Toolchain built on OS X. I managed to get successfully arm-v4t-linux-gnueabi Toolchain built before and have currently no clue why this should not work out for i686 toolchain. The error message is as following: ---8--- i686-unknown-linux-gnu-gcc strcpy.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -Wa,-mtune=i686 -I../include -I/Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-target/glibc-2.14.1-first-build/string -I/Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-target/glibc-2.14.1-first-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /opt/OSELAS.Toolchain-2011.11.0/i686-unknown-linux-gnu/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/gcc-first/lib/gcc/i686-unknown-linux-gnu/4.6.2/include -isystem /opt/OSELAS.Toolchain-2011.11.0/i686-unknown-linux-gnu/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/gcc-first/lib/gcc/i686-unknown-linux-gnu/4.6.2/include-fixed -isystem /opt/OSELAS.Toolchain-2011.11.0/i686-unknown-linux-gnu/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-i686-unknown-linux-gnu/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h-o /Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-target/glibc-2.14.1-first-build/string/strcpy.o -MD -MP -MF /Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-target/glibc-2.14.1-first-build/string/strcpy.o.dt -MT /Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-target/glibc-2.14.1-first-build/string/strcpy.o ../sysdeps/i386/i686/multiarch/strcmp.S: Assembler messages: ../sysdeps/i386/i686/multiarch/strcmp.S:90: Error: can't resolve `.text' {.text section} - `strcmp' {.text section} make[3]: *** [/Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-target/glibc-2.14.1-first-build/string/strcmp.o] Error 1 make[3]: *** Waiting for unfinished jobs make[2]: *** [string/subdir_lib] Error 2 make[1]: *** [lib] Error 2 make: *** [/Users/andreas/Documents/source/OSELAS.Toolchain/platform-i686-unknown-linux-gnu-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/state/glibc-first.compile] Error 2 ---8--- Some searches pointed out some possible binutils error. - http://old.nabble.com/error-with-binutils-2.21.53.0.2-td32992962.html#a32992962 http://permalink.gmane.org/gmane.comp.t2.devel/5199 (gmane mail mention reverting some commit is: 'r39979 * updated binutils (2.20.51.0.11 - 2.21.53.0.2)') Has any one encountered same problem with i686 toolchain on linux build host? best regards Andreas Bießmann -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] sitecopy: Fix build on non-Linux hosts
Hi Bernhard, Bernhard Walle wrote: The build system of sitecopy uses 'uname' to determine the operating system for which it compiles sitecopy. However, on non-Linux hosts, this leads to wrong results. Fixes Darwin (tested on Mac OS 10.7 Lion), doesn't break Linux (verified with current Arch Linux on x86_64). Signed-off-by: Bernhard Walle bernh...@bwalle.de --- rules/sitecopy.make |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/rules/sitecopy.make b/rules/sitecopy.make index 44a7b8a..c5af415 100644 --- a/rules/sitecopy.make +++ b/rules/sitecopy.make @@ -40,7 +40,8 @@ SITECOPY_AUTOCONF := $(CROSS_AUTOCONF_USR) \ --disable-rpath \ --without-pakchois \ --without-socks \ - --without-gssapi + --without-gssapi \ + ne_cv_os_uname=Linux ifdef PTXCONF_SITECOPY_SFTP SITECOPY_AUTOCONF += --enable-sftp Can you send me the config.log file of the sitecopy package, after *preparing* (prepare stage) it? Please run it one times without your patch shown above. I have no other system than Linux here, to check what the autotools really detecting on different systems. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] sitecopy: Fix build on non-Linux hosts
Hi Jürgen, Am 18.01.2012 11:05, schrieb Juergen Beisert: Can you send me the config.log file of the sitecopy package, after *preparing* (prepare stage) it? Please run it one times without your patch shown above. I have no other system than Linux here, to check what the autotools really detecting on different systems. Will do in the evening, but as I remember, it was the '-no-cpp-precomp' compiler flag that caused the compilation failure: (from configure:) if test $ne_cv_os_uname = Darwin; then CPPFLAGS=$CPPFLAGS -no-cpp-precomp LDFLAGS=$LDFLAGS -flat_namespace # poll has various issues in various Darwin releases if test x${ac_cv_func_poll+set} != xset; then ac_cv_func_poll=no fi fi Regards, Bernhard -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] sitecopy: Fix build on non-Linux hosts
Hi Bernhard, Bernhard Walle wrote: Am 18.01.2012 11:05, schrieb Juergen Beisert: Can you send me the config.log file of the sitecopy package, after *preparing* (prepare stage) it? Please run it one times without your patch shown above. I have no other system than Linux here, to check what the autotools really detecting on different systems. Will do in the evening, Thanks. but as I remember, it was the '-no-cpp-precomp' compiler flag that caused the compilation failure: (from configure:) if test $ne_cv_os_uname = Darwin; then CPPFLAGS=$CPPFLAGS -no-cpp-precomp LDFLAGS=$LDFLAGS -flat_namespace # poll has various issues in various Darwin releases if test x${ac_cv_func_poll+set} != xset; then ac_cv_func_poll=no fi fi The correct fix should be something like if test $host_os = Darwin; then I guess. Testing the ne_cv_os_uname variable is for the build host only. But that's why I asked you for the 'config.log' file. I want to see what the autotools do on your system. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] sitecopy: Fix build on non-Linux hosts
Am 18.01.12 11:23, schrieb Juergen Beisert: Hi Bernhard, Bernhard Walle wrote: Am 18.01.2012 11:05, schrieb Juergen Beisert: Can you send me the config.log file of the sitecopy package, after *preparing* (prepare stage) it? Please run it one times without your patch shown above. I have no other system than Linux here, to check what the autotools really detecting on different systems. Will do in the evening, Thanks. A bite late for the evening, but anyway attached. ;-) The check comes from m4/neon/neon.m4 which is included in sitecopy sources. Maybe I should patch that to check for the target system and link ptxdist autogen.sh? Regards, Bernhard This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by sitecopy configure 0.16.6, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --host=arm-v5te-linux-gnueabi --build=i386-host-darwin11.2.0 --disable-gnomefe --enable-threadsafe-ssl=posix --disable-nls --enable-threads=posix --disable-rpath --without-pakchois --without-socks --without-gssapi --enable-sftp --enable-rsh --enable-ftp --enable-webdav --with-expat ## - ## ## Platform. ## ## - ## hostname = galilei.fritz.box uname -m = x86_64 uname -r = 11.2.0 uname -s = Darwin uname -v = Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 Kernel configured for up to 2 processors. 2 processors are physically available. 2 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 Primary memory available: 4.00 gigabytes Default processor set: 118 tasks, 534 threads, 2 processors Load average: 4.61, Mach factor: 0.35 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Volumes/mdevel/ptxdist-vetero/platform-dockstar/sysroot-cross/bin PATH: /Volumes/mdevel/ptxdist-vetero/platform-dockstar/sysroot-cross/sbin PATH: /Volumes/mdevel/ptxdist-vetero/platform-dockstar/sysroot-host/bin PATH: /Volumes/mdevel/ptxdist-vetero/platform-dockstar/sysroot-host/sbin PATH: /opt/OSELAS.Toolchain-2011.11.0/arm-v5te-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/bin PATH: /opt/ptxdist/lib/ptxdist-2012.01.0/bin PATH: /opt/ptxdist/bin PATH: /opt/texlive/2011-new/bin/universal-darwin PATH: /Users/bwalle/bin PATH: /opt/local/bin PATH: /opt/local/sbin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /usr/local/bin PATH: /usr/X11/bin ## --- ## ## Core tests. ## ## --- ## configure:1905: checking for arm-v5te-linux-gnueabi-gcc configure:1932: result: arm-v5te-linux-gnueabi-gcc configure:2210: checking for C compiler version configure:2217: arm-v5te-linux-gnueabi-gcc --version 5 arm-v5te-linux-gnueabi-gcc (OSELAS.Toolchain-2011.11.0) 4.6.2 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2220: $? = 0 configure:2227: arm-v5te-linux-gnueabi-gcc -v 5 Using built-in specs. COLLECT_GCC=arm-v5te-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/opt/OSELAS.Toolchain-2011.11.0/arm-v5te-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/libexec/gcc/arm-v5te-linux-gnueabi/4.6.2/lto-wrapper Target: arm-v5te-linux-gnueabi Configured with: /Volumes/Devel/OSELAS.Toolchain-2011.11.0/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/configure --target=arm-v5te-linux-gnueabi --with-sysroot=/opt/OSELAS.Toolchain-2011.11.0/arm-v5te-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-arm-v5te-linux-gnueabi --disable-multilib --with-float=soft --with-fpu=vfp --with-cpu=arm926ej-s --enable-__cxa_atexit --disable-sjlj-exceptions --disable-nls --disable-decimal-float --disable-fixed-point --disable-win32-registry --enable-symvers=gnu --with-pkgversion=OSELAS.Toolchain-2011.11.0 --with-system-zlib --with-gmp=/Volumes/Devel/OSELAS.Toolchain-2011.11.0/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host --with-mpfr=/Volumes/Devel/OSELAS.Toolchain-2011.11.0/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host --prefix=/opt/OSELAS.Toolchain-2011.11.0/arm-v5te-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized --enable-languages=c,c++
[ptxdist] [PATCH] configure: add GNU install check
Signed-off-by: Andreas Bießmann andr...@biessmann.de --- Makefile.in |1 + configure.ac |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Makefile.in b/Makefile.in index c311632..5d31957 100644 --- a/Makefile.in +++ b/Makefile.in @@ -49,6 +49,7 @@ environment: @ln -sf @GNU_cp@ $(abs_srcdir)/bin/cp @ln -sf @GNU_rm@ $(abs_srcdir)/bin/rm @ln -sf @GNU_md5sum@ $(abs_srcdir)/bin/md5sum + @ln -sf @GNU_install@ $(abs_srcdir)/bin/install @echo done clean: diff --git a/configure.ac b/configure.ac index ed5a573..b359934 100644 --- a/configure.ac +++ b/configure.ac @@ -147,6 +147,7 @@ GNU_COREUTILS(mv) GNU_COREUTILS(cp) GNU_COREUTILS(rm) GNU_COREUTILS(md5sum) +GNU_COREUTILS(install) dnl Check for egrep AC_PROG_EGREP -- 1.7.8.3 -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH] configure: add GNU rmdir check
Signed-off-by: Andreas Bießmann andr...@biessmann.de --- Makefile.in |1 + configure.ac |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Makefile.in b/Makefile.in index 5d31957..1c7060b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -48,6 +48,7 @@ environment: @ln -sf @GNU_mv@ $(abs_srcdir)/bin/mv @ln -sf @GNU_cp@ $(abs_srcdir)/bin/cp @ln -sf @GNU_rm@ $(abs_srcdir)/bin/rm + @ln -sf @GNU_rmdir@ $(abs_srcdir)/bin/rmdir @ln -sf @GNU_md5sum@ $(abs_srcdir)/bin/md5sum @ln -sf @GNU_install@ $(abs_srcdir)/bin/install @echo done diff --git a/configure.ac b/configure.ac index b359934..af8fe82 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,7 @@ GNU_COREUTILS(chmod) GNU_COREUTILS(mv) GNU_COREUTILS(cp) GNU_COREUTILS(rm) +GNU_COREUTILS(rmdir) GNU_COREUTILS(md5sum) GNU_COREUTILS(install) -- 1.7.8.3 -- ptxdist mailing list ptxdist@pengutronix.de