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

Native compilation of char.ml fails on RPi #6222

Closed
vicuna opened this issue Nov 3, 2013 · 4 comments
Closed

Native compilation of char.ml fails on RPi #6222

vicuna opened this issue Nov 3, 2013 · 4 comments

Comments

@vicuna
Copy link

vicuna commented Nov 3, 2013

Original bug ID: 6222
Reporter: gildor
Assigned to: meurer
Status: closed (set by @xavierleroy on 2015-12-11T18:24:20Z)
Resolution: fixed
Priority: normal
Severity: major
Platform: raspberry pi
OS: raspbian
OS Version: 7.0
Version: later
Category: standard library

Bug description

./Compflags char.cmx
/var/lib/jenkins/workspace/ocaml/label/raspberrypi/boot/ocamlrun /var/lib/jenkins/workspace/ocaml/label/raspberrypi/ocamlopt -warn-error A -nostdlib -g -c char.ml
/tmp/camlasmd0b3a7.s: Assembler messages:
/tmp/camlasmd0b3a7.s:262: Error: selected processor does not support ARM mode mls r6,r6,r12,r5' /tmp/camlasmd0b3a7.s:276: Error: selected processor does not support ARM mode mls r4,r4,r12,r3'
File "char.ml", line 1:
Error: Assembler error, input left in file /tmp/camlasmd0b3a7.s

Steps to reproduce

Try to rebuild ocaml from sources.

Additional information

See attached camlasmd0b3a7.s.

File attachments

@vicuna
Copy link
Author

vicuna commented Nov 3, 2013

Comment author: gildor

Latest changes integrated in this build.

#134 (3 nov. 2013 10:35:06)

[arm] r12 is destroyed for constants that are not a power of 2. — bmeurer / ViewSVN
[arm] Optimize integer division and modulus by constant. — bmeurer / ViewSVN
Compile multiplication by power of 2 constant to left shift. — bmeurer / ViewSVN

@vicuna
Copy link
Author

vicuna commented Nov 4, 2013

Comment author: meurer

Yep, MLS is ARMv6T2 only. I'll fix that.

@vicuna
Copy link
Author

vicuna commented Nov 4, 2013

Comment author: meurer

Fixed in trunk.

@vicuna
Copy link
Author

vicuna commented Nov 4, 2013

Comment author: gildor

FTR, fixed in jenkins.
http://deci.ovh.le-gall.net:8080/job/ocaml/

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