View previous topic :: View next topic |
Author |
Message |
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Wed Sep 18, 2024 2:46 pm Post subject: how you compile gcc in musl/llvm profile ? |
|
|
i really want to know how ,because combining this profile with plasma pulls gcc wich dont compile |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22649
|
Posted: Wed Sep 18, 2024 3:55 pm Post subject: |
|
|
emerge --oneshot sys-devel/gcc should suffice. If it does not, then I suggest that you follow Guidelines item #4. Tell us what you did, and show us how it failed. |
|
Back to top |
|
|
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Wed Sep 18, 2024 4:43 pm Post subject: |
|
|
thank you , i tried it but it failled ,
[*]emerge --info '=sys-devel/gcc-14.2.1_p20240817::gentoo :
Code: |
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 3.0.66 (python 3.12.6-final-0, default/linux/amd64/23.0/musl/llvm, [unavailable], musl-1.2.5-r1, 6.10.10-arch1-1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.10.10-arch1-1-x86_64-12th_Gen_Intel-R-_Core-TM-_i5-1235U-with-libc
KiB Mem: 32533012 total, 21614972 free
KiB Swap: 50331640 total, 50331640 free
Timestamp of repository gentoo: Tue, 17 Sep 2024 13:30:00 +0000
Head commit of repository gentoo: 4856397e070b04b0062050d03d15344970f738d4
sh bash 5.2_p32-r1
ld GNU ld (Gentoo 2.43 p2) 2.43.1
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p32-r1::gentoo
dev-build/autoconf: 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake: 3.30.3::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.5.1::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.12.6::gentoo, 3.13.0_rc2::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.55::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.43-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang: 18.1.8::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 18.1.8::gentoo
sys-devel/llvm: 18.1.8-r4::gentoo
sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers)
sys-libs/musl: 1.2.5-r1::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-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 3
local
location: /var/db/repos/local
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_musl_llvm
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-musl"
CC="clang"
CFLAGS="-march=native -O3 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing -fno-semantic-interposition -fdata-sections -ffunction-sections"
CHOST="x86_64-pc-linux-musl"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=native -O3 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing -fno-semantic-interposition -fdata-sections -ffunction-sections"
DISTDIR="/var/cache/distfiles"
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=native -O3 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing -fno-semantic-interposition -fdata-sections -ffunction-sections"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing -fno-semantic-interposition -fdata-sections -ffunction-sections"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="en_US.UTF-8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,-O2 -Wl,--lto-O2,--gc-sections -Wl,--icf=safe -Wl,--print-gc-sections -Wl,--print-icf-sections"
LEX="flex"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
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"
READELF="llvm-readelf"
RUSTFLAGS="-Ctarget-cpu=native -Copt-level=3 -Clinker-plugin-lto -Clink-arg=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,-O2 -Wl,--lto-O2,--gc-sections -Wl,--icf=safe -Wl,--print-gc-sections -Wl,--print-icf-sections"
SHELL="/usr/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="X aac acl acpi activities aio alsa amd64 asm bash-completion bpf bzip2 cairo caps cet clang crypt dbus declarative dri dts elogind encode exif flac gif gpm graphite gtk gui iconv icu io-uring jemalloc jit jpeg jumbo-build kde kf6compat l0 lcms libnotify libtirpc llvm-libunwind lm-sensors lto mad mimalloc mng mp3 mp4 mpeg native-cflags native-exceptions native-extensions ncurses networkmanager nftables nls ogg opencl opengl openmp pam pango pcre pdf pgo pic pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp sound spell ssl startup-notification svg tbb tcmalloc test-rust threads tiff truetype udev udisks uefi unicode upower usb vappi vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xs xv xvid 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="musl" 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" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="SPIRV" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS
|
[*]/var/tmp/portage/sys-devel/gcc-14.2.1_p20240817/temp/build.log , its very long i dont know how to upload it here but here is that
Code: |
16 warnings generated.
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.2.1_p20240817/work/build-jit/gcc'
rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
make[1]: *** [Makefile:4332: all-gcc] Error 2
make: *** [Makefile:1042: all] Error 2
* ERROR: sys-devel/gcc-14.2.1_p20240817::gentoo failed (compile phase):
* emake failed
|
[*]make.conf
Code: |
USE="pgo tbb graphite lto asm xs jit native-cflags native-extensions native-exceptions \
aio io-uring mimalloc jemalloc tcmalloc jumbo-build bpf nftables threads \
caps cet \
bash-completion \
l0 vappi opencl \
lm-sensors uefi \
llvm_targets_SPIRV \
\
-multilib -branding \
-modemmanager -cups -bluetooth -ipv6 \
-semantic-desktop -webengine -kwallet \
-cdr -cdda -dvd -dvdr -a52"
CHOST="x86_64-pc-linux-musl"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
LC_MESSAGES=C.utf8
MICROCODE_SIGNATURES="-s 0x000906a4"
VIDEO_CARDS="intel"
#MAKEOPTS="-j2 -l4"
WARNING_FLAGS="-Werror=odr -Werror=strict-aliasing"
COMMON_FLAGS="-march=native -O3 -pipe -flto=thin ${WARNING_FLAGS} -fno-semantic-interposition -fdata-sections -ffunction-sections"
LDFLAGS="${LDFLAGS} -Wl,-O2 -Wl,--lto-O2,--gc-sections -Wl,--icf=safe -Wl,--print-gc-sections -Wl,--print-icf-sections"
#FEATURES="${FEATURES} getbinpkg binpkg-request-signature --binpkg-respect-use=n"
RUSTFLAGS="-Ctarget-cpu=native -Copt-level=3 -Clinker-plugin-lto -Clink-arg=${LDFLAGS}"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
|
even the normal llvm porfile has the same probleme |
|
Back to top |
|
|
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Wed Sep 18, 2024 6:05 pm Post subject: |
|
|
from my understanding musl/llvm profile has a probleme , it doesnt have gcc in the stage file , so there is no way i can emerge it , llvm glibc profiles have gcc , the need just a env to set gcc to be builded by itself , either devs figure out a way to compile gcc with clang , or have gcc as a binary , or add gcc to stage file , so id rienstall it |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22649
|
Posted: Wed Sep 18, 2024 6:40 pm Post subject: |
|
|
gcc can be built by any conforming C compiler. Recent clang should satisfy this requirement.
Your build log fragment has nothing usable in it. Please use a pastebin to present the whole log. |
|
Back to top |
|
|
User7z n00b
Joined: 01 Jul 2024 Posts: 17
|
Posted: Thu Sep 19, 2024 1:17 pm Post subject: |
|
|
How to attach the log., i cant find an option here, i tried to past.it but its huge |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1699 Location: South America
|
Posted: Thu Sep 19, 2024 4:23 pm Post subject: |
|
|
User7z wrote: | How to attach the log. |
You don't; as suggested, use a pastebin site. Read this. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
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
|
|