Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is the ebuild for dev-lang/rust doing this?
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
leyvi
Guru
Guru


Joined: 08 Sep 2023
Posts: 413

PostPosted: Sun Jun 08, 2025 7:25 pm    Post subject: Why is the ebuild for dev-lang/rust doing this? Reply with quote

ebuild:
 538   │     if use wasm; then
 539   │         wasm_target="wasm32-unknown-unknown"
 540   │         export CFLAGS_${wasm_target//-/_}="$(filter-flags '-mcpu*' '-march*' '-mtune*'; echo "$CFLAGS")"
 541   │         cat <<- _EOF_ >> "${S}"/config.toml
 542   │             [target.wasm32-unknown-unknown]
 543   │             linker = "$(usex system-llvm lld rust-lld)"
 544   │             # wasm target does not have profiler_builtins https://bugs.gentoo.org/848483
 545   │             profiler = false
 546   │         _EOF_
 547   │     fi
This is part of the ebuild for dev-lang/rust. On my machine, it causes the build to fail, since the only command on my system that Rust will accept as a linker for wasm is wasm-ld. I imagine that I've misconfigured something, but what?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2379

PostPosted: Mon Jun 09, 2025 7:01 am    Post subject: Reply with quote

It would help enormously to have the full build.log, emerge --info, and details of what your system/environment are. You're not new -- you know this!

As for why it does it, I don't know if it's even a problem yet -- the point there is to say "we definitely need lld in some form, not e.g. bfd/mold if using that to build Rust", but with how lld works, I would've thought that "lld" or "rust-lld" would be fine because it would pass down the needed target. It's not impossible that it's obsolete or things have changed, but without information, I don't see how we can move forward here.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4072

PostPosted: Mon Jun 09, 2025 8:49 am    Post subject: Reply with quote

Side note:
dev-lang/rust[wasm] fails to build as
Code:
# The following warnings were emitted during compilation:
# warning: [email protected]: clang: error: unsupported argument '-mbranches-within-32B-boundaries' to option '-Wa,'
despite gcc build configuration here.
Seems a hardcoded clang call, with CFLAGS from /etc/portage/make.conf
Workaround is to inhibit using /etc/portage/package.env

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23542

PostPosted: Mon Jun 09, 2025 12:07 pm    Post subject: Reply with quote

CaptainBlood wrote:
Side note:
dev-lang/rust[wasm] fails to build as
Although build failures are worth examining, I think your report is not related to OP's issue with the linker command name. Your report deserves its own thread.
Back to top
View user's profile Send private message
leyvi
Guru
Guru


Joined: 08 Sep 2023
Posts: 413

PostPosted: Mon Jun 09, 2025 3:31 pm    Post subject: Reply with quote

Here is the full build log, but most of it's irrelevant; here are the interesting parts:
Part where config.toml is generated:
 186   │ [target.wasm32-unknown-unknown]
 187   │ linker = "lld"
 188   │ # wasm target does not have profiler_builtins https://bugs.gentoo.org/848483
 189   │ profiler = false
Resulting error:
237348   │   error: linker flavor `gnu-lld-cc` is incompatible with the current target
237349   │     |
237350   │     = note: compatible flavors are: wasm-lld, wasm-lld-cc, gcc, wasm-ld
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23542

PostPosted: Tue Jun 10, 2025 12:06 am    Post subject: Reply with quote

For those following the side note, CaptainBlood created dev-lang/rust[wasm] hardcoded calls to clang @build for the hardcoded clang call. Discussion of that issue will continue there, leaving this thread for leyvi's problem.
Back to top
View user's profile Send private message
leyvi
Guru
Guru


Joined: 08 Sep 2023
Posts: 413

PostPosted: Fri Jun 13, 2025 12:32 pm    Post subject: Reply with quote

I'd be happy to try anything; I'd really like to update dev-lang/rust...
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3059

PostPosted: Fri Jun 13, 2025 1:01 pm    Post subject: Reply with quote

Quote:
- - wasm : Build support for the wasm32-unknown-unknown target


That means nothing to me. Does it mean something to you? If so what? If no, just disable the wasm use flag.

Best Regards,
Georgi
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2379

PostPosted: Fri Jun 13, 2025 1:41 pm    Post subject: Reply with quote

leyvi wrote:
I'd be happy to try anything; I'd really like to update dev-lang/rust...


How about answering the questions I asked?
Back to top
View user's profile Send private message
leyvi
Guru
Guru


Joined: 08 Sep 2023
Posts: 413

PostPosted: Fri Jun 13, 2025 3:14 pm    Post subject: Reply with quote

sam_ wrote:
leyvi wrote:
I'd be happy to try anything; I'd really like to update dev-lang/rust...


How about answering the questions I asked?
Right, sorry I forgot to post emerge --info and the environment file, I'll send it tomorrow.

(Also: please excuse my absent-mindedness, I've been running in and out of a bunker for that last day or so.)
Back to top
View user's profile Send private message
leyvi
Guru
Guru


Joined: 08 Sep 2023
Posts: 413

PostPosted: Sat Jun 14, 2025 7:16 pm    Post subject: Reply with quote

Environtment file: https://0x0.st/86-M.txt.
emerge --info dev-lang/rust:
Portage 3.0.68 (python 3.13.4-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-14, glibc-2.41-r2, 6.15.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.15.0-gentoo-x86_64-AMD_Ryzen_9_7900X_12-Core_Processor-with-glibc2.41
KiB Mem:    64749344 total,    497364 free
KiB Swap:   82313208 total,  82311888 free
Timestamp of repository gentoo: Fri, 13 Jun 2025 12:45:00 +0000
Head commit of repository gentoo: 486769aeea05cbcf96180a76a64108d46f65802f
Timestamp of repository guru: Thu, 12 Jun 2025 08:21:48 +0000
Head commit of repository guru: 0d64dddc524dd371bd50bdd3dba28955013b2e97

Timestamp of repository kde: Wed, 11 Jun 2025 23:07:20 +0000
Head commit of repository kde: 2c5faf31e542389b1e288b26ecdf940fa04045b3

Timestamp of repository librewolf: Fri, 13 Jun 2025 06:22:19 +0000
Head commit of repository librewolf: f524aeaa42e25d061b12e0a662f8856587d652c2

Timestamp of repository pentoo: Wed, 11 Jun 2025 01:51:47 +0000
Head commit of repository pentoo: 0b5f812d05f3b80e2b0e1d655632e7ddcd22b9b8

Timestamp of repository steam-overlay: Mon, 09 Jun 2025 20:54:13 +0000
Head commit of repository steam-overlay: 5031b12ea9f956f65a056c00d6ada0d35e99b316

Timestamp of repository waffle-builds: Mon, 09 Jun 2025 20:54:20 +0000
Head commit of repository waffle-builds: db0741f1afb84f85f5b183566f3d7483828883fb

Timestamp of repository wayland-desktop: Wed, 04 Jun 2025 02:27:19 +0000
Head commit of repository wayland-desktop: 68f4bf52d160d4f4721e71ba14de1bf5c5968e97

Timestamp of repository x11: Wed, 04 Jun 2025 02:27:08 +0000
Head commit of repository x11: 81b14c8769d73db5fca3bdca7b4d0f4f23ab1a88

sh bash 5.2_p37-r3
ld GNU ld (Gentoo 2.44 p4) 2.44.0
ccache version 4.11.3 [enabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37-r3::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo, 1.18::gentoo
dev-build/cmake:           4.0.2-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.11.13::gentoo, 3.12.11::gentoo, 3.13.3_p1-r100::gentoo, 3.13.4::gentoo, 3.14.0_beta2_p1::gentoo
dev-lang/rust:             1.84.1-r1::gentoo, 1.85.1::gentoo
dev-lang/rust-bin:         1.86.0-r1::gentoo, 1.87.0::gentoo
dev-util/ccache:           4.11.3::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.6::gentoo
llvm-core/lld:             17.0.6::gentoo, 19.1.7::gentoo, 20.1.6::gentoo
llvm-core/llvm:            17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.6::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.62.3::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20250301::gentoo, 15.1.0::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.15::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r2::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-extra-opts:
    sync-rsync-verify-jobs: 12
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.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://github.com/gentoo-mirror/librewolf.git
    masters: gentoo
    volatile: False

my-ebuilds
    location: /var/db/repos/my-ebuilds
    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

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

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

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

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64-v3

Installed sets: @esteam
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
AR="llvm-ar"
AS="llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=znver4 -mtune=znver4 -O3 -pipe -flto=full"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/teamspeak3-server/ts3server.ini /etc/teamspeak3-server/ts3server_mariadb.ini /etc/teamspeak3-server/tsdns_settings.ini /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/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /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"
CPPFLAGS="-march=znver4 -mtune=znver4 -O3 -pipe -flto=full"
CXX="clang++"
CXXFLAGS="-march=znver4 -mtune=znver4 -O3 -pipe -flto=full"
DISTDIR="/mnt/Bulk-Storage/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask -j1 -l12.0 --backtrack=500 --keep-going=y --with-bdeps=y --complete-graph=y --columns"
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="-march=znver4 -mtune=znver4 -O3 -pipe -flto=full"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache clean-logs config-protect-if-modified distlocks ebuild-locks export-pms-vars fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver4 -mtune=znver4 -O3 -pipe -flto=full"
GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/     https://gentoo.mirror.garr.it/     http://gentoo.mirror.garr.it/     https://mirrors.evoluso.com/gentoo/     http://mirrors.evoluso.com/gentoo/     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.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--lto-O3"
LEX="flex"
NM="llvm-nm"
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"
RANLIB="llvm-ranlib"
RUSTFLAGS="-C opt-level=3 -C target-cpu=znver4 -C lto -C link-args=-Wl -C link-args=--lto-O3 -C link-args=--lto=full -C link-args=-fuse-ld=lld"
SHELL="/bin/bash"
STRIP="llvm-strip"
USE="32 64 X a52 aac acl acpi activities aio alsa amd64 bash-completion bluetooth bluray boost bpf branding brotli bzip2 cairo cdda cdr cet clang crypt cups custom-cflags cxx dbus declarative dhcpcd doc dri dts dvd dvdr ebpf elogind encode exif fapi ffmpeg flac fuse gdbm geoclue gif go gpg graphite gstreamer gtk gui gzip haptic hip http2 http3 hwaccel iconv icu introspection io-uring ipv4 ipv6 jemalloc jit jpeg kde kf6compat lcms libass libnotify libreadline libtirpc llvm loudness lto lua lz4 mad man markdown matroska mng mp3 mp4 mpeg multilib ncurses network nfs nft nls nptl offload ogg opencl opencv opengl openmp openssl orc pango pcre pdf pgo pipewire pkcs11 plasma png policykit postproc ppds profile pulseaudio python qml qt6 rar readline rocm rust rustfmt samba screencast script sdl semantic-desktop sound spatialaudio spell split-usr sqlite ssl startup-notification strip svg syslog system-* tcmalloc test-rust threads tiff tls tools tpm trayicon truetype udev udisks unicode upnp upower usb usbredir vaapi verify-sig vorbis vpx vulkan wayland webp websockets widgets wpa_supplicant wxwidgets x264 x265 x32 xattr xcb xft xml xv xvid xz zeroconf zip zlib" ABI_X86="64 32" ADA_TARGET="gcc_14" AMDGPU_TARGETS="gfx1102" 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 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 bmi2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en he" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="20" LLVM_TARGETS="AArch64 AMDGPU ARC ARM AVR BPF CSKY DirectX Hexagon Lanai LoongArch M68k MSP430 Mips NVPTX PowerPC RISCV SPIRV Sparc SystemZ VE WebAssembly X86 XCore Xtensa" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="luajit lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_14 python3_13 python3_12 python3_11 pypy3 pypy3_11" QEMU_SOFTMMU_TARGETS="arm i386 riscv32 riscv64 x86_64 aarch64 loongarch64 m68k mips mips64 mips64el mipsel ppc ppc64 rx sparc sparc64" QEMU_USER_TARGETS="x86_64 aarch64 aarch64_be arm armeb i386 loongarch64 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64le riscv32 riscv64 sparc sparc64 sparc32plus" RUBY_TARGETS="ruby34 ruby33 ruby32" VIDEO_CARDS="amdgpu radeonsi 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, ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, SIZE, STRINGS, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-lang/rust-1.84.1-r1::gentoo was built with the following:
USE="clippy dist doc lto rust-analyzer rust-src rustfmt system-llvm verify-sig wasm (-big-endian) -debug (-llvm-libunwind) (-miri) -nightly (-parallel-compiler) -test" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="(19)" LLVM_TARGETS="AArch64 AMDGPU ARC ARM AVR BPF CSKY DirectX Hexagon Lanai LoongArch M68k MSP430 Mips NVPTX PowerPC RISCV SPIRV Sparc SystemZ VE WebAssembly (X86) XCore Xtensa"
CFLAGS="-w -march=znver4 -mtune=znver4 -O2 -pipe"
CXXFLAGS="-w -march=znver4 -mtune=znver4 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=lld"


dev-lang/rust-1.85.1::gentoo was built with the following:
USE="clippy dist doc lto rust-analyzer rust-src rustfmt system-llvm verify-sig wasm (-big-endian) -debug (-llvm-libunwind) -test" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="(19)" LLVM_TARGETS="AArch64 AMDGPU ARC ARM AVR BPF CSKY DirectX Hexagon Lanai LoongArch M68k MSP430 Mips NVPTX PowerPC RISCV SPIRV Sparc SystemZ VE WebAssembly (X86) XCore Xtensa"
CFLAGS="-march=znver4 -mtune=znver4 -O2 -pipe"
CXXFLAGS="-march=znver4 -mtune=znver4 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=lld"
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



OSZAR »