Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gcc] Liens cassés et compilation impossible[Résolu]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 200

PostPosted: Mon May 13, 2019 1:35 pm    Post subject: [gcc] Liens cassés et compilation impossible[Résolu] Reply with quote

Bonjour,

J'ai fait la maj système dernièrement, dont gcc passant de 8.2.0 à 8.3.0.
Apès la màj, j'ai fait un nettoyage : emerge --depclean qui a désinstallé la version 8.2.0.

Or, plus tard quand j'esssaie de faire la màj d'un package, ça ne marche plus car le lien /usr/bin/gcc était cassé car pointé vers la version 8.2.0 (supprimé).
Le profile de gcc ne liste que la version 8.3.0.
J'ai donc supprimé les anciens liens gcc en les repointant vers ceux de la version 8.3.0.
Mais cela n'a pas résolu toute nouvelle compilation...
Je suis très embêté.

Merci d'avance pour vos retours.


Code:
emerge --info

Quote:

Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/hardened/selinux, gcc-8.3.0, glibc-2.28-r6, 5.1.0-gentoo x86_64)
=================================================================
System uname: Linux-5.1.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-5557U_CPU_@_3.10GHz-with-gentoo-2.6
KiB Mem: 16273908 total, 8205104 free
KiB Swap: 8388604 total, 8388604 free
Timestamp of repository gentoo: Mon, 13 May 2019 00:45:01 +0000
Head commit of repository gentoo: c6ea14b16660b7f2e3306f665ba9a5f5a0c1cc87
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
ccache version 3.6 [enabled]
app-shells/bash: 4.4_p23-r1::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.26.2::gentoo
dev-lang/python: 2.7.15::gentoo, 3.6.5::gentoo
dev-util/ccache: 3.6::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.41.2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.31.1-r4::gentoo
sys-devel/gcc: 8.3.0-r1::gentoo
sys-devel/gcc-config: 2.0::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.28-r6::gentoo
Repositories:

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

local
location: /usr/local/portage
masters: gentoo
priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fforce-addr -pipe"
CHOST="x86_64-pc-linux-gnu"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.0 --keep-going=y --with-bdeps=y --complete-graph"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://miroir99.tv5monde.org/gentoo/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
USE="X acl amd64 bindist branding bzip2 chroot consolekit crypt cryptsetup cxx ffmpeg gnutls hardened iconv icu ipv6 jpeg libtirpc logrotate lzma mmx modplug multilib ncurses nls nptl opengl openmp pam pax_kernel pcre perl pic pie png python readline seccomp secure_delete selinux snmp sse sse2 ssl ssp symlink tcpd unicode wavpack webrsync-gpg xattr xml xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="load memory syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:
gcc-config -l

Quote:
[1] x86_64-pc-linux-gnu-8.3.0 ^O*^O


Code:
eix gcc

Quote:

[I] sys-devel/gcc
Available versions:
(3.3.6) [M]~3.3.6-r1^s [M]~3.3.6-r2^s
(3.4.6) [M]3.4.6-r2^s
(4.0.4) [M]**4.0.4^s [M]**4.0.4-r1^s
(4.1.2) [M]4.1.2^s [M]~4.1.2-r1^s
(4.2.4) [M]~4.2.4-r1^s [M]~4.2.4-r2^s
(4.3.6) [M]4.3.6-r1^s [M]~4.3.6-r2^s
(4.4.7) [M]4.4.7^s [M]~4.4.7-r1^s
(4.5.4) [M]4.5.4^s [M]~4.5.4-r1^s
(4.6.4) [M]4.6.4^s [M]~4.6.4-r1^s
(4.7.4) [M]4.7.4-r1^s [M]~4.7.4-r2^s
(4.8.5) [M]4.8.5-r1^s [M]~4.8.5-r2^s
(4.9.4) [M]4.9.4^s
(5.4.0) [M]5.4.0-r4^s [M]~5.4.0-r6^s
(5.5.0) [M]~5.5.0^s
(6.4.0) 6.4.0-r1^s ~6.4.0-r5^s
(6.5.0) ~6.5.0^s
(7.3.0) 7.3.0-r3^s{tbz2} ~7.3.0-r6^s
(7.4.0) ~7.4.0^s ~7.4.0-r1^s
(8.2.0) ~8.2.0-r5^s 8.2.0-r6^s{tbz2}
(8.3.0) ~8.3.0^s 8.3.0-r1^s{tbz2}
(9.1.0) ~9.1.0^s
{altivec awt boundschecking cilk +cxx d debug doc fixed-point +fortran gcj go graphite hardened jit libssp mpx mudflap multilib +nls nopie nossp +nptl objc objc++ objc-gc +openmp +pch pgo +pie regression-test +sanitize +ssp systemtap test vanilla +vtv}
Installed versions: 8.3.0-r1(8.3.0)^s{tbz2}(11:43:01 09/05/2019)(cxx hardened multilib nls nptl openmp pie sanitize ssp vtv -altivec -debug -doc -fixed-point -fortran -go -graphite -jit -libssp -mpx -objc -objc++ -objc-gc -pch -pgo -systemtap -test -vanilla)
Homepage: https://gcc.gnu.org/
Description: The GNU Compiler Collection


