From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mxout32.expurgate.net ([194.37.255.32]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YRGbJ-0005US-VV for ptxdist@pengutronix.de; Fri, 27 Feb 2015 09:48:51 +0100 Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.80.1) (envelope-from ) id 1YRGbE-0007n1-6M for ptxdist@pengutronix.de; Fri, 27 Feb 2015 09:48:44 +0100 Received: from [149.211.153.214] (helo=srv1732.hp.thyssenkrupp.com) by relay.expurgate.net with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80.1) (envelope-from ) id 1YRGbD-0004Ya-QY for ptxdist@pengutronix.de; Fri, 27 Feb 2015 09:48:43 +0100 Received: from localhost (localhost [127.0.0.1]) by srv1732.hp.thyssenkrupp.com (Postfix) with ESMTP id 67E25220AD for ; Fri, 27 Feb 2015 09:48:43 +0100 (CET) Received: from mail.tkecene.com (unknown [10.84.160.137]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by srv1732.hp.thyssenkrupp.com (Postfix) with ESMTPS id 53DD6220A0 for ; Fri, 27 Feb 2015 09:48:43 +0100 (CET) From: =?iso-8859-1?Q?R=FCdiger=2C_Christoph?= Date: Fri, 27 Feb 2015 08:48:42 +0000 Message-ID: <1E9AED858BEB204B9DE4F807C7ED0EF617CE151F@EMSRVWIN2934.apps.edc.thyssenkrupp.com> References: <1E9AED858BEB204B9DE4F807C7ED0EF617CDD326@EMSRVWIN2934.apps.edc.thyssenkrupp.com> <20150222093847.GC1532@pengutronix.de> <54EA2B60.6040506@rwth-aachen.de> <5B134AD7-726E-41EB-BA1A-C323E2AB9D52@iki.fi> <20150223083307.GD1532@pengutronix.de> <1E9AED858BEB204B9DE4F807C7ED0EF617CDD4BB@EMSRVWIN2934.apps.edc.thyssenkrupp.com> <20150223112407.GE1532@pengutronix.de> <1E9AED858BEB204B9DE4F807C7ED0EF617CDDB37@EMSRVWIN2934.apps.edc.thyssenkrupp.com>, <20150226122349.GA14430@pengutronix.de> In-Reply-To: <20150226122349.GA14430@pengutronix.de> Content-Language: de-DE MIME-Version: 1.0 Subject: Re: [ptxdist] (no subject) Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" Am 26.02.15 um 13:23 schrieb Michael Olbrich:> On Tue, Feb 24, 2015 at 09:2= 8:29PM +0000, R=FCdiger, Christoph wrote: >> Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at 0= 9:13:56AM +0000, R=FCdiger, Christoph wrote: >>>>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: >>>>>> >>>>>>> On 22 Feb 2015, at 21:17, Christoph R=FCdiger >>>> aachen.de> wrote: >>>>>>> Am 22.02.15 um 10:38 schrieb Michael Olbrich: >>>>>>> >>>>>>>> I don't know why the bash in Max OS X cannot handle this. Maybe it= 's >>>>> too >>>>>>>> old? What version are you using? >>>>>>> Your assumption is right. My OS X is 10.9.5 (Mavericks) and way new= er >>>>>>> than the Ubuntu 10.04.4 which is the oldest system where I use ptxd= ist >>>>>>> for my day-to-day work. That's why I didn't took the version numbers >>>>>>> into account. But I was wrong: >>>>>>> >>>>>>> Ubuntu 10.04.4: bash 4.1.5(1)-release >>>>>>> OS X 10.9.5: bash 3.2.53(1)-release >>>>>> >>>>>> As you might have guessed, Bash 3.2 was the last version to be relea= sed >>>>> under >>>>>> the GPLv2 license, and Apple will not distribute any software covere= d by >>>>>> GPLv3. >>>>> >>>>> So you'll be stuck with the old version. Let's see if we can stay >>>>> compatible. >>>> >>>> You need to install a lot of GNU tools from exteranl sources (homebrew, >>>> MacPorts, Fink), so I do not see any problem in including bash into th= is >>>> list. My bigger problem is now, that there is no GNU linker available = on OS >>>> X, so you need to use the LLVM linker which does not understand the >>>> -Wl,--as-needed flag. I need to dig deeper to understand since when GN= U gcc >>>> set this flag by default and what the drawback is, if we remove this f= lag >>>> from the PTXDIST_HOST_LDFLAGS. >>> >>> Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist should >>> only add it for target packages if PTXCONF_TARGET_LINKER_AS_NEEDED is s= et. >> >> You are right. I just cross-read an article and got the information wron= g. >> According to the GNU ld man page [1], --as-needed affects the DT_NEEDED = flag >> only of dynamic libraries given _after_ --as-needed. As ptxdist sets it = as >> the very last flag (see below), it is a useless flag. > = > Which ptxdist version are you using? For this project, I need to stick with ptxdist-2013.12.0 for building OSELA= S toolchain 2013.12.2. > At least for target packages we set it > in the right place. For me it looks like this: > [...] > wrapper: /usr/bin/icecc arm-v7a-linux-gnueabihf-gcc -Wl,--as-needed -isy= stem [...]/platform-arm-hf/sysroot-target/include -isystem [...]/platform-a= rm-hf/sysroot-target/usr/include -O3 -D_LARGEFILE64_SOURCE=3D1 -DHAVE_HIDD= EN -o minigzip minigzip.o -L. libz.a -L[...]/platform-arm-hf/sysroot-target= /lib -L[...]/platform-arm-hf/sysroot-target/usr/lib -Wl,-rpath-link -Wl,[..= .]/platform-arm-hf/sysroot-target/lib -Wl,-rpath-link -Wl,[...]/platform-ar= m-hf/sysroot-target/usr/lib > [...] > = > The wrapper script adds it before the other options. > = >>> If you start ptxdist with '-v' then all calls to the compiler and linker >>> are logged. Look for lines starting with 'wrapper:' in the logfile. >> >> >> wrapper: gcc -isystem /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/= platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-ke= rnel-3.12-sanitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR -DNO= _vsnprintf -o minigzip minigzip.o -L. libz.a -L/Volumes/BlueBox/src/OSELAS.= Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2= .18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/Vo= lumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gn= ueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-ho= st/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/= with/chrpath/when/using/dev/packages -Wl,--as-needed > = > I'm not sure where the "-Wl,--as-needed" is comming from. The only thing > that is added at the end of the command-line is PTXDIST_HOST_LDFLAGS and > that's just the -L / -Wl,-rpath stuff. I've performed a simple grep and stripped out the wrapper and exec lines fr= om the logfiles. This grep searched in the installed ptxdist, the ptxdist s= ources and the OSELAS sources, as I'm not quite sure, if it is coming from = ptxdist or OSELAS toolchain project. But I tend to blame ptxdist ;-) Remember: The compilation of host-zlib within the OSELAS toolchain project = fails. $ grep -r -- '-Wl,--as-needed' * lib/ptxdist-2013.12.0/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlop= en-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later= with lib/ptxdist-2013.12.0/patches/eggdbus-0.6/0003-update-autotoolization.patch= : LDFLAGS=3D"-Wl,--as-needed $LDFLAGS" lib/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch= : LDFLAGS+=3D -Wl,--as-needed lib/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch= : LDFLAGS+=3D -Wl,--as-needed src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/binutils-2.2= 4/ld/testsuite/ld-plugin/lto.exp: "-flto -fuse-linker-plugin -Wl,--as-nee= ded" "-flto" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/binutils-2.2= 4/ld/testsuite/ld-plugin/lto.exp: "-O2 -flto -fuse-linker-plugin -Wl,--as= -needed tmpdir/pr13201.o -lm" "" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/gcc-linaro-4= .8-2013.11/libgfortran/acinclude.m4: dnl Check whether -Wl,--as-needed i= s supported src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/gcc-linaro-4= .8-2013.11/libgfortran/acinclude.m4: LDFLAGS=3D"$LDFLAGS -Wl,--as-need= ed -lm -Wl,--no-as-needed" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/gcc-linaro-4= .8-2013.11/libgfortran/configure: LDFLAGS=3D"$LDFLAGS -Wl,--as-needed = -lm -Wl,--no-as-needed" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/= .pc/0100-add-install-lib-all-target.patch/Makerules: -Wl,--as-needed $(bu= ild-module-objlist) -Wl,--no-as-needed \ src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/= Makeconfig:as-needed :=3D -Wl,--as-needed src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/= Makeconfig:libgcc_eh :=3D -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-= needed src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.= 8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/= Makerules: -Wl,--as-needed $(build-module-objlist) -Wl,--no-as-needed \ src/OSELAS.Toolchain-2013.12.2/rules/pre/toolchain.make:PTXDIST_HOST_LDFLAG= S +=3D -Wl,--as-needed src/a/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.p= atch:Without this building with -Wl,--as-needed fails later with src/a/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS=3D"-= Wl,--as-needed $LDFLAGS" src/a/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+=3D -= Wl,--as-needed src/a/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+=3D -= Wl,--as-needed src/b/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.p= atch:Without this building with -Wl,--as-needed fails later with src/b/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS=3D"-= Wl,--as-needed $LDFLAGS" src/b/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+=3D -= Wl,--as-needed src/b/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+=3D -= Wl,--as-needed src/ptxdist-2013.12.0/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlop= en-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later= with src/ptxdist-2013.12.0/patches/eggdbus-0.6/0003-update-autotoolization.patch= : LDFLAGS=3D"-Wl,--as-needed $LDFLAGS" src/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch= : LDFLAGS+=3D -Wl,--as-needed src/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch= : LDFLAGS+=3D -Wl,--as-needed src/ptxdist-2013.12.0.orig/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl= -dlopen-dlclose-etc.patch:Without this building with -Wl,--as-needed fails = later with src/ptxdist-2013.12.0.orig/patches/eggdbus-0.6/0003-update-autotoolization.= patch: LDFLAGS=3D"-Wl,--as-needed $LDFLAGS" src/ptxdist-2013.12.0.orig/patches/lshw-B.02.14/0001-fix-cross-compilation.= patch: LDFLAGS+=3D -Wl,--as-needed src/ptxdist-2013.12.0.orig/patches/lshw-B.02.14/0001-fix-cross-compilation.= patch: LDFLAGS+=3D -Wl,--as-needed >> And here is the missing BASH_VERSINFO of Apple's bash: >> $ set | grep BASH_VERSINFO >> BASH_VERSINFO=3D([0]=3D"3" [1]=3D"2" [2]=3D"53" [3]=3D"1" [4]=3D"release= " [5]=3D"x86_64-apple-darwin13") > = > So we could check for the version. Regards, Christoph -- = ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Stra=DFe 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany = Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- = ptxdist mailing list ptxdist@pengutronix.de