Skip to content

[wasmtime-py] Build wheels for python37 on linux#310

Merged
tschneidereit merged 2 commits intobytecodealliance:masterfrom
yurydelendik:add_py37
Aug 30, 2019
Merged

[wasmtime-py] Build wheels for python37 on linux#310
tschneidereit merged 2 commits intobytecodealliance:masterfrom
yurydelendik:add_py37

Conversation

@yurydelendik
Copy link
Contributor

No description provided.

Copy link
Member

@tschneidereit tschneidereit left a comment

Choose a reason for hiding this comment

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

I'm really surprised by how little time compiling Python takes! Seems acceptable for the time being, at least.

r=me with the two small nits addressed.

tar -zxvf OpenSSL_1_1_1c.tar.gz
cd openssl-OpenSSL_1_1_1c
./Configure shared zlib linux-x86_64
make
Copy link
Member

Choose a reason for hiding this comment

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

Can you change this to make -sj4 to speed it up? Using more cores obviously helps, but all the output turns out to slow things down, so -s also helps.

tar xzf Python-3.7.3.tgz
cd Python-3.7.3
./configure
make
Copy link
Member

Choose a reason for hiding this comment

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

Same here: -sj4

@tschneidereit
Copy link
Member

I pushed a commit with the changes I asked for above, which shaved off another ~3 minutes from the duration of this job.

@tschneidereit tschneidereit merged commit eced4dd into bytecodealliance:master Aug 30, 2019
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Fix the `cond_holds` macro in the `LE` case.

The original was transcribed from the documentation:


https://developer.arm.com/documentation/dui0801/l/Condition-Codes/Condition-code-suffixes-and-related-flags

The description of `GT` and `LE` is:

```
GT	Z clear, N and V the same	Signed >
LE	Z set, N and V differ	Signed <=
```

Unfortunately the meaning of comma changes here: AND in the first case,
OR in
the second. See:


https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/condition-codes-1-condition-flags-and-codes

The description here removes the ambiguity:

```
gt	Signed greater than.	(Z==0) && (N==V)
le	Signed less than or equal.	(Z==1) || (N!=V)
```

This bug was likely the cause of the problems in bytecodealliance#310.
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Code generator for float constant macros.

We only have a couple at the moment, but the fix for bytecodealliance#310 motivates
adding more cases that are delicate to get right.
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Fix the failing float to integer conversion test cases, and correct
specs that caused the prior version to verify:

* `cond_holds` macro was broken (fixed in bytecodealliance#314)
* The `min_int_as_fp` macros were incorrect for `i32::MIN` as `f64`
* The special-case for `f64` to `i32` was not specified in
  `fcvt_to_sint`

Fixes bytecodealliance#310
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Generator for the `{min,max}_fp_value` specs.

The spec is uglier, but it's easier to make sure the floating point bit
patterns match up with the corresponding Rust.

Updates bytecodealliance#310
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Run a subset of Cranelift and Wasmtime tests in CI to mitigate problems
such as bytecodealliance#310.

Fixes bytecodealliance#311
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.

2 participants