Trouble compiling Advent4 Any Ideas? #29
-
Hello! I just finished my picocomputer build! Thank you for this awsome project! I also set up VSCode and the scaffolding. I successfuly compiled an uploaded "Hello World" and even ehBasic works just fine! But if i want to build advent4, i got a wired error during linking. Here the output of VSCode:
I can not find anything about this error: I am working on an UpToDate LinuxMint 21.2 All tools a fresh installed I hope someone could help me a bit. Thanks! Electrix6502 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I don't know what the exact cause of this is but it looks like there is a discrepancy between the version of cc65 you are using and what the sdk is expecting. If I look in the cc65 repo in github at the asminc/errno.inc file (https://github.com/cc65/cc65/blob/ce3bcadd24d3af05dc30f542722f6efb66382e82/asminc/errno.inc#L4) I can see the symbol matches what your error says, that is with 3 underscores (___osmaperrno). But if you look in the sdk (https://github.com/picocomputer/rp6502-sdk/blob/634c60c3b981a1a083a05b38e11868ae7ab5154e/src/oserror.s) the symbol actually only has 2 underscores (__osmaperrno). In my local copy of cc65 on a mac the file /usr/local/Cellar/cc65/2.19/share/cc65/asminc/errno.inc matches the sdk with only 2 underscores (__osmaperrno). I'm not positive that this is the cause but maybe you are using a newer version of cc65? I've only tested building on a mac using the cc65 version installed by homebrew and on ubuntu (in WSL2) using the version installed with apt (under 22.04). On my Mac this is the version response
|
Beta Was this translation helpful? Give feedback.
-
Hello! Thanks for the fast reply! cc65 -V is a minor version newer. but normally installed via apt-get |
Beta Was this translation helpful? Give feedback.
-
It hadn't been updated to the new SDK which has a fix for some recent CC65 changes. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! |
Beta Was this translation helpful? Give feedback.
It hadn't been updated to the new SDK which has a fix for some recent CC65 changes.