Hi All,
Been trying to cross compile an application for the Legato and it appears that the version of GCC delivered with Dev Studio (DS) is missing some functionality.
I’ve found the following:
[ul][li]select() is not defined anywhere - appears to be missing from a header file?[/li]
[li]the header files sys/shm.h and sys/ipc.h are missing from the include directory - so Shared Memory and some IPC functionality is not available[/li]
[li]the version of pthread.h is somewhat broken and missing some declarations.[/li][/ul]
The code I’m cross compiling for the Legato is already cross compiled on MOXA ARMv4 and Raspberry Pi ARM targets (as well as X32 and x64 intel) and I don’t have these issues. My code (compiled with a Makefile using the Yocto GCC) compiles and links but segfaults when executed - which is why I was trying with DS so I could use gdb to debug what is happening.
I need some assistance:
[ul][li]Why are these headers missing from DS?[/li]
[li]Copying the missing headers from the Yocto gcc install doesn’t seem to help. Is there an update of DS with these missing headers available.[/li][/ul]
Or does the Legato not support multithreading and shared memory?
Yes, I’m pushing the Legato hard … but it’s nothing that I can’t already do on a $40 Raspberry Pi.
Looking forward to sorting this out.
ciao, Dave