From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 7DA977022A for ; Mon, 14 Jul 2014 19:51:52 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.5) with ESMTP id s6EJpsf3002769 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 14 Jul 2014 12:51:54 -0700 (PDT) Received: from Marks-MacBook-Pro.local (172.25.36.227) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.169.1; Mon, 14 Jul 2014 12:51:53 -0700 Message-ID: <53C434D9.7000704@windriver.com> Date: Mon, 14 Jul 2014 14:51:53 -0500 From: Mark Hatle Organization: Wind River Systems User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: References: <53C00B20.7060204@mlbassoc.com> In-Reply-To: <53C00B20.7060204@mlbassoc.com> Subject: Re: rpm-native build error X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 19:51:54 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 7/11/14, 11:04 AM, Gary Thomas wrote: > I'm getting a build error on rpm-native on my venerable Fedora-13 > based builder (which I am loathe to update/replace). This probably > happened with the update to 5.4.14 but I didn't notice until now > as I was away on holiday. Here are the details: Latest rpm uses C++ to link a few components. (It doesn't use the C++ type library though!) So I'm a bit confused by it trying to link libstdc++.so.6. I don't think I have a F-13 machine anymore, I replaced mine finally a couple of months ago. The only thing I can suggest is to look at the makefile and see about linking (and compiling) the components with gcc instead of g++. It -might- be a simple patch the makefile. --Mark > | /usr/bin/ld: rpm.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3' > | /usr/bin/ld: note: '__gxx_personality_v0@@CXXABI_1.3' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line > | /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation > | collect2: ld returned 1 exit status > | make[2]: *** [rpm] Error 1 > | make[2]: *** Waiting for unfinished jobs.... > | /usr/bin/ld: rpmbuild.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3' > | /usr/bin/ld: note: '__gxx_personality_v0@@CXXABI_1.3' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line > | /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation > | collect2: ld returned 1 exit status > | make[2]: *** [rpmbuild] Error 1 > | make[2]: Leaving directory `/home/local/imx53_2014-07-12/tmp/work/i686-linux/rpm-native/5.4.14-r0/build' > | make[1]: *** [all-recursive] Error 1 > | make[1]: Leaving directory `/home/local/imx53_2014-07-12/tmp/work/i686-linux/rpm-native/5.4.14-r0/build' > | make: *** [all] Error 2 > | ERROR: oe_runmake failed > | WARNING: /home/local/imx53_2014-07-12/tmp/work/i686-linux/rpm-native/5.4.14-r0/temp/run.do_compile.18609:1 exit 1 from > | exit 1 > | ERROR: Function failed: do_compile (log file is located at /home/local/imx53_2014-07-12/tmp/work/i686-linux/rpm-native/5.4.14-r0/temp/log.do_compile.18609) > ERROR: Task 382 (virtual:native:/home/local/poky-cutting-edge/meta/recipes-devtools/rpm/rpm_5.4.14.bb, do_compile) failed with exit code '1' > > My configuration is: > BB_VERSION = "1.23.1" > BUILD_SYS = "i686-linux" > NATIVELSBSTRING = "Fedora-13" > TARGET_SYS = "arm-amltd-linux-gnueabi" > MACHINE = "imx53qsb" > DISTRO = "amltd" > DISTRO_VERSION = "1.6+snapshot-20140711" > TUNE_FEATURES = "arm armv7a vfp neon" > TARGET_FPU = "vfp-neon" > meta = "master:1cb9f7b00b5ede62a9546c39d798c876775b08c0" > meta-oe-local = "master:7dd439b185ccb0de3bb8311122d79e13e8fc2fef" > meta-amltd = "master:0b6506b9505e8274110f1a011372c215b517f947" > meta-imx6 = "master:fbfbc3ced45619c9f27c0f0694289b97ae935e73" > meta-fsl-arm = "master:3941fe0fda4ac9ef372699160133c92ebf4df4e8" > meta-fsl-arm-extra = "master:456c27085a70bb1385a4c2e28ba80ac74d6f533e" >