Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with FW 15.1 Toolchain and Legato 21.05.0 (distributed with FW 15.1 Comps) #76

Open
upsampled opened this issue Apr 4, 2024 · 1 comment

Comments

@upsampled
Copy link

I am trying to compile with FW 15.1 Toolchain, Legato version 21.05.0 (also on the FW 15.1 component page) and getting the following error:

/var/wp77xx/yocto/legato/framework/daemons/linux/start/start.c: In function ‘RunCurrentSystem’:
/var/wp77xx/yocto/legato/framework/daemons/linux/start/start.c:1670:13: error: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Werror=unused-result]
 1670 |             system("echo start 10000000000 > /sys/power/wake_lock");
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

It is a pretty easy fix, but I do expect the toolchain to be able to compile the legato version in the same release. Right now I am doing the following:

# setup
## fix github sunsetting anon git protocol access in 2022
git config --global url."[email protected]:".insteadOf git://github.com/
## isntall the yocto toolchain
./poky-swi-ext-glibc-x86_64-meta-toolchain-swi-armv7a-neon-swi-mdm9x28-wp-toolchain-swi-SWI9X06Y_03.00.13.00.sh

then to compile i run

. /opt/swi/SWI9X06Y_03.00.13.00/environment-setup-armv7a-neon-poky-linux-gnueabi
python3 /opt/repo init -u git://github.com/legatoproject/manifest -m legato/releases/21.05.0.xml
python3 /opt/repo sync
make
@upsampled
Copy link
Author

upsampled commented Apr 4, 2024

Ok I have gotten this working by just using the Yocto Env:

tar xf Legato-Dist-Source-mdm9x06-SWI9X06Y_03.00.13.00.tar.bz2
cd ./yocto
repo init -u git://github.com/legatoproject/manifest -m legato/releases/21.05.0.xml
repo sync
make dev
cd ../legato
make
make wp77xx

I am keeping this ticket open to indicate you need to update your build instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant