-
Notifications
You must be signed in to change notification settings - Fork 5
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
link error variable term used where not expected #2
Comments
repro'd on latest toolchain, and it happens only when using app_tools. |
To give more context to this:
|
Poking around a bit, the first symbol that's causing this issue is |
It seems like it would take some changes to the crt to get |
Thanks, I modified first.cc to avoid this linking error (with #ifndef USE_GMP_REPLACEMENTS since GMP is not used). However I still get thousends of errors at link time
|
That's strange, I'm able to compile it successfully. Do you have the debug map enabled in the makefile? If so, try turning that off and see if it still gives the same error. |
I'm unsure, but it seems not, I see OUTPUT_MAP = NO in app_tools/makefile. If you have a successfull compile, maybe the easiest is that you send me a working archive. |
I'm also able to build it successfully now (I'm running the latest toolchain and app_tools, maybe that's why?). However it's a bit too big for now: |
I have updated my linux version to the latest nightly update (https://github.com/CE-Programming/toolchain/releases), also updated app.src in app_tools, I still get all these errors. I'm using -Oz (not -Os). Can you describe the precise OS/version you are using? |
I've built it on my mac running the latest macOS but that doesn't matter anyway. I used -Oz too. Did you |
Still no luck.
ez80-lto seems outdated, where can I update it? |
ez80-lto/lto2 aren't actually needed or used. |
I also tried on windows, same error. |
Here's a tarball of my working compile: khicas.tar.gz |
Thanks, it now works! The issue was in the makefile where #include $(shell cedev-config --makefile) was not commented. |
While trying to link KhiCAS, I get the error below that I have no idea how to deal with (I did not write assembly code, therefore the FAQ does not apply "You probably have assembly code that was not placed in a linker section, see Assembly Constants").
Source code to reproduce: https://www-fourier.univ-grenoble-alpes.fr/~parisse/ti/khicas.tgz
Thanks for any hint!
The text was updated successfully, but these errors were encountered: