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

Build failing #1

Open
mweichert opened this issue Jun 20, 2019 · 2 comments
Open

Build failing #1

mweichert opened this issue Jun 20, 2019 · 2 comments

Comments

@mweichert
Copy link

Hi there! I'd love to get this working but can't get it to build:

** OCaml configuration completed successfully **

echo "/usr/local/lib/ocaml/stublibs" > ld.conf
echo "/usr/local/lib/ocaml" >> ld.conf
sed -n -e '/^  /s/ \([A-Z]\)/ \&\&lbl_\1/gp' \
	       -e '/^}/q' caml/instruct.h > caml/jumptbl.h
emcc  -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64   -DCAML_NAME_SPACE -Wall -Werror -c interp.c
In file included from interp.c:24:
./caml/fail.h:51:9: error: 'sigsetjmp' macro redefined [-Werror,-Wmacro-redefined]
#define sigsetjmp(buf,save) setjmp(buf)
        ^
/Users/mweichert/Projects/emsdk/fastcomp/emscripten/system/include/libc/setjmp.h:24:9: note: previous definition is here
#define sigsetjmp(buf, x) setjmp((buf))
        ^
1 error generated.
shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
make: *** [interp.o] Error 1
emcc  -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64   -DCAML_NAME_SPACE -Wall -Werror -c interp.c
In file included from interp.c:24:
./caml/fail.h:51:9: error: 'sigsetjmp' macro redefined [-Werror,-Wmacro-redefined]
#define sigsetjmp(buf,save) setjmp(buf)
        ^
/Users/mweichert/Projects/emsdk/fastcomp/emscripten/system/include/libc/setjmp.h:24:9: note: previous definition is here
#define sigsetjmp(buf, x) setjmp((buf))
@vincentdchan
Copy link

If you still have interest, maybe you can try my method: https://github.com/vincentdchan/ocaml

Article

@mweichert
Copy link
Author

Thanks @vincentdchan ! Thanks for putting an article together as well to introduce the effort.

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

2 participants