Code:

 ~ # ll /usr/bin/gcc*

Quote:

lrwxrwxrwx. 1 root root 42 9 mai 11:43 /usr/bin/gcc -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0/gcc
lrwxrwxrwx. 1 root root 62 9 mai 11:42 /usr/bin/gcc-8.3.0 -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/x86_64-pc-linux-gnu-gcc
lrwxrwxrwx. 1 root root 45 9 mai 11:43 /usr/bin/gcc-ar -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0/gcc-ar
-rwxr-xr-x. 1 root root 29636 17 dc. 10:43 /usr/bin/gcc-config
lrwxrwxrwx. 1 root root 45 9 mai 11:43 /usr/bin/gcc-nm -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0/gcc-nm
lrwxrwxrwx. 1 root root 49 9 mai 11:43 /usr/bin/gcc-ranlib -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0/gcc-ranlib

Code:

 ~ # fix_libtool_files.sh 8.2.0

Quote:

Scanning libtool files for hardcoded gcc library paths...
sh: gcc : commande introuvable
:0: assertion failed: (gcc -dumpversion) | getline NEWVER)
Code:



ln -s /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc /usr/bin/gcc
ln -s /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc-ar /usr/bin/gcc-ar
ln -s /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc-nm /usr/bin/gcc-nm
ln -s /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc-ranlib /usr/bin/gcc-ranlib

Code:

 ~ # ll /usr/bin/gcc*
Quote:

lrwxrwxrwx. 1 root root 42 13 mai 14:53 /usr/bin/gcc -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc
lrwxrwxrwx. 1 root root 62 9 mai 11:42 /usr/bin/gcc-8.3.0 -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/x86_64-pc-linux-gnu-gcc
lrwxrwxrwx. 1 root root 45 13 mai 14:55 /usr/bin/gcc-ar -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc-ar
-rwxr-xr-x. 1 root root 29636 17 dc. 10:43 /usr/bin/gcc-config
lrwxrwxrwx. 1 root root 45 13 mai 14:55 /usr/bin/gcc-nm -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc-nm
lrwxrwxrwx. 1 root root 49 13 mai 14:55 /usr/bin/gcc-ranlib -> /usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/gcc-ranlib

Code:


cat /var/tmp/portage/sys-process/htop-2.2.0/temp/build.log
Quote:


>>> Configuring source in /var/tmp/portage/sys-process/htop-2.2.0/work/htop-2.2.0 ...
* econf: updating htop-2.2.0/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating htop-2.2.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/htop-2.2.0 --htmldir=/usr/share/doc/htop-2.2.0/html --libdir=/usr/lib64 --disable-hwloc --enable-taskstats --enable-cgroup --enable-linux-affinity --disable-openvz --enable-unicode --disable-vserver
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
/bin/sh: /var/tmp/portage/sys-process/htop-2.2.0/work/htop-2.2.0/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-process/htop-2.2.0/work/htop-2.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-process/htop-2.2.0/work/htop-2.2.0/config.log
* ERROR: sys-process/htop-2.2.0::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 2689: Called econf '--disable-hwloc' '--enable-taskstats' '--enable-cgroup' '--enable-linux-affinity' '--disable-openvz' '--enable-unicode' '--disable-vserver'
* phase-helpers.sh, line 718: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 119: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=sys-process/htop-2.2.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-process/htop-2.2.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-process/htop-2.2.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-process/htop-2.2.0/temp/environment'.
* Working directory: '/var/tmp/portage/sys-process/htop-2.2.0/work/htop-2.2.0'
* S: '/var/tmp/portage/sys-process/htop-2.2.0/work/htop-2.2.0'


Last edited by y351 on Mon May 13, 2019 4:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Mon May 13, 2019 2:24 pm    Post subject: Reply with quote

Salut,

Tu n'as pas utilisé gcc-config pour basculer d'un gcc à l'autre?
Si tu tentes de le faire quand même maintenant, ça donne quoi?
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 200

PostPosted: Mon May 13, 2019 4:26 pm    Post subject: Reply with quote

En effet.
j'avais déjà forcé le passage mais comme j'avais des erreurs de droits (dû à SELinux que j'ai zappé), j'ai abandonné sur le coup.

Là, c'est mieux avec SELinux désactivé pour le temps de la commande :-)

Merci !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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