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

The -ffpu ocamlopt option does not actually work #6780

Closed
vicuna opened this issue Feb 12, 2015 · 5 comments
Closed

The -ffpu ocamlopt option does not actually work #6780

vicuna opened this issue Feb 12, 2015 · 5 comments
Labels
Milestone

Comments

@vicuna
Copy link

vicuna commented Feb 12, 2015

Original bug ID: 6780
Reporter: @whitequark
Status: closed (set by @xavierleroy on 2017-02-16T14:18:31Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: ARM
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)

Bug description

The following happens:

$ ~/.opam/4.02.1+32bit/arm-linux-androideabi/bin/ocamlopt -ffpu vfp3 -o power.native power.ml
/home/whitequark/.opam/4.02.1+32bit/arm-linux-androideabi/bin/ocamlopt: vfp3.
Usage: ocamlopt
[usage message]

@vicuna
Copy link
Author

vicuna commented Feb 12, 2015

Comment author: @whitequark

Oh, I just realized that this is how it reports an error in case of an invalid choice. That's an astoundingly bad error "message".

@vicuna
Copy link
Author

vicuna commented Feb 12, 2015

Comment author: @whitequark

Also, a wish: be able to set ABI (linux_eabi/linux_eabihf mainly) along with architecture and FPU type. Currently you can not switch to softfloat without recompiling the whole compiler, and vice versa.

@vicuna
Copy link
Author

vicuna commented Feb 19, 2015

Comment author: @damiendoligez

We definitely need better error messages for -farch and -ffpu.

For choosing the ABI from the command line, I don't know enough about ARM to tell whether it's easy to do.

@vicuna
Copy link
Author

vicuna commented Feb 20, 2015

Comment author: @whitequark

It does not significantly differ from choosing arch or cpu. Just needs some minor refactoring in arch.ml (I think)

@vicuna
Copy link
Author

vicuna commented Dec 6, 2015

Comment author: @xavierleroy

Error message improved, commit [trunk 9d78aa7].

Choosing the ABI on the command-line is currently impossible, because you would need different versions of the run-time system to be installed.

@vicuna vicuna closed this as completed Feb 16, 2017
@vicuna vicuna added this to the 4.03.0 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant