Skip to content

Change ino_t/off_t to 64-bits#8467

Merged
kripken merged 6 commits intoemscripten-core:incomingfrom
rianhunter:_64bitofft
Apr 24, 2019
Merged

Change ino_t/off_t to 64-bits#8467
kripken merged 6 commits intoemscripten-core:incomingfrom
rianhunter:_64bitofft

Conversation

@rianhunter
Copy link
Contributor

Related to #7649 (point 5) and subset of #7799

Not sure exactly how to change the Emscripten version number.

@rianhunter
Copy link
Contributor Author

@kripken Hmm, any idea how to force the "other" tests to use the wasm backend? On my dev machine is_wasm_backend() returns False, but it seems that it returns True on CircleCI

run(['-Oz'], 0, [], [], 54, 0, 1, 1) # noqa
else:
run([], 20, ['abort'], ['waka'], 22712, 20, 14, 27) # noqa
run([], 21, ['abort'], ['waka'], 22712, 22, 15, 30) # noqa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's very odd this would change, as the program doesn't use syscalls. do you know what's going on here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I thought that was odd too, let me look a bit more closely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra exports/imports are due to new dyncalls using 64bit ints.

@kripken
Copy link
Member

kripken commented Apr 22, 2019

To use the wasm backend, you need to use a build of llvm with it installed. One way is that on linux you can use emsdk install latest-upstream. Or you can build latest upstream llvm manually.

run(['-O2'], 15, [], ['waka'], 10183, 15, 14, 28) # noqa
run(['-O3'], 6, [], [], 2353, 9, 2, 15) # noqa; in -O3, -Os and -Oz we metadce
run(['-Os'], 6, [], [], 2310, 9, 2, 17) # noqa
run(['-Oz'], 6, [], [], 2272, 9, 2, 16) # noqa
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to do with this CL, but when changes break the metadce tests (which they often do) its quite hard to see whats changing. Perhaps we should generate an "out" file containing all of the imports and exports by name rather than just number of them?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In higher optimization levels those import names are minified, though, so it may not be feasible to have useful names for them.

@rianhunter
Copy link
Contributor Author

Just FYI this should be ready to go

@sbc100
Copy link
Collaborator

sbc100 commented Apr 24, 2019

lgtm (i'll re-run the failing chrome tests).

@rianhunter
Copy link
Contributor Author

@sbc100 note that I changed the version number but haven't changed them in the other project components. is that alright?

@sbc100
Copy link
Collaborator

sbc100 commented Apr 24, 2019

@sbc100 note that I changed the version number but haven't changed them in the other project components. is that alright?

I'm not sure I understand the question. What other components?

@kripken
Copy link
Member

kripken commented Apr 24, 2019

lgtm too, but we should update the changelog file as well, I'll do that after I merge.

By version number do you mean the emscripten version in the fastcomp and fastcomp-clang repos? We'll need to update them too, but I can do that right after I merge this PR.

@kripken kripken merged commit 4e4a794 into emscripten-core:incoming Apr 24, 2019
VirtualTim pushed a commit to VirtualTim/emscripten that referenced this pull request May 21, 2019
Related to emscripten-core#7649 (point 5) and subset of emscripten-core#7799

* Update python.bc

* Update output wasm sizes

* Update wasm backend tests
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
Related to emscripten-core#7649 (point 5) and subset of emscripten-core#7799

* Update python.bc

* Update output wasm sizes

* Update wasm backend tests
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

Successfully merging this pull request may close these issues.

3 participants