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

Run-time error on the docker container built with s390x/ubuntu #138

Closed
harrypgh12 opened this issue Sep 5, 2020 · 0 comments
Closed

Run-time error on the docker container built with s390x/ubuntu #138

harrypgh12 opened this issue Sep 5, 2020 · 0 comments
Labels

Comments

@harrypgh12
Copy link

Hi,

I have built cFS v6.8 on my host computer with ubuntu18.04 and was able to run it communicating with Cosmos.

Also I was able to build a docker container for cFS v6.8 with s390x/ubuntu (IBM zSeries Based Linux, big endian CPU), but I have an error when I build cFS in the docker container and run it.

root@hkim:~/cfs/build/exe/cpu1# ./core-cpu1
CFE_PSP: Default Reset SubType = 1
CFE_PSP: Default CPU ID = 1
CFE_PSP: Default Spacecraft ID = 43
CFE_PSP: Default CPU Name: cpu1
OS_Posix_TableMutex_Init():220:Error: pthread_mutex_init failed: Operation not supported
OS_API_Init():116:OS_API_Impl_Init(0x1) failed to initialize: -1
OS_API_Init():195:Warning: Microsecs per sec value of 0 does not equal 1000000 (MicroSecPerTick: 0 TicksPerSecond: 0)
CFE_PSP: OS_API_Init() failure
Aborted (core dumped)

The error occurs in osal/src/os/posix/src/os-impl-common.c.
OSAL: Development Build: 5.0.0+dev247

But if I build the docker container by changing to i686/ubuntu or i386/ubuntu (little endian CPU) in the same Dockerfile, I have no run-time errors and can run cFS with problems. I wonder if anyone had the same problem with s390x and found a way to fix this error.

If you know another big endian CPU that I can build a docker container with, please let me know.

Thank you!

Harry Kim

@astrogeco astrogeco added the bug label Jan 27, 2021
chillfig pushed a commit to chillfig/cFS that referenced this issue Mar 17, 2022
chillfig pushed a commit to chillfig/cFS that referenced this issue Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants