View previous topic :: View next topic |
Author |
Message |
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Sun Sep 15, 2024 8:05 pm Post subject: mold on gentoo llvm profiles |
|
|
the default LDFAGS in llvm profiles in bouth glibc & musl are :
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed"
i make use of mold by :
LDFLAGS="$LDFLAGS -fuse-ld=mold"
but the compiler dont work , i think its a syntax issue , normally thise works under gcc based profiles, what could be the probleme here , can i use mold instead of lld ? |
|
Back to top |
|
|
APolozov Apprentice
Joined: 28 Sep 2006 Posts: 194 Location: Voronezh, Russia
|
Posted: Mon Sep 16, 2024 6:34 pm Post subject: |
|
|
Try LDFLAGS="-fuse-ld=mold ${LDFLAGS}" _________________ Excuse my bad English, I only study it. |
|
Back to top |
|
|
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Mon Sep 16, 2024 11:20 pm Post subject: |
|
|
No , your english is good , i try it bro , didnt work , the wiki doesnt mention that llvm profiles are diffrenet than gcc ones ,LDFLAGS differ in llvm |
|
Back to top |
|
|
APolozov Apprentice
Joined: 28 Sep 2006 Posts: 194 Location: Voronezh, Russia
|
Posted: Tue Sep 17, 2024 4:45 am Post subject: |
|
|
cat /etc/portage/
Code: |
#app-emulation/wine-staging compiler-gcc
app-text/djvu compiler-gcc
dev-db/sqlite compiler-gcc
dev-util/mingw64-toolchain compiler-gcc
games-emulation/dosbox compiler-gcc
media-libs/libmp3splt compiler-gcc
media-libs/phonon compiler-gcc
sys-apps/memtest86+ compiler-gcc
sys-devel/bin86 compiler-gcc
sys-libs/binutils-libs compiler-gcc
sys-devel/binutils compiler-gcc
sys-process/numactl compiler-gcc
app-admin/sudo compiler-clang
app-arch/bzip2 compiler-clang
app-arch/p7zip compiler-clang
app-arch/unzip compiler-clang
app-arch/zip compiler-clang
app-arch/zstd compiler-clang
app-cdr/cdrtools compiler-clang
app-crypt/mit-krb5 compiler-clang
app-crypt/rhash compiler-clang
dev-db/lmdb compiler-clang
dev-lang/luajit compiler-clang
dev-lang/perl compiler-clang
dev-lang/python compiler-clang
dev-libs/boost compiler-clang
dev-libs/dotconf compiler-clang
dev-libs/fribidi compiler-clang
dev-libs/libIDL compiler-clang
dev-libs/nss compiler-clang
dev-perl/Clone compiler-clang
dev-perl/HTML-Parser compiler-clang
dev-perl/JSON-XS compiler-clang
dev-perl/Locale-gettext compiler-clang
dev-perl/Net-SSLeay compiler-clang
dev-perl/Socket6 compiler-clang
dev-perl/Sub-Name compiler-clang
dev-perl/TermReadKey compiler-clang
dev-perl/Text-CharWidth compiler-clang
dev-qt/* compiler-clang
dev-build/kbuild compiler-clang
media-libs/freetype compiler-clang
media-libs/libkate compiler-clang
media-libs/libvpx compiler-clang
media-libs/openh264 compiler-clang
media-libs/sdl-net compiler-clang
media-libs/x264 compiler-clang
media-libs/xvid compiler-clang
media-plugins/live compiler-clang
media-sound/gsm compiler-clang
net-firewall/iptables compiler-clang
net-libs/accounts-qml compiler-clang
net-libs/accounts-qt compiler-clang
net-libs/libpcap compiler-clang
net-libs/signond compiler-clang
net-libs/signon-oauth2 compiler-clang
net-misc/dhcpcd compiler-clang
net-misc/openssh compiler-clang
sys-apps/i2c-tools compiler-clang
sys-apps/iproute2 compiler-clang
sys-apps/less compiler-clang
sys-apps/lm-sensors compiler-clang
sys-apps/sysvinit compiler-clang
sys-auth/passwdqc compiler-clang
sys-fs/e2fsprogs compiler-clang
sys-libs/libcap compiler-clang
sys-libs/libutempter compiler-clang
sys-libs/readline compiler-clang
sys-power/iasl compiler-clang
app-emulation/virtualbox compiler-clang-undef
media-libs/alsa-lib compiler-clang-undef
media-libs/libva compiler-clang-undef
media-sound/sox compiler-clang-undef
net-fs/samba compiler-clang-undef
sys-libs/ldb compiler-clang-undef
sys-libs/slang compiler-clang-undef
sys-libs/talloc compiler-clang-undef
sys-libs/tdb compiler-clang-undef
sys-libs/tevent compiler-clang-undef
sys-apps/keyutils compiler-clang-undef
*/* compiler-clang-lto
|
cat /etc/portage/env/compiler-clang-lto
Code: |
CARCH="x86_64"
CFLAGS="${COMMON_FLAGS} -flto=thin -fdiagnostics-color=always"
CXXFLAGS="${CFLAGS}"
FCFLAGS="${CFLAGS}"
FFLAGS="${CFLAGS}"
LDFLAGS="-fuse-ld=lld -Wl,-O2 -Wl,--as-needed"
MAKEOPTS="LLVM=1 LLVM_IAS=1 ${COMMON_MAKEOPTS}"
AR="llvm-ar"
AS="llvm-as"
CC="clang"
CXX="clang++"
LD="ld.lld"
MT="llvm-mt"
NM="llvm-nm"
DLLTOOL="llvm-dlltool"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
READELF="llvm-readelf"
RANLIB="llvm-ranlib"
STRIP="llvm-strip"
|
_________________ Excuse my bad English, I only study it. |
|
Back to top |
|
|
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Tue Sep 17, 2024 6:09 am Post subject: |
|
|
Your not using mold but i see your config , i dont want to change the defaults , but it seems i have to i hope it could work , i well test & came back |
|
Back to top |
|
|
|
|
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
|
|