OpenELEC.tv icon indicating copy to clipboard operation
OpenELEC.tv copied to clipboard

Setting arm abi to soft or softfp - toolchain error

Open Stane1983 opened this issue 10 years ago • 9 comments

Setting target abi to soft or softfp on arm platform gives following error:

[path]/armv7a-openelec-linux-gnueabi-gcc: Command not found

arm gnueabi toolchain is installed on host (Ubuntu 14.04).

Any ideas?

Stane1983 avatar Jan 22 '15 16:01 Stane1983

Where do you change the ABI? OE builds its own toolchain for ARM, it shouldn't use the installed one.

codesnake avatar Jan 23 '15 02:01 codesnake

I tried install gnueabi toolchain hoping that will help, but didnt. I change abi in options. I'm trying to build OE for meson3 board with 2.6.34.15 kernel which needs to be softfp.

On Fri Jan 23 2015 at 3:55:09 AM Alex Deryskyba [email protected] wrote:

Where do you change the ABI? OE builds its own toolchain for ARM, it shouldn't use the installed one.

— Reply to this email directly or view it on GitHub https://github.com/codesnake/OpenELEC.tv/issues/40#issuecomment-71140192 .

Stane1983 avatar Jan 23 '15 02:01 Stane1983

Just set TARGET_FLOAT="softfp" in your project options. And then run

    ARCH=arm PROJECT={YOUR_PROJECT_NAME} DEVICE={YOUR_DEVICE_NAME}

For example for M8 it will be:

    ARCH=arm PROJECT=Amlogic DEVICE=M8 make

codesnake avatar Jan 23 '15 03:01 codesnake

That's problem, it doesn't work. It does not create gnueabi binaries in build..../toolchain/bin folder.

On Fri Jan 23 2015 at 4:05:26 AM Alex Deryskyba [email protected] wrote:

Just set TARGET_FLOAT="softfp" in your project options. And then run

ARCH=arm PROJECT={YOUR_PROJECT_NAME} DEVICE={YOUR_DEVICE_NAME}

For example for M8 it will be:

ARCH=arm PROJECT=Amlogic DEVICE=M8 make

— Reply to this email directly or view it on GitHub https://github.com/codesnake/OpenELEC.tv/issues/40#issuecomment-71140960 .

Stane1983 avatar Jan 23 '15 03:01 Stane1983

I use softfp in one of my projects without any problems. I just change the above mentioned variable and nothing more.

codesnake avatar Jan 23 '15 03:01 codesnake

Hm.... Thanx for your time, I'll investigate more. Seems I'm missing something.

On Fri Jan 23 2015 at 4:10:10 AM Alex Deryskyba [email protected] wrote:

I use softfp in one of my projects without any problems. I just change the above mentioned variable and nothing more.

— Reply to this email directly or view it on GitHub https://github.com/codesnake/OpenELEC.tv/issues/40#issuecomment-71141274 .

Stane1983 avatar Jan 23 '15 03:01 Stane1983

However, if I recall correctly there could be a problem when you switching to different ABI. Try to delete the .ccache-openelec directory in your home directory and rebuild.

codesnake avatar Jan 23 '15 03:01 codesnake

Thanx for tip, will try. Now I'm on something else, will get back to you with result. Good point, could be something cached somewhere because I had meson8 built before.

On Fri Jan 23 2015 at 4:13:09 AM Alex Deryskyba [email protected] wrote:

However, if I recall correctly there could be a problem when you switching to different ABI. Try to delete the .ccache-openelec directory in your home directory and rebuild.

— Reply to this email directly or view it on GitHub https://github.com/codesnake/OpenELEC.tv/issues/40#issuecomment-71141490 .

Stane1983 avatar Jan 23 '15 03:01 Stane1983

Just can't figure it out..... I'm starting to believe it's 'cause of to 2.6 kernel... same thing works on 3.10 kernel for aml m6/m8.

Error is:

scripts/kconfig/conf -o arch/arm/Kconfig

configuration written to .config

make[1]: Leaving directory '/home/stane/Work/openelec-tv/build.OpenELEC-AmlogicM3.atv102.arm-devel/linux-amlogic-m3' BUILD linux (host) make[1]: Entering directory '/home/stane/Work/openelec-tv/build.OpenELEC-AmlogicM3.atv102.arm-devel/linux-amlogic-m3' make[1]: /home/stane/Work/openelec-tv/build.OpenELEC-AmlogicM3.atv102.arm-devel/toolchain/bin/armv7a-openelec-linux-gnueabi-gcc: Command not found scripts/kconfig/conf -s arch/arm/Kconfig make[1]: /home/stane/Work/openelec-tv/build.OpenELEC-AmlogicM3.atv102.arm-devel/toolchain/bin/armv7a-openelec-linux-gnueabi-gcc: Command not found

On Fri Jan 23 2015 at 4:15:58 AM Stanislav Vlasic [email protected] wrote:

Thanx for tip, will try. Now I'm on something else, will get back to you with result. Good point, could be something cached somewhere because I had meson8 built before.

On Fri Jan 23 2015 at 4:13:09 AM Alex Deryskyba [email protected] wrote:

However, if I recall correctly there could be a problem when you switching to different ABI. Try to delete the .ccache-openelec directory in your home directory and rebuild.

— Reply to this email directly or view it on GitHub https://github.com/codesnake/OpenELEC.tv/issues/40#issuecomment-71141490 .

Stane1983 avatar Jan 24 '15 16:01 Stane1983