Moving this over from the Google Group.
https://groups.google.com/a/lists.mender.io/forum/#!topic/mender/UXB9cR4G9sE
I am porting my mender integration onto the iWave iW-RainboW-G24M Arria10 SOC Module.
https://www.iwavesystems.com/arria-10-soc-som.html
The standard iWave Yocto build is based on the Angstrom release: angstrom-v2017.06-yocto2.3.
GCC version: linaro-5.2.
I have both the standard iWave u-boot & kernel building from Yocto.
I have both of these running on the module.
I seem to have integrated Mender into the u-boot and have this running on the iWave module.
However when I attempt to build the Mender kernel I’m getting errors with the mender do_install script:
| /home/gnewman/yocto/mender-iwg24m-release-bsp/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/mender/1.6.0-r0/temp/run.do_install.9926: line 125: -Wl,--hash-style=gnu: command not found_
| WARNING: /home/gnewman/yocto/mender-iwg24m-release-bsp/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/mender/1.6.0-r0/temp/run.do_install.9926:1 exit 127 from 'GOOS=$(eval $(${GO} env) && echo $GOOS)'_
| ERROR: Function failed: do_install (log file is located at /home/gnewman/yocto/mender-iwg24m-release-bsp/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/mender/1.6.0-r0/temp/log.do_install.9926)_**
ERROR: Task (/home/gnewman/yocto/mender-iwg24m-release-bsp/layers/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.6.0.bb:do_install) failed with exit code '1'_
NOTE: Tasks Summary: Attempted 2291 tasks of which 2280 didn't need to be rerun and 1 failed._
NOTE: Writing buildhistory_
Looking at the run.do_install.9926 file I see that the line previous line is an intall -d:
do_install() {_
install -d /home/gnewman/yocto/mender_yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/mender/1.5.0-r0/image//usr/bin_
GOOS=$(eval $(arm-poky-linux-gnueabi-go env) && echo $GOOS)_
...
When I check the directory
/home/gnewman/yocto/mender_yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/mender/1.5.0-r0/image//usr/bin
I can see that there is nothing in the dir.
Checking my succesful mender build from my Intel Arria10 board I see that there is a mender binary in this directory:
gnewman@server-1:~/yocto/mender_yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/mender/1.5.0-r0/image/usr/bin$ ls -als
total 7168_
4 drwxr-xr-x 2 gnewman gnewman 4096 Jan 30 09:04 ._
4 drwxr-xr-x 5 gnewman gnewman 4096 Jan 30 09:04 .._
7160 -rwxr-xr-x 1 gnewman gnewman 7330164 Jan 30 09:04 mender
Is this binary an output from do_compile?
I’m guessing that the lack of this binary what is causing my error?
If so, I do not get any previous build errors, what would prevent the binary from being created?
As always, any help would be much appreciated.
Regards,
Gary
Edit: @mirzak, prettify using pre-formated text for code-blocks. Change title to “Mender build issue” as this is related to the Mender binary and not kernel (which might be confused with Linux kernel)