Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]gcc: unrecognized command-line option after LLVM/Cla
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 122
Location: Central Washington

PostPosted: Sun Mar 24, 2024 10:39 am    Post subject: [SOLVED]gcc: unrecognized command-line option after LLVM/Cla Reply with quote

Having a problem with this package. I cant understand where it is getting this option '-rtlib=compiler-rt'
My system was LLVM/Clang with GCC fallback for those packages that wouldnt compile. But, it seemed like every update I had more build failures that required me to set the compiler to gcc anyway. So, I just decided to go back to it system-wide.
I cleaned out my package.env and env folder within portage directory, so there should be nothing left to cause this option to show up. But somehow it is.




Code:
>>> Emerging (6 of 966) dev-perl/XS-Parse-Keyword-0.380.0::gentoo
 * XS-Parse-Keyword-0.38.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking XS-Parse-Keyword-0.38.tar.gz to /var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/work/XS-Parse-Keyword-0.38 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/work/XS-Parse-Keyword-0.38 ...
 * Using Module::Build
 * perl Build.PL --installdirs=vendor --libdoc= --destdir=/var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/image --create_packlist=1
gcc: error: unrecognized command-line option ‘-rtlib=compiler-rt’
OS unsupported - C compiler does not support anonymous inner unions
 * ERROR: dev-perl/XS-Parse-Keyword-0.380.0::gentoo failed (configure phase):
 *   Unable to build!
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 1790:  Called perl-module_src_configure
 *   environment, line 1284:  Called die
 * The specific snippet of code:
 *           perl Build.PL "$@" <<< "${pm_echovar}" || die "Unable to build!";
 *
 * If you need support, post the output of `emerge --info '=dev-perl/XS-Parse-Keyword-0.380.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-perl/XS-Parse-Keyword-0.380.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/work/XS-Parse-Keyword-0.38'
 * S: '/var/tmp/portage/dev-perl/XS-Parse-Keyword-0.380.0/work/XS-Parse-Keyword-0.38'

Code:
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.38-r10, 6.6.21-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.21-gentoo-x86_64-x86_64-AMD_Ryzen_7_7840HS_w-_Radeon_780M_Graphics-with-glibc2.38
KiB Mem:    28423364 total,   4500360 free
KiB Swap:   67108860 total,  67106800 free
Timestamp of repository gentoo: Sun, 24 Mar 2024 07:03:59 +0000
Head commit of repository gentoo: a54a78a7d9438afad3cb43a28d7791ea2e065c1d

Timestamp of repository gentoo-zh: Sat, 23 Mar 2024 12:18:19 +0000
Head commit of repository gentoo-zh: 45fd1ebc72b010763976689b42f2384dc63716f3

Timestamp of repository guru: Sat, 23 Mar 2024 16:18:24 +0000
Head commit of repository guru: 213cc0aeae7ff8795186becccb7e90baf1fc4f11

Timestamp of repository hamper-overlay: Mon, 18 Mar 2024 04:18:28 +0000
Head commit of repository hamper-overlay: 3da340faf83e62613423751f0631e1fef1f73bb0

Timestamp of repository steam-overlay: Fri, 15 Mar 2024 21:03:58 +0000
Head commit of repository steam-overlay: e01d021389d2d9eb6ac88d559c83a8f5a7b54982

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r2::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-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin:         1.75.0::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::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:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             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::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: true

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

hamper-overlay
    location: /var/db/repos/hamper-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/hamper-overlay.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

Binary Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
AR="x86_64-pc-linux-gnu-ar"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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 /etc/terminfo"
CXX="g++"
CXXFLAGS="-O2 -pipe -march=native"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LEX="flex"
MAKEOPTS="-j12 -l13"
NM="x86_64-pc-linux-gnu-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="x86_64-pc-linux-gnu-ranlib"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi activities alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cdr clang cli codec2 crypt css cups curl cvs cxx dbus declarative dga dri dts dvd dvdr elogind encode exif fbcan ffmpeg flac fltk fortran ftp gdbm geolocation gif gimp glx gpm gps gtk gui gzip handbook iconv icu imagemagick ipv6 java javascript jpeg kde kerberos kwallet lame lcms libass libcaca libnotify libsamplerate libtirpc lm-sensors lvm lz4 lzma lzo mad magic man matroska mms mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nsplugin nvenc offensive ogg openal opengl opus pam pango pcre pdf perl pipewire plasma png policykit ppds pulseaudio python qml qt5 qt6 quicktime rdp readline samba sasl screencast sdl seccomp semantic-desktop smp snappy sound spell split-usr ssl startup-notification svg svt-av1 test-rust theora threads thunderbolt tiff truetype twolame udev udisks uefi unicode upower usb v4l vaapi vcd vdpau vnc vorbis vpx vulkan wayland webkit webp widgets wifi wireguard wxwidgets x264 x265 xattr xcb xcomposite xft xine xinerama xml xscreensaver xv xvid zip zlib zstd" ABI_X86="64 32" 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 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" 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" KERNEL="linux" 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="d3d12 fbdev amdgpu radeonsi radeon vesa dummy v4l" 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, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Last edited by Colt45 on Sun Mar 24, 2024 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Sun Mar 24, 2024 12:30 pm    Post subject: Reply with quote

You need to build dev-lang/perl with the same compiler as dev-perl/*, unfortunately.
Back to top
View user's profile Send private message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 122
Location: Central Washington

PostPosted: Sun Mar 24, 2024 7:40 pm    Post subject: Reply with quote

sam_ wrote:
You need to build dev-lang/perl with the same compiler as dev-perl/*, unfortunately.

Thanks!
Im doing a emerge -e to try to head off problems and it had decided to emerge this package before dev-lang/perl
I rebuilt gcc before the emerge -e.
Is there any other gotchas you think I might hit?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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