siemens / meta-iot2000

SIMATIC IOT2000 Yocto Board Support Package
Other
127 stars 85 forks source link

Building failed due to node red recipe's functions #147

Closed veronicapr closed 4 years ago

veronicapr commented 4 years ago

I have followed the instructions in the README.md file, however, when I run the "kas build" command, I get errors on some of five of the node red related tasks.

The errors occur in the following tasks:

I attached the error logs of the 5 failed tasks.

opcua node-red2 modbus mindconnect node-red1

How can I solve this?

Thanks in advance.

Best Regards, Veronica

jan-kiszka commented 4 years ago

Hmm, there must be something in the host system that triggers this. If I get this correctly, you are building natively on a Linux system (not inside a docker container), right? What is the host system, which Linux distro? Did you already try the kas-docker path as an alternative?

veronicapr commented 4 years ago

Yes, I am building on Ubuntu Xenial 16.04.6 LTS. I'm not sure what could be triggering this. I also tried to use de kas-docker path but I get the following error: standard_init_linux.go:211: exec user process caused "exec format error"

jan-kiszka commented 4 years ago

The kas-docker issue might be similar to https://stackoverflow.com/questions/57366007/standard-init-linux-go211-exec-user-process-caused-no-such-file-or-directory - was Windows involved at some stage of the checkout?

veronicapr commented 4 years ago

It is the same error, but not the same issue because I did the git checkout on ubuntu. I've checked and I have no "\r\n" in my .sh and .bash files.

jan-kiszka commented 4 years ago

OK, so already starting docker fails, or is that error later in the build? Does docker run -it --rm kasproject/kas:2.0 work?

veronicapr commented 4 years ago

No, I get the same error. standard_init_linux.go:211: exec user process caused "exec format error"

Could it be because I'm using a 32 bit ubuntu?

jan-kiszka commented 4 years ago

Uuh, yes. 32-bit is dead, and our build environment is 64-bit as well. In theory, a native build (outside docker) on a 32-bit system should work, but it is surely untested.

veronicapr commented 4 years ago

I tried in a 64 bit system and it worked. Thank you so much!