Comments (6)
Yep, sorry to bother, but your troubleshooting note about how to find the error was very helpful! I did not know about that output.
from num-integer.
The error seems to indicate that the i128
feature was either enabled or autodetected for num-integer
, but not for num-traits
, which seems weird. There are sometimes problems with autocfg
detection in cross-compilation, but that should be the same between num-integer
and num-traits
. I can build a hello-world in that container just fine with num-integer
as a dependency.
Can you share the output of this command?
cargo tree --format "{p} : {f}"
from num-integer.
@cuviper thanks for the response! Today, I was trying to get a small example of the issue going here https://github.com/JoshuaNitschke/rust-musl-builder_num-integer_example, but it builds as expected. Here is the cargo-tree output:
removed
from num-integer.
I guess you should add --target x86_64-unknown-linux-musl
to that tree command, in case the target changes any dependencies. Please see if that's any different.
Another thing to look for are the build script outputs from num-integer
and num-traits
. There should be output
and stderr
files in a path like ./target/x86_64-unknown-linux-musl/release/build/num-integer-35c680a05bc94443/
. The exact hash at the end of that path will vary depending on a lot of factors.
You can also build verbosely, cargo build -v -v ...
, and look for lines like:
[num-traits 0.2.14] cargo:rustc-cfg=has_i128
[num-integer 0.1.44] cargo:rustc-cfg=has_i128
Or there may be visible errors if it didn't detect i128 support.
from num-integer.
I reran with target and it was the same.
Interestingly, I have two folders: num_build_artifacts.zip
rust@9f69ab59e2b0:~/src$ ls ./target/x86_64-unknown-linux-musl/release/build/
num-integer-0694b7c89ce1bf38/
num-integer-35c680a05bc94443/
num-traits-0bb7be9c44b56e00/
num-traits-e0a4fa070967a9b6/
I think we might be getting somewhere:
error: could not copy "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-integer-35c680a05bc94443/out/probe0.probe0.990c8f4d-cgu.0.rcgu.ll" to "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-integer-35c680a05bc94443/out/probe0.ll": Operation not permitted (os error 1)
error: aborting due to previous error
error: could not copy "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-integer-35c680a05bc94443/out/probe1.probe1.84fcdf3f-cgu.0.rcgu.ll" to "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-integer-35c680a05bc94443/out/probe1.ll": Operation not permitted (os error 1)
error: aborting due to previous error
warning: autocfg could not probe for `std`
and
error: could not copy "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-traits-e0a4fa070967a9b6/out/probe0.probe0.990c8f4d-cgu.0.rcgu.ll" to "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-traits-e0a4fa070967a9b6/out/probe0.ll": Operation not permitted (os error 1)
error: aborting due to previous error
error: could not copy "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-traits-e0a4fa070967a9b6/out/probe1.probe1.84fcdf3f-cgu.0.rcgu.ll" to "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-traits-e0a4fa070967a9b6/out/probe1.ll": Operation not permitted (os error 1)
error: aborting due to previous error
warning: autocfg could not probe for `std`
error: could not copy "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-traits
-e0a4fa070967a9b6/out/probe2.probe2.c1d38c83-cgu.0.rcgu.ll" to "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/num-traits-e0a4fa070967a9b6/out/probe2.ll": Operation not permitted (os error 1)
error: aborting due to previous error
I don't understand the could not copy errors.
I will try building verbosely now.
from num-integer.
I think i have resolved this by entering the container and chmoding the target folder... will confirm later today
from num-integer.
Related Issues (18)
- Contribute is_power_of_ten? HOT 5
- Increment and decrement methods for Integer trait? HOT 5
- test_lcm_overflow fails on sparc64 HOT 2
- Target asmjs-unknown-emscripten fails to compile HOT 1
- Implement more number theory functions HOT 9
- Why hiding field of ExtendedGcd? HOT 3
- Make std a feature, using `#![no_std]` otherwise
- Integer::extended_gcd should not permit unsigned value. HOT 5
- Integer::divides is not marked deprecated.
- `Integer::next_multiple_of` unexpectedly fails on `MIN` and `-1`
- is_multiple behaviour with 0 HOT 1
- `Integer::gcd()` returns negative value HOT 1
- `binomial(n, k)` for `n < 0`
- Add checked_* for div and mod functions HOT 2
- Wrapper types? HOT 5
- ERROR: python3-cryptography-37.0.4-r0 do_unpack: Bitbake Fetcher Error: UnpackError HOT 3
- `NonZero*`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from num-integer.