From: Denys Dmytriyenko <denys@ti.com>
To: David Castelow <DCastelow@Airspan.com>
Cc: "meta-ti@yoctoproject.org" <meta-ti@yoctoproject.org>
Subject: Re: FW: Problem with TI SDK Build 05.
Date: Thu, 23 Aug 2018 13:28:43 -0400 [thread overview]
Message-ID: <20180823172843.GU29422@beryl> (raw)
In-Reply-To: <e63ca8ec3a0243d6ad9ea5ad6a1525f1@Airspan.com>
You have some setup issues. From config.log your Linaro GCC seems broken:
configure:3815: checking whether the C compiler works
configure:3837: arm-linux-gnueabihf-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard --sysroot=/home/dcastelow/sdk5/arago/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/recipe-sysroot -isystem/home/dcastelow/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/dcastelow/sdk5/arago/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0=/usr/src/debug/libtool-cross/2.4.6-r0 -fdebug-prefix-map=/home/dcastelow/sdk5/arago/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/dcastelow/sdk5/arago/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/recipe-sysroot= -isystem/home/dcastelow/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -L/home/dcastelow/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-rpath-link,/home/dcastelow/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu conftest.c >&5
/media/disk/users/dcastelow/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find ../../lib/libc.so.6
collect2: error: ld returned 1 exit status
[...]
configure:3884: error: in `/home/dcastelow/sdk5/arago/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/build':
configure:3886: error: C compiler cannot create executables
So, since your Linaro GCC cannot cross-compile a simple program, it fails at
the first dependency that uses it, which happens to be libtool-cross.
Please resolve your setup problems and everything will work w/o any
modifications to recipes. Thanks.
--
Denys
On Wed, Aug 22, 2018 at 03:33:57PM +0000, David Castelow wrote:
> Hi,
>
> I had an issue building the latest TI SDK for Sitara processors (05_00_00_15), and Kemal from TI suggested I post my findings here for comment.
>
> So the build I attempted was for
>
> $ MACHINE=am335x-evm bitbake arago-base-tisdk-image
>
> following instructions from
>
> http //software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview.html <http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview.html#id13>
>
> and using both Linux Mint 17.3 (trusty based) and Ubuntu Xenial (16.04) as host machines, giving essentially the same error.
>
> The problem appears in failure to build libtool-cross successfully.
>
> I have traced this back to something in the bitbake recipes/patches that modify the libtool configure script:
> See http://e2e.ti.com/support/arm/sitara_arm/f/791/p/718479/2660196#2660196 for the history.
>
> The build does succeed if I ensure HOST_SYS is defined:
> As I said in my last post to that thread,
> Compilation/build is successful if I edit
>
> arago/tisdk/sources/oe-core/meta/classes/nativesdk.bbclass
>
> -#HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
> +HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
>
> I think this is because there are libtool related .bb files and .patch files that reference either ${host_alias}-libtool or ${HOST_SYS}-libtool.
>
> If HOST_SYS is empty, then the executable would be called -libtool, and then the configure script fails to clean up as it attempts to execute
>
> rm -libtool
>
> which won't work as the file name starts with a - (were this to work, it would need to do the mv/rm of ./${file} rather than just of ${file}).
>
> I'm not sure if this is the correct solution to the problem, but it suggests the need to set HOST_SYS as part of the build instructions.
>
> Can you advise if this is correct?
>
> [cid:GLOMO2018_e6c86ab3-4fac-42ae-88d7-eab266a26da8.png] tfx
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
prev parent reply other threads:[~2018-08-23 17:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-22 15:33 FW: Problem with TI SDK Build 05 David Castelow
2018-08-23 17:28 ` Denys Dmytriyenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180823172843.GU29422@beryl \
--to=denys@ti.com \
--cc=DCastelow@Airspan.com \
--cc=meta-ti@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.