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

iOS support for OCaml #6986

Closed
vicuna opened this issue Sep 10, 2015 · 6 comments
Closed

iOS support for OCaml #6986

vicuna opened this issue Sep 10, 2015 · 6 comments

Comments

@vicuna
Copy link

vicuna commented Sep 10, 2015

Original bug ID: 6986
Reporter: gerd
Assigned to: @shindere
Status: assigned (set by @damiendoligez on 2017-03-01T10:36:08Z)
Resolution: open
Priority: normal
Severity: feature
Version: 4.02.3
Category: platform support (windows, cross-compilation, etc)
Monitored by: @diml @hcarty

Bug description

Creating this bug to have a place for discussing iOS support. So far, there is a PR:

#182

For recent OCaml versions, there are special per-release branches, e.g.
https://github.com/gerdstolpmann/ocaml/tree/gs-4.02.3+ios

Additional information

Largely, the PR just changes assembler conventions. There is one bigger change, though, because Apple doesn't use the EABI in the same way GNU does (on 32 bit). In particular, floats are passed via int register pairs and not via stack.

The PR now also changed to UAL mnemonics. This should work on GNU, too.

@vicuna
Copy link
Author

vicuna commented Nov 19, 2015

Comment author: markghayden

I had a problem building the 64-bit IOSSIM version. config/s.h is not being populated with values, I believe because the BSD socket calls are not detected. The resulting unix library generates Invalid_argument() exceptions on socket calls. Copying

config/cross-fixup-arm64-macosx-s.h

to

config/cross-fixup-amd64-macosx-s.h

and reconfiguring seems to fix the problem.

For some reason, this does not seem to be an issue in the 32-bit IOSSIM build.

@vicuna
Copy link
Author

vicuna commented Nov 20, 2015

Comment author: @xavierleroy

A quick update following discussions at the developers's meeting last Wednesday. We are very much interested in integrating this iOS port eventually, but it needs more work than we can allocate by the next major release (OCaml 4.03). Ideally, the integration should be done in 2016 as part of a more general work on cross-compilation support. Thanks for your patience.

@XVilka
Copy link
Contributor

XVilka commented Oct 31, 2019

Should be solved in #1084

@XVilka
Copy link
Contributor

XVilka commented Jun 22, 2020

See also #9699

@EduardoRFS
Copy link
Contributor

We can also close this

@nojb
Copy link
Contributor

nojb commented Jul 28, 2020

Fixed by #9699

@nojb nojb closed this as completed Jul 28, 2020
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

5 participants