Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###### Scenario
- echo https://dl-cdn.alpinelinux.org/alpine/v3.17/main > /etc/apk/repositories
- echo https://dl-cdn.alpinelinux.org/alpine/v3.17/community >> /etc/apk/repositories
- apk update
- apk upgrade
- apk add cargo
- cargo new ehlo
- cd ehlo
- cargo run
- rustc --version # 1.64
- cargo --version # 1.64
- ############################
- Welcome to Alpine!
- You can install packages with: apk add <package>
- You may change this message by editing /etc/motd.
- localhost:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.17/main > /etc/apk/repositories
- localhost:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.17/community >> /etc/apk/repositories
- localhost:~# apk update
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86/APKINDEX.tar.gz
- v3.17.5-144-g9271183f7c5 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
- v3.17.5-145-g123509d97de [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
- OK: 17265 distinct packages available
- localhost:~# apk upgrade
- Upgrading critical system libraries and apk-tools:
- (1/7) Purging ssl_client (1.33.1-r6)
- (2/7) Installing libcrypto3 (3.0.12-r0)
- (3/7) Installing libssl3 (3.0.12-r0)
- (4/7) Upgrading apk-tools (2.12.7-r0 -> 2.12.10-r1)
- (5/7) Purging libretls (3.3.3p1-r2)
- (6/7) Purging libssl1.1 (1.1.1l-r0)
- (7/7) Purging libcrypto1.1 (1.1.1l-r0)
- Executing busybox-1.33.1-r6.trigger
- Continuing the upgrade transaction with new apk-tools:
- (1/11) Installing alpine-baselayout-data (3.4.0-r0)
- (2/11) Upgrading musl (1.2.2-r3 -> 1.2.3-r5)
- (3/11) Upgrading busybox (1.33.1-r6 -> 1.35.0-r29)
- Executing busybox-1.35.0-r29.post-upgrade
- (4/11) Installing busybox-binsh (1.35.0-r29)
- (5/11) Upgrading alpine-baselayout (3.2.0-r16 -> 3.4.0-r0)
- Executing alpine-baselayout-3.4.0-r0.pre-upgrade
- Executing alpine-baselayout-3.4.0-r0.post-upgrade
- (6/11) Upgrading alpine-keys (2.4-r0 -> 2.4-r1)
- (7/11) Upgrading ca-certificates-bundle (20191127-r5 -> 20230506-r0)
- (8/11) Installing ssl_client (1.35.0-r29)
- (9/11) Upgrading zlib (1.2.11-r3 -> 1.2.13-r0)
- (10/11) Upgrading scanelf (1.3.2-r0 -> 1.3.5-r1)
- (11/11) Upgrading musl-utils (1.2.2-r3 -> 1.2.3-r5)
- Executing busybox-1.35.0-r29.trigger
- OK: 7 MiB in 15 packages
- localhost:~# apk add cargo
- (1/23) Installing rust-stdlib (1.64.0-r2)
- (2/23) Installing libgcc (12.2.1_git20220924-r4)
- (3/23) Installing libstdc++ (12.2.1_git20220924-r4)
- (4/23) Installing binutils (2.39-r2)
- (5/23) Installing libgomp (12.2.1_git20220924-r4)
- (6/23) Installing libatomic (12.2.1_git20220924-r4)
- (7/23) Installing gmp (6.2.1-r2)
- (8/23) Installing isl25 (0.25-r1)
- (9/23) Installing mpfr4 (4.1.0-r0)
- (10/23) Installing mpc1 (1.2.1-r1)
- (11/23) Installing gcc (12.2.1_git20220924-r4)
- (12/23) Installing musl-dev (1.2.3-r5)
- (13/23) Installing libffi (3.4.4-r0)
- (14/23) Installing xz-libs (5.2.9-r0)
- (15/23) Installing libxml2 (2.10.4-r0)
- (16/23) Installing zstd-libs (1.5.5-r0)
- (17/23) Installing llvm15-libs (15.0.7-r0)
- (18/23) Installing rust (1.64.0-r2)
- (19/23) Installing ca-certificates (20230506-r0)
- (20/23) Installing brotli-libs (1.0.9-r9)
- (21/23) Installing nghttp2-libs (1.51.0-r2)
- (22/23) Installing libcurl (8.4.0-r0)
- (23/23) Installing cargo (1.64.0-r2)
- Executing busybox-1.35.0-r29.trigger
- Executing ca-certificates-20230506-r0.trigger
- OK: 924 MiB in 38 packages
- localhost:~#
- localhost:~# cargo new ehlo
- Created binary (application) `ehlo` package
- localhost:~# cd ehlo
- localhost:~/ehlo# cargo run
- Compiling ehlo v0.1.0 (/root/ehlo)
- error: could not compile `ehlo`
- Caused by:
- process didn't exit successfully: `rustc --crate-name ehlo --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=e5435835a3580f83 -C extra-filename=-e5435835a3580f83 --out-dir /root/ehlo/target/debug/deps -C incremental=/root/ehlo/target/debug/incremental -L dependency=/root/ehlo/target/debug/deps` (signal: 11, SIGSEGV: invalid memory reference)
- localhost:~/ehlo# rustc --version
- rustc 1.64.0
- localhost:~/ehlo# cargo --version
- cargo 1.64.0
Advertisement
Add Comment
Please, Sign In to add comment