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

Cannot compile ocaml on cygwin #4726

Closed
vicuna opened this issue Feb 24, 2009 · 3 comments
Closed

Cannot compile ocaml on cygwin #4726

vicuna opened this issue Feb 24, 2009 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Feb 24, 2009

Original bug ID: 4726
Reporter: smartmobili
Status: closed (set by @damiendoligez on 2010-04-20T15:30:59Z)
Resolution: unable to duplicate
Priority: normal
Severity: block
Version: 3.11.0
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: db @alainfrisch

Bug description

When trying to compile(make world) ocaml from cygwin get lots of undefined references :

reference to _caml_saved_code' /c/DOCUME~1/Vincent/LOCALS~1/Temp/ccG1xTQm.o:interp.c:(.text+0x1e23): undefined reference to _caml_extern_sp'
/c/DOCUME1/Vincent/LOCALS1/Temp/ccG1xTQm.o:interp.c:(.text+0x1e2f): undefined reference to _caml_debugger' /c/DOCUME~1/Vincent/LOCALS~1/Temp/ccG1xTQm.o:interp.c:(.text+0x1e3a): undefined reference to _caml_start_code'
/c/DOCUME1/Vincent/LOCALS1/Temp/ccG1xTQm.o:interp.c:(.text+0x1e46): undefined reference to _caml_saved_code' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to _WinMain@16'
collect2: ld returned 1 exit status
make[2]: *** [interp.o] Error 1
make[2]: Leaving directory /home/Vincent/projects/ocaml-3.11.0/byterun' make[1]: *** [coldstart] Error 2 make[1]: Leaving directory /home/Vincent/projects/ocaml-3.11.0'
make: *** [world] Error 2

Additional information

Reproduces on cygwin-1.5 and upcoming cygwin-1.7.

File attachments

@vicuna
Copy link
Author

vicuna commented Apr 6, 2009

Comment author: db

Compiles OK with cygwin for me. Please post the output of "./configure" and "cygcheck -s".

@vicuna
Copy link
Author

vicuna commented Apr 18, 2010

Comment author: @xavierleroy

The "make world" log is strange: it looks like gcc tried to link interp.o even though it was called with -c. No one else reported this problem. Anything new about this PR? Otherwise I'll close it as not reproducible.

@vicuna
Copy link
Author

vicuna commented Apr 20, 2010

Comment author: @damiendoligez

This PR has been unconfirmed for one year, and I have no problem compiling 3.11.2 on Cygwin.
I'm closing it.

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

1 participant