-
Notifications
You must be signed in to change notification settings - Fork 93
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
build with >=gcc-7.1 failed #136
Comments
Are you mixing files build by different versions of compilers? |
Just for the introduction. I was using ctemplate with yocto build system (pyro branch). After upgrading to newer yocto system (thud), these errors have been showed. Pyro is using gcc-6.3.0 and Thud has new 8.2.0. So, I've just switched build system with new gcc, without ctemplate code change. My comparison is between mentioned buildsystems. |
Is this reproducible without Yocto, Pyro and Thud? |
I Have gcc-8.3.0 on Debian from scratch. Compilation was successful. So seems to, that is something related to yocto buildsystem. |
Nope |
After new testing, it's seems to be, that is relevant for cross-compiling, but not only for yocto. See error.log |
I'm no expert on automake, what would be required for cross-compiling and what could be wrong. |
After some testing, I have identified, that some symbols have been dropped from library. It sounds like, some of them are required.
Current list of required symbols:
[EDIT]:
Another question is, why are you removing some symbols from library? Probably when the toolchain is changed, you have to re-add new symbol. Isn't possible just remove this symbol polluting and keep linker do it yourself? |
Hi @OlafvdSpek ! Did you have some time for thinking about it? |
No, as I have no experience with cross-compiling. |
After switching to newer gcc, some errors popped up.
Looks like, that
.strtab
section is on different place.readelf -S
After comparing with working version (compiled with gcc 6.3.0) looks like,
.jcr
section is missing. After some googling, seems to be, that gcc support for Java is gone since version 7 gjc.The text was updated successfully, but these errors were encountered: