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

Can't compile on macOS on M1 processor #162

Open
profludic opened this issue Aug 26, 2022 · 5 comments
Open

Can't compile on macOS on M1 processor #162

profludic opened this issue Aug 26, 2022 · 5 comments
Assignees

Comments

@profludic
Copy link

Error:

*** BFD does not support target arm-apple-darwin21.6.0.
*** Look in bfd/config.bfd for supported targets.
make[4]: *** [configure-binutils] Error 1

Note:

I managed to compile it somehow by adding some of the changes from latest sdcc.

@lronaldo lronaldo self-assigned this Aug 26, 2023
@lronaldo
Copy link
Owner

Hi @profludic

Sorry for not answering earlier (didn't receive a notifcation).

Did you solve this issue? Can you share what you learnt while solving it? That would be very interesting :)

Thank you :)

@profludic
Copy link
Author

profludic commented Aug 29, 2023

Hello @lronaldo yes, I have solved it.

I forgot exactly what I did but in general it was solved by using latest sdcc and trying to make it compile - I think it is some kind of "Frankenstein" sdcc - mix between cpctelera version and newer version :)

Since I just wanted to make it work, it is likely that I made some mistake but - it works for me...

I would love to have this in official cpctelera release properly done!

So, here is the source I use which is modified development branch of cpctelera (not sure how old is it):

http://www.osmobit.com/sdcc.patched.zip

You can download it and compare to see all what is changed.

What I did after was:
cp -r sdcc.patched/* ./cpctelera/tools/sdcc-3.6.8-r9946

I hope this helps.

teopl

@lronaldo
Copy link
Owner

lronaldo commented Sep 2, 2023

Thank you very much for contributing your sources.

The problem for me is that I don't have a MacOS available computer, so I cannot test and know what are the exact changes required for MacOS.

In any case, I'm not completely sure if it is more advisable to just update CPCtelera to the new SDCC version and test if that version properly compiles on MacOS and the newest M1 and M2 ARM CPUs.

Be it as it might, thank you very much. I'm sure that your source can help many other people interested in compiling under MacOS :)

I will try first with the update strategy and then we will see what to do next. If you like, you may test next updated version once we publish it and suggest changes for MacOS :)

Thank you again for your contribution.

@profludic
Copy link
Author

Hello @lronaldo, I am glad I can help even a little since I love using cpctelera!

It could be that strategy of updating sdcc is the right way. For some reason I remember I did only partial update.

I would be happy to test new version!

teopl

@atzurk
Copy link

atzurk commented Sep 9, 2023

Hi there, I've used the sdcc version 3.8.0 with success in the setup.sh, in a M1 Max system. you can refer to issue #145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants