[SOLVED] Unable to compile after upgrade to current (gcc-5.3)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've already done of course .. problem is that there is 2 version i've installed both ! if i dnt install 32bit version I got this :
Code:
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/crti.o: unrecognized relocation (0x2a) in section `.init'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: final link failure : Bad value
collect2: error: ld returned 1 exit status
I am running Slackware64-current with multilib versions of gcc and glibc and no other 32-bit package installed here (no 'compat32' package and no regular 32-bit package). My gcc 5.3.0 compiles sources just fine. Apparently you have other issues.
I'm suspecting that you've got a 32-bit version of libmpc someplace that it shouldn't be. That shouldn't happen within the packaging system, but it's the next thing to check.
I wrote in the ans "i have binutils-2.23.52.0.1-x86_64-2"
I'm very happy about your help Eric
You edited your original answer to contain that information.
It looks like you have a partial upgrade to slackware-current. You do not have "binutils-2.26-x86_64-3" which is the current version of that package. You should check what else is outdated.
to confirm last post from Eric, it seems you got libmpc for slackware 14.1 and gcc from current: maybe you should check how you are installing additional packages (which repository).
Configuration for slackpkg+. See /usr/doc/slackpkg+-*/README for more details
# Enable (on) / Disable (off) slackpkg+
SLACKPKGPLUS=on
# set to '0' to never show the download progress bar
# set to '1' to show the bar only in download packages (default)
# set to '2' to always show the download bar
# set to '3' for a debug mode
VERBOSE=1
# By default slackpkg+ deny to install 32bit packages.
#
# Set this flag to 'on' allow slackpkg+ to install 32bit packages on a 64bit slackware
# installation (possibly unsafe). Please, do not install both 32 and 64bit of the same
# package to avoid problems, and NEVER upgrade existant 64bit packages with relative 32bit package.
# Do not forget to install the multilibs.
ALLOW32BIT=off
# Enable (1) / Disable (0) the official slackpkg blacklist. May be useful to temporarily skip
# the slackware blacklist. You can also override it from command line:
# 'USEBL=0 slackpkg upgrade-all'
USEBL=1
# Add custom option to 'wget'.
# You can solve the repository indisponibility issue by set a timeout here
WGETOPTS="--timeout=20 --tries=2"
# Enable (on) / Disable (off) notification events (see notifymsg.conf)
#ENABLENOTIFY=off
# Enable (on) / Disable (off) the greylist feature. See /etc/slackpkg/greylist
GREYLIST=on
# If two or more repositories contains some same packages, you can specify
# from which repository you prefer to search it.
# The syntax is "<repository_name>:<package_name>"
# Accepts regular expressions. To give priority to an entire repository use "<repository_name>"
# Examples:
#PKGS_PRIORITY=( restricted:vlc )
# OR
#PKGS_PRIORITY=( myrepo )
#
# if you have two reporitories to give priority you must set both in the same line
#PKGS_PRIORITY=( myrepo restricted:vlc )
#
# if you want to install 'ktown' repository you must set it here
#PKGS_PRIORITY=( ktown )
# and read special instruction on /usr/doc/slackpkg+-*/repositories.txt
#
# If you want a multilib system, uncomment the multilib repository and set:
#PKGS_PRIORITY=( multilib )
#
# (Use /usr/doc/slackpkg+-*/setupmultilib.sh to setup a multilib configuration)
#
# For both multilib and ktown set
#PKGS_PRIORITY=( multilib ktown )
# Otherwise you can try to upgrade a package from a repository that contains a package with the
# same tag of the already installed package. Tipically that means to upgrade a package from the
# same author of the already installed package.
# Note that this method may not works properly where two repositories contains a package with the
# same tag.
# Set TAG_PRIORITY to 'on' to enable this function
TAG_PRIORITY=off
# List repositories you want to use (defined below)
# remember to launch 'slackpkg update' if you modify that row.
#REPOPLUS=( slackpkgplus restricted alienbob slacky )
# Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS)
# GPG Note: after adding a repository, you must to run 'slackpkg update gpg'
# some repositories as salixos or slackel, have a partial GPG support;
# for that repositories you may need to run slackpkg with 'slackpkg -checkgpg=off ...'
# Slackware 14.1 - x86_64
#MIRRORPLUS['multilib']=http://taper.alienbase.nl/mirrors/people/alien/multilib/14.1/
#MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/14.1/x86_64/
MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
#MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.1/x86_64/
MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/
#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.1/
#MIRRORPLUS['alienbob_current']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
# use this to keep the slackpkg+ package updated
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
# Slackware current - x86_64
MIRRORPLUS['multilib']=http://taper.alienbase.nl/mirrors/people/alien/multilib/current/
# Local repository:
#MIRRORPLUS['alienbob']=file://repositories/alien/sbrepos/14.1/x86/
#
# Local packages (you do not need metadata nor 'slackpkg update' command):
#MIRRORPLUS['myrepo']=dir://repositories/mypackages/
#
# Supported Repositories (see /usr/doc/slackpkg+-* for details and notes):
#
#Supports GPG
#slackpkgplus: http://slakfinder.org/slackpkg+/
#multilib: http://taper.alienbase.nl/mirrors/people/alien/multilib/{13.37,14.0,14.1,current}/
#alienbob: http://taper.alienbase.nl/mirrors/people/alien/sbrepos/{13.37,14.0,14.1,current}/{x86,x86_64}/
#ktown: http://taper.alienbase.nl/mirrors/alien-kde/{13.37,14.0,14.1,current}/{latest,testing}/{x86,x86_64}/
#restricted: http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/{13.37,14.0,14.1,current}/{x86,x86_64}/
#slacky: http://repository.slacky.eu/slackware{,64}-{13.37,14.0,14.1}/
#mled-desktop: http://www.microlinux.fr/microlinux/desktop-14.1-{32,64}bit/
#mled-extras: http://www.microlinux.fr/microlinux/extras-14.1-{32,64}bit/
#mles: http://www.microlinux.fr/microlinux/server-{14.0,14.1}-{32,64}bit/
#msb: http://slackware.org.uk/msb/{14.0,14.1}/{1.6,1.8,1.10}/{x86,x86_64}/
#slackers: http://ponce.cc/slackers/repository/
#slacke18: http://ngc891.blogdns.net/pub/slacke18/slackware{,64,arm}-14.1/
#studioware: http://studioware.org/files/packages/slackware{,64}-{13.37,14.0,14.1}/
#slackonly: http://slackonly.com/pub/packages/{14.1,current}-{x86,x86_64}/
#rlworkman: http://rlworkman.net/pkgs/{13.37,14.0,14.1}/
#
#Does NOT support GPG
#salixos(*): http://download.salixos.org/{i486,x86_64}/{13.37,14.0,14.1}/
#slackel(*): http://www.slackel.gr/repo/{i486,x86_64}/{current,kde5}/
#PKGS_PRIORITY=( multilib:.* ktown:.* restricted_current:.* alienbob_current:.* )
#PKGS_PRIORITY=( ktown:.* restricted_current:.* alienbob_current:.* )
#PKGS_PRIORITY=( multilib:.* ktown_testing:.* restricted_current:.* alienbob_current:.* )
#PKGS_PRIORITY=(ktown_testing:.* restricted_current:.* alienbob_current:.* )
#PKGS_PRIORITY=( restricted_current:.* alienbob_current:.* )
PKGS_PRIORITY=( multilib:.* restricted_current:.* alienbob_current:.* )
#PKGS_PRIORITY=( multilib:.* alienbob_current:.* )
#PKGS_PRIORITY=( multilib:.* ktown:.* alienbob_current:.* )
#PKGS_PRIORITY=( ktown:.* alienbob_current:.* )
#PKGS_PRIORITY=( multilib:.* ktown_testing:.* alienbob_current:.* )
#PKGS_PRIORITY=( ktown_testing:.* alienbob_current:.* )
#REPOPLUS=( slackpkgplus restricted alienbob slacky )
REPOPLUS=( slackpkgplus restricted_current alienbob_current multilib msb ktown_testing )
#REPOPLUS=( slackpkgplus alienbob )
#MIRRORPLUS['ktown']=http://taper.alienbase.nl/mirrors/alien-kde/current/latest/x86_64/
MIRRORPLUS['ktown_testing']=http://taper.alienbase.nl/mirrors/alien-kde/current/testing/x86_64/
MIRRORPLUS['alienbob_current']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
MIRRORPLUS['restricted_current']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/
MIRRORPLUS['msb']=http://slackware.uk/msb/14.1/1.12/x86_64/
It's not slackpkg+ that's taking care of managing your official Slackware packages. The slackpkg+ extension is meant only for 3rd party repositories.
What is the line you have un-commented in the slackpkg connfiguration file /etc/slackpkg/mirrors ?
Also you should read http://docs.slackware.com/howtos:sla...:systemupgrade carefully.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.