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

issue with the installaion #145

Open
hpwit opened this issue Oct 19, 2021 · 6 comments
Open

issue with the installaion #145

hpwit opened this issue Oct 19, 2021 · 6 comments
Assignees

Comments

@hpwit
Copy link

hpwit commented Oct 19, 2021

installing on Mac OS X m1
i have this error
[1;31;49m[ToolMaker]^[[1;33;49m Building 2cdt...^[[0;39;49m
gcc -O3 -fsigned-char -DUNIX src/2cdt.c -c -o obj/2cdt.o
src/2cdt.c:188:19: warning: multiple unsequenced modifications to 'aux' [-Wunsequenced]
aux = (aux <<= 1) ^ kCRCpoly;
~ ^
src/2cdt.c:898:35: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
pTapeFilename = optarg;
^ ~~~~~~
src/2cdt.c:1000:25: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
pSourceFilename = argv[optind];
^ ~~~~~~~~~~~~
src/2cdt.c:1001:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
pDestFilename = argv[optind+1];
^ ~~~~~~~~~~~~~~
src/2cdt.c:1040:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (Host_LoadFile(pSourceFilename, &pData, &DataLength))
^~~~~~~~~~~~~~~
src/2cdt.c:99:32: note: passing argument to parameter 'Filename' here
BOOL Host_LoadFile(const char *Filename, unsigned char **pLocation, unsigned long *pLength)
^
src/2cdt.c:1137:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
int nLength = strlen(pTapeFilename);
^~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t strlen(const char *__s);
^
src/2cdt.c:1142:41: error: implicitly declaring library function 'toupper' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
TapeHeader[i] = toupper(pTapeFilename[i]);
^
src/2cdt.c:1142:41: note: include the header <ctype.h> or explicitly provide a declaration for 'toupper'
src/2cdt.c:1268:8: error: implicit declaration of function 'TZX_AppendFile' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
TZX_AppendFile(pTZXFile, pDestFilename);
^
6 warnings and 2 errors generated.
make[1]: *** [obj/2cdt.o] Error 1
make: *** [2cdt] Error 2

@atzurk
Copy link

atzurk commented Nov 22, 2021

Hi @hpwit ,
I've got the same 2 errors on my Intel (Core i7) Mac. Seems I fixed with some little edits in two files (in 2cdt tool folder). You can try the fixed version that is in my repo and, if it works for your machine too, we can suggest these changes via pull-request.
Regards.

@hpwit
Copy link
Author

hpwit commented Nov 23, 2021

Thank you !!! I will try this ASAP
Regards

@lronaldo
Copy link
Owner

Hi @hpwit and @atzurk

Did you try with CPCtelera 1.5 development branch? Does it work on Mac OSX M1?

As I don't have an M1 to test, it is quite interesting if you can tell me how it goes and how to fix potential problems for M1 and M2 users.

Thank you :)

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

hpwit commented Aug 26, 2023

Hello
I will try and let you know

@atzurk
Copy link

atzurk commented Sep 8, 2023

Hi everyone,
In my case, the development branch crashed when started building the tools... it seems that M1 is not fully supported by sdcc v3.6.8-r9946. I've tried using a higher version of sdcc, with the sources of v3.8.0 the setup processes ran correctly, and the examples were built without errors, and executed with rvm emulator.
I've just replaced the src folder in the sdcc directory with the new version, with a copy of the file configure_sdcc_for_z80.sh.
My system is an Apple Macbook Pro, with a M1 Max running Ventura OS (13.5.1). In case you need more information or some tests done, just let me know!

@profludic
Copy link

Hello @atzurk - now I am again having problems to compile cpctelera on macOS with silicon (although I did manage somehow with using more recent sdcc similar like you did)

Could you please share your source base so I could try to compile?

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

4 participants