Code Monkey home page Code Monkey logo

Comments (6)

JoshuaNitschke avatar JoshuaNitschke commented on August 22, 2024 1

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.

cuviper avatar cuviper commented on August 22, 2024

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.

JoshuaNitschke avatar JoshuaNitschke commented on August 22, 2024

@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.

cuviper avatar cuviper commented on August 22, 2024

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.

JoshuaNitschke avatar JoshuaNitschke commented on August 22, 2024

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.

JoshuaNitschke avatar JoshuaNitschke commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.