Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot build Rust packages that use cargo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
squeaktoy
n00b
n00b


Joined: 24 Apr 2024
Posts: 5

PostPosted: Wed May 01, 2024 3:40 pm    Post subject: Cannot build Rust packages that use cargo Reply with quote

Every Rust package using cargo won't compile.
Say for instance I try to compile ruffle. This is what happens in the output:
(full output available at https://bpa.st/raw/6FXA)

Code:

...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/ruffle-0_p20240422/work/ruffle-nightly-2024-04-22 ...
 * Configured with: --package=ruffle_desktop --package=ruffle_scanner --package=exporter
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/ruffle-0_p20240422/work/ruffle-nightly-2024-04-22 ...
 * cargo build --release --package=ruffle_desktop --package=ruffle_scanner --package=exporter
run_symlink: LD_PRELOAD is: 'libsandbox.so'
cargo: run_symlink.c:81: run_symlink: Assertion `env_get("LD_PRELOAD") == NULL' failed.
/var/tmp/portage/app-emulation/ruffle-0_p20240422/temp/environment: line 1621:    39 Aborted                 "${@}"
 * ERROR: app-emulation/ruffle-0_p20240422::gentoo failed (compile phase):
 *   cargo build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3050:  Called cargo_src_compile
 *   environment, line 1628:  Called die
 * The specific snippet of code:
 *       "${@}" || die "cargo build failed"
 *
 * If you need support, post the output of `emerge --info '=app-emulation/ruffle-0_p20240422::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/ruffle-0_p20240422::gentoo'`.
 * The complete build log is located at '/var/log/portage/app-emulation:ruffle-0_p20240422:20240501-152117.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/ruffle-0_p20240422/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/ruffle-0_p20240422/work/ruffle-nightly-2024-04-22'
 * S: '/var/tmp/portage/app-emulation/ruffle-0_p20240422/work/ruffle-nightly-2024-04-22'


Here's the output of 'emerge --info '=app-emulation/ruffle-0_p20240422::gentoo':

Code:

Portage 3.0.61 (python 3.11.9-final-0, default/linux/amd64/23.0/split-usr, gcc-13, glibc-2.38-r13, 6.6.28-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.28-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-glibc2.38
KiB Mem:    24544116 total,   4214956 free
KiB Swap:   33553400 total,  29137272 free
Timestamp of repository gentoo: Wed, 01 May 2024 03:30:00 +0000
Head commit of repository gentoo: 2912c636132d89133e19dd80ff9adf2a0f81d075
Timestamp of repository 4nykey: Mon, 29 Apr 2024 14:34:02 +0000
Head commit of repository 4nykey: 1557b5ea87ec63637a52b7d9917384a14eec2b22

Timestamp of repository ROKO__: Thu, 25 Apr 2024 20:48:24 +0000
Head commit of repository ROKO__: c2323cf9cd24009a600fe50890d8293067f5f223

Timestamp of repository audio-overlay: Tue, 23 Apr 2024 21:48:33 +0000
Head commit of repository audio-overlay: 2841d03e46372faefd3f3b62bee6bb5d098a19f7

Timestamp of repository booboo: Tue, 23 Apr 2024 21:48:28 +0000
Head commit of repository booboo: 5db0d0182f70bdd7eb5cc31efe2f328b2b4b0656

Timestamp of repository cova: Mon, 01 Apr 2024 09:53:05 +0000
Head commit of repository cova: ce8e70f745331dc5e7b362994fecff79ebad3372

Timestamp of repository edgets: Fri, 19 Apr 2024 23:18:39 +0000
Head commit of repository edgets: fec6ca866c8c7414ea51cbc208fcdd58e711ccab

Timestamp of repository guru: Tue, 30 Apr 2024 21:33:25 +0000
Head commit of repository guru: b3084d23130b887d95fe2dcd04ef9efa32ba1f52

Timestamp of repository java: Mon, 15 Apr 2024 08:33:27 +0000
Head commit of repository java: dd96207f20760accef6ef4f058dbf3c187964bc3

Timestamp of repository kde: Sun, 28 Apr 2024 12:18:26 +0000
Head commit of repository kde: 6da5cc509055c9914c13d0242d0131b67589d7c6

Head commit of repository librewolf: 9e354f7da7912ee22b87d047754067ec026e7604

Timestamp of repository menelkir: Fri, 19 Apr 2024 23:18:38 +0000
Head commit of repository menelkir: 55828a8ba45f0ea3d045b812aa369b876715c090

Timestamp of repository nest: Thu, 25 Apr 2024 20:48:24 +0000
Head commit of repository nest: f249d0fad179905b6a206efdd1d4341102ec3d61

Timestamp of repository palemoon: Tue, 23 Apr 2024 21:48:28 +0000
Head commit of repository palemoon: 95adb9de2e5957dbc5170114163f701e16f97fce

Timestamp of repository pentoo: Tue, 30 Apr 2024 11:48:18 +0000
Head commit of repository pentoo: 49186026f4865d6ccff16aa58c21ad3ccafb21f2

Timestamp of repository pf4public: Thu, 25 Apr 2024 15:33:32 +0000
Head commit of repository pf4public: 8728c58f53f0edac76946aa95763715de51aa9cd

Head commit of repository squeaktoy: 72c16dd995886f151a66a3f73062a6079821df6a

Timestamp of repository torbrowser: Fri, 19 Apr 2024 23:18:33 +0000
Head commit of repository torbrowser: 17ab251d5d60ac8173bd2dc3b0226589e032e6ad

Timestamp of repository xarblu-overlay: Mon, 29 Apr 2024 15:03:42 +0000
Head commit of repository xarblu-overlay: fac30ba99f496f84a79a468583487292e2a925a4

Timestamp of repository zugaina: Fri, 16 Jun 2023 08:32:15 +0000
Head commit of repository zugaina: a31fcec20b159a13ccd069d4e13b92d18bc0ffec

Timestamp of repository haskell: Tue, 30 Apr 2024 16:34:02 +0000
Head commit of repository haskell: fc1ad712406922addd075ed3bb611a95e9446528

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
ccache version 4.9.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:             1.77.1::gentoo
dev-util/ccache:           4.9.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             6.5.0-r4::gentoo, 9.4.0::gentoo, 11.4.1_p20240111::gentoo, 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

4nykey
    location: /var/db/repos/4nykey
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/4nykey.git
    masters: gentoo
    volatile: False

ROKO__
    location: /var/db/repos/ROKO__
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ROKO__.git
    masters: gentoo
    volatile: False

audio-overlay
    location: /var/db/repos/audio-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/audio-overlay.git
    masters: gentoo
    volatile: False

booboo
    location: /var/db/repos/booboo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/booboo.git
    masters: gentoo
    volatile: False

cova
    location: /var/db/repos/cova
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/cova.git
    masters: gentoo
    volatile: False

edgets
    location: /var/db/repos/edgets
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/edgets.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

java
    location: /var/db/repos/java
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/java.git
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

menelkir
    location: /var/db/repos/menelkir
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/menelkir.git
    masters: gentoo
    volatile: False

nest
    location: /var/db/repos/nest
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nest.git
    masters: gentoo
    volatile: False

palemoon
    location: /var/db/repos/palemoon
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/palemoon.git
    masters: gentoo
    volatile: False

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    volatile: False

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo
    volatile: False

squeaktoy
    location: /var/db/repos/squeaktoy
    sync-type: git
    sync-uri: https://git.sr.ht/~latex/overlay
    masters: gentoo
    volatile: False

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo
    volatile: False

xarblu-overlay
    location: /var/db/repos/xarblu-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/xarblu-overlay.git
    masters: gentoo
    volatile: False

zugaina
    location: /var/db/repos/zugaina
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/zugaina.git
    masters: gentoo
    volatile: False

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    priority: 50
    volatile: False

Binary Repositories:

gentoo-binpkg
    priority: 9999
    sync-uri: https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -g"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ rsync://mirror.leaseweb.com/gentoo/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
PYTHONPATH="/usr/local/lib/python3.9/site-packages"
RUSTFLAGS="-C target-cpu=native -C opt-level=3"
SHELL="/bin/fish"
USE="X accessibility acl aio alsa amd64 avif bittorrent bluetooth bzip2 cdda cet crypt cue curl dbus dist-kernel dnscrypt dssi dvd elogind fbcon ffmpeg flac fluidsynth gdbm gemini gif gme gopher gpm heif iconv id3tag ipv6 jack jpeg jpeg2k jpegxl ladspa lame lash lc3 libsamplerate libtirpc lv2 lvm matroska midi multilib ncurses nls notmuch nvenc ogg opencl opengl openmp openmpt opus osc pam pcre pipewire png postgres pulseaudio raw readline rtmp sasl sbc seccomp sftp shout sid split-usr srt ssl svg test-rust threads tiff truetype udev unicode upnp vaapi vdpau vorbis vpx vulkan wavpack wayland webp xattr xinerama zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en nl" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia nouveau amdgpu radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
squeaktoy
n00b
n00b


Joined: 24 Apr 2024
Posts: 5

PostPosted: Thu May 02, 2024 5:41 pm    Post subject: Reply with quote

I think I figured out the issue. It turns out that I had a symlink /usr/local/bin/cargo -> /usr/bin/firejail
The error I was having was caused by firejail: https://github.com/netblue30/firejail/blob/master/src/firejail/run_symlink.c#L79-L82
So remember to not firejail cargo on a system-wide level :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum