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

The compiling problem #49

Closed
somebody27 opened this issue Dec 19, 2021 · 9 comments
Closed

The compiling problem #49

somebody27 opened this issue Dec 19, 2021 · 9 comments

Comments

@somebody27
Copy link

I followed the steps to run the code, but it didn't work well as follows:
image
This is the first time I use mros2 and Toppers, hope to get some help

@takasehideki
Copy link
Member

takasehideki commented Dec 20, 2021

@somebody27 thank you so much for trying our repository!!
Could you send the whole log of running make app=echoreply_uint16?

cd mros2-asp3-f767zi/workspace
make clean
make app=echoreply_uint16 2>&1 | tee make.log

We cannot immediately find out the cause of this error message, but we may be able to get hints from other part of log messages.

@takasehideki
Copy link
Member

And one more question, is this message printed in othe app builds? (e.g., make app=echoreply_string)

@somebody27
Copy link
Author

Yes, all the other app builds have the same error.

@somebody27
Copy link
Author

make.log
This is the corresponding log file

@somebody27
Copy link
Author

I think that's because of the undefined functions CRE_CYC...as I don't know where it is defined.

@takasehideki
Copy link
Member

@somebody27 thanks for sharing the build log.
I doubt the issue is with the version of ruby. Here is the version in my environment.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal
$ ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]

Which is the version do you use?

@takasehideki
Copy link
Member

NOTE: CRE_CYC is the API that statically generate the cyclic handler in TOPPERS/ASP3 kernel (like xTimerCreate in FreeRTOS).
TOPPERS has a policy of statically generating kernel resources, such as tasks, cyclic handlers, semaphoe, and so on. These are defined in the .cfg file with uppercase APIs and are generated by the configurator written in Ruby at the build step.

@somebody27
Copy link
Author

@takasehideki Hello, thank you for your advice.

  • I checked and I have the same ubuntu and ruby version with you, but my arm-none-eabi-gcc version are higher, then I changed gcc version to 7.3.1. It works~~
  • I noticed the gcc version at first because I read your "Envorinmental setup" part, but I thought it wouldn't affect the compiling, so I ignored it.
  • Thank you again

@takasehideki
Copy link
Member

@somebody27 Thanks again! I'm happy you can now enjoy mros2 world! Please feel free to let us know if you have any issues or requests in the future.

We understand that it is desirable to work with the default gcc version that can be installed with apt on Ubuntu. It was different from your log, but I have confirmed that this repo cannot be built in this environment. So I created a new issue #50, and decided to close this issue.

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

2 participants