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

Comments

Projects
None yet
1 participant
@vicuna
Copy link

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

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 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
You can’t perform that action at this time.