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

Bootstrap compiler rebuild #43

Open
const-rs opened this issue Sep 8, 2016 · 2 comments
Open

Bootstrap compiler rebuild #43

const-rs opened this issue Sep 8, 2016 · 2 comments

Comments

@const-rs
Copy link
Contributor

const-rs commented Sep 8, 2016

I've rebuilt mosml compiler with cd src; make world; cd compiler; make promote; make clean; make promote, on two different systems: ALT Linux/AMD64, Debian/mipsel32. md5sums of src/mosmlcmp were different, which is really surprising. I have also 64-bit SPARC machine, which, unfortunately can't compile camlrunm yet (but it looks like I can fix it).

Do you know why md5 sums were different?

@const-rs
Copy link
Contributor Author

const-rs commented Sep 9, 2016

Found out that it is probably due to 32-bit arch. I recollected that I have an access to 32bit Fedora/i386 and tried to build MosML there. MD5 sums of mosmlcmp and mosmllnk are identical to ones of Mips32 "machine" (LinkIT microcontroller).

After first make (compiler/linker are built with old bootstrap compiler) md5 sums are:

f0658ec3ce2da6ddbd7f0fad1157addemosmlcmp
2189234d4f9bfc2aa0d7ea0b4d3f3765mosmllnk
08fc27ca58a573f3ed5b0dc409ddf2dfmosmllex

I'll run make clean; make world; make promote several times and report results here. ;-)

@const-rs
Copy link
Contributor Author

  1. These md5 sums are final - subsequent runs with new compiler do not change anything.
  2. Bootstrap compiler/linker/lexer should be built on 32-bit. If it is built on 64-bit system, camlrunm from 32-bit system can't run this compiler (seg. faults).
  3. If you accept - I can make PR with bootstrap compiler/linker/lexer built on 32-bit system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant