sypwex

iSH 1.3.2(494) cargo\rust with Alpine 3.17 error

Oct 31st, 2023 (edited)
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.09 KB | Software | 0 0
  1. ###### Scenario
  2. echo https://dl-cdn.alpinelinux.org/alpine/v3.17/main > /etc/apk/repositories
  3. echo https://dl-cdn.alpinelinux.org/alpine/v3.17/community >> /etc/apk/repositories
  4. apk update
  5. apk upgrade
  6. apk add cargo
  7.  
  8. cargo new ehlo
  9. cd ehlo
  10. cargo run
  11.  
  12. rustc --version # 1.64
  13. cargo --version # 1.64
  14. ############################
  15.  
  16.  
  17. Welcome to Alpine!
  18.  
  19. You can install packages with: apk add <package>
  20.  
  21. You may change this message by editing /etc/motd.
  22.  
  23. localhost:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.17/main > /etc/apk/repositories
  24. localhost:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.17/community >> /etc/apk/repositories
  25. localhost:~# apk update
  26. fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86/APKINDEX.tar.gz
  27. fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86/APKINDEX.tar.gz
  28. v3.17.5-144-g9271183f7c5 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
  29. v3.17.5-145-g123509d97de [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
  30. OK: 17265 distinct packages available
  31. localhost:~# apk upgrade
  32. Upgrading critical system libraries and apk-tools:
  33. (1/7) Purging ssl_client (1.33.1-r6)
  34. (2/7) Installing libcrypto3 (3.0.12-r0)
  35. (3/7) Installing libssl3 (3.0.12-r0)
  36. (4/7) Upgrading apk-tools (2.12.7-r0 -> 2.12.10-r1)
  37. (5/7) Purging libretls (3.3.3p1-r2)
  38. (6/7) Purging libssl1.1 (1.1.1l-r0)
  39. (7/7) Purging libcrypto1.1 (1.1.1l-r0)
  40. Executing busybox-1.33.1-r6.trigger
  41. Continuing the upgrade transaction with new apk-tools:
  42. (1/11) Installing alpine-baselayout-data (3.4.0-r0)
  43. (2/11) Upgrading musl (1.2.2-r3 -> 1.2.3-r5)
  44. (3/11) Upgrading busybox (1.33.1-r6 -> 1.35.0-r29)
  45. Executing busybox-1.35.0-r29.post-upgrade
  46. (4/11) Installing busybox-binsh (1.35.0-r29)
  47. (5/11) Upgrading alpine-baselayout (3.2.0-r16 -> 3.4.0-r0)
  48. Executing alpine-baselayout-3.4.0-r0.pre-upgrade
  49. Executing alpine-baselayout-3.4.0-r0.post-upgrade
  50. (6/11) Upgrading alpine-keys (2.4-r0 -> 2.4-r1)
  51. (7/11) Upgrading ca-certificates-bundle (20191127-r5 -> 20230506-r0)
  52. (8/11) Installing ssl_client (1.35.0-r29)
  53. (9/11) Upgrading zlib (1.2.11-r3 -> 1.2.13-r0)
  54. (10/11) Upgrading scanelf (1.3.2-r0 -> 1.3.5-r1)
  55. (11/11) Upgrading musl-utils (1.2.2-r3 -> 1.2.3-r5)
  56. Executing busybox-1.35.0-r29.trigger
  57. OK: 7 MiB in 15 packages
  58. localhost:~# apk add cargo
  59. (1/23) Installing rust-stdlib (1.64.0-r2)
  60. (2/23) Installing libgcc (12.2.1_git20220924-r4)
  61. (3/23) Installing libstdc++ (12.2.1_git20220924-r4)
  62. (4/23) Installing binutils (2.39-r2)
  63. (5/23) Installing libgomp (12.2.1_git20220924-r4)
  64. (6/23) Installing libatomic (12.2.1_git20220924-r4)
  65. (7/23) Installing gmp (6.2.1-r2)
  66. (8/23) Installing isl25 (0.25-r1)
  67. (9/23) Installing mpfr4 (4.1.0-r0)
  68. (10/23) Installing mpc1 (1.2.1-r1)
  69. (11/23) Installing gcc (12.2.1_git20220924-r4)
  70. (12/23) Installing musl-dev (1.2.3-r5)
  71. (13/23) Installing libffi (3.4.4-r0)
  72. (14/23) Installing xz-libs (5.2.9-r0)
  73. (15/23) Installing libxml2 (2.10.4-r0)
  74. (16/23) Installing zstd-libs (1.5.5-r0)
  75. (17/23) Installing llvm15-libs (15.0.7-r0)
  76. (18/23) Installing rust (1.64.0-r2)
  77. (19/23) Installing ca-certificates (20230506-r0)
  78. (20/23) Installing brotli-libs (1.0.9-r9)
  79. (21/23) Installing nghttp2-libs (1.51.0-r2)
  80. (22/23) Installing libcurl (8.4.0-r0)
  81. (23/23) Installing cargo (1.64.0-r2)
  82. Executing busybox-1.35.0-r29.trigger
  83. Executing ca-certificates-20230506-r0.trigger
  84. OK: 924 MiB in 38 packages
  85. localhost:~#
  86. localhost:~# cargo new ehlo
  87. Created binary (application) `ehlo` package
  88. localhost:~# cd ehlo
  89. localhost:~/ehlo# cargo run
  90. Compiling ehlo v0.1.0 (/root/ehlo)
  91. error: could not compile `ehlo`
  92.  
  93. Caused by:
  94.   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)
  95. localhost:~/ehlo# rustc --version
  96. rustc 1.64.0
  97. localhost:~/ehlo# cargo --version
  98. cargo 1.64.0
Advertisement
Add Comment
Please, Sign In to add comment