From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 28 Aug 2013 14:07:50 +0200 Subject: [Buildroot] Analysis of build failures In-Reply-To: References: <20130828063005.74A7952C1BE@lolut.humanoidz.org> <20130828090812.43a7f849@skate> Message-ID: <20130828140750.198573de@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Markos Chandras, On Wed, 28 Aug 2013 12:45:58 +0100, Markos Chandras wrote: > Hi Thomas, > > On 28 August 2013 08:08, Thomas Petazzoni > wrote: > > > >> mips64el | directfb-1.6.3 | NOK | http://autobuild.buildroot.net/results/fab819eee4002a9c392c48c1ebaca5c5b6555567/ > > > > (cd .libs/libdirectfb_dummy.a.tmp && /home/test/test/2/output/host/usr/bin/mips64el-unknown-linux-gnu-ar x ../../.libs/libdirectfb_dummy.a) > > /home/test/test/2/output/host/usr/bin/mips64el-unknown-linux-gnu-ld -o libdirectfb_dummy.o -r .libs/libdirectfb_dummy.a.tmp/*.o > > /home/test/test/2/output/host/usr/bin/mips64el-unknown-linux-gnu-ld: .libs/libdirectfb_dummy.a.tmp/dummy.o: ABI is incompatible with that of the selected emulation > > /home/test/test/2/output/host/usr/bin/mips64el-unknown-linux-gnu-ld: failed to merge target specific data of file .libs/libdirectfb_dummy.a.tmp/dummy.o > > /home/test/test/2/output/host/usr/bin/mips64el-unknown-linux-gnu-ld: Attempt to do relocatable link with elf64-tradlittlemips input and elf32-ntradlittlemips output > > /home/test/test/2/output/host/usr/bin/mips64el-unknown-linux-gnu-ld: final link failed: File in wrong format > > > > Still the same problem of mixing MIPS ABIs, because DirectFB is calling > > "ld" directly and not "gcc" to do the link. > > > > I had proposed a solution in > > http://lists.busybox.net/pipermail/buildroot/2013-June/073399.html and > > http://lists.busybox.net/pipermail/buildroot/2013-June/073400.html, but > > Markos Chandras said that the upstream package should rather be fixed > > to use gcc instead of ld for linking. So I guess we should fix DirectFB here. > > I will work on this and fix it properly. I will also submit a patch upstream. Excellent, thanks! Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com