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

mosml2.10.1 - Caml Light won't run on this architecture. #61

Closed
fandersengalois opened this issue Jun 10, 2021 · 4 comments
Closed

mosml2.10.1 - Caml Light won't run on this architecture. #61

fandersengalois opened this issue Jun 10, 2021 · 4 comments

Comments

@fandersengalois
Copy link

When trying to install mosml (2.00, 2.01, or 2.10.1) macOS Big Sur 11.2.2 from sources, I get:

make world

cd config; /Applications/Xcode.app/Contents/Developer/usr/bin/make all

sh autoconf gcc

Checking the sizes of integers and pointers...

This architecture seems to be neither 32 bits nor 64 bits.

Caml Light won't run on this architecture.

make[1]: *** [runtime] Error 2

make: *** [world] Error 2

@sestoft
Copy link
Collaborator

sestoft commented Jun 11, 2021 via email

@fandersengalois
Copy link
Author

fandersengalois commented Jun 11, 2021 via email

@kfl
Copy link
Owner

kfl commented Jul 1, 2021

I have just pushed a small change that makes it possible to build (for me at least) mosml on MacOS Catalina and Ubuntu 20.04 (LTS).

I've had this in a private branch that I forgot to push.

@fandersengalois
Copy link
Author

I just downloaded the pushed version and successfully built and executed the tests under MacOS Big Sur 11.2.2

The only warning was the below. So I am up running with the latest!

Thanks,
Flemming

1 warning generated.
gcc -I/sw/include -bundle -flat_namespace -undefined suppress -o libmsocket.so msocket.o
gcc -Dunix -O3 -fPIC -I../../runtime -c -o munix.o munix.c
munix.c:143:12: warning: shifting a negative signed value is undefined
[-Wshift-negative-value]
return Val_long(-1);
^~~~~~~~~~~~
../../runtime/mlvalues.h:63:37: note: expanded from macro 'Val_long'
#define Val_long(x) (((long)(x) << 1) + 1)
~~~~~~~~~ ^
1 warning generated.
gcc -I/sw/include -bundle -flat_namespace -undefined suppress -o libmunix.so munix.o -lc

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

No branches or pull requests

3 participants