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

Build failure on Linux Systems - PSP34 Contract #340

Closed
jaypopat opened this issue Nov 8, 2024 · 1 comment
Closed

Build failure on Linux Systems - PSP34 Contract #340

jaypopat opened this issue Nov 8, 2024 · 1 comment

Comments

@jaypopat
Copy link

jaypopat commented Nov 8, 2024

Description

When attempting to build the project using pop build --release, a linking error occurs. This issue is consistent across different linux environments, including a fresh Ubuntu Docker container and an ARM Raspberry Pi.

Tried to pop build --release on a fresh ubuntu docker container as well as an ARM raspberry pi - both resulted in the same error

error: linking with cc failed: exit status: 1

followed by

error: could not compile metadata-gen (bin "metadata-gen") due to 1 previous error
Error: command ["cargo", "run", "--color=always", "--package", "metadata-gen", "--manifest-path=/tmp/cargo-contract_2wvhxA/Cargo.toml", "--target-dir", "/home/jay/nftee/target/ink", "--release"] exited with code 101

This issue occurs on both x86_64 and ARM architectures.

My "rustup show":

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-2024-02-16-x86_64-unknown-linux-gnu
nightly-2024-02-17-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
1.75-x86_64-unknown-linux-gnu
1.76-x86_64-unknown-linux-gnu
1.77-x86_64-unknown-linux-gnu
1.78-x86_64-unknown-linux-gnu
1.79-x86_64-unknown-linux-gnu

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.84.0-nightly (854980293 2024-11-06)

Steps to Reproduce (on Linux)

  1. Run pop new contract and select the PSP34 template
  2. Navigate to the created project directory
  3. Run pop build --release
@AlexD10S
Copy link
Collaborator

Thanks for reporting issues @jaypopat
The issue was solved here #329 so upgrading pop-cli to the latest version v0.5.0 will work

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

2 participants