LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2016, 05:39 PM   #1
drudox
Member
 
Registered: Feb 2016
Posts: 141

Rep: Reputation: Disabled
Unable to compile after upgrade to current (gcc-5.3)


Hy guys! I'm trying to compile simple "Hello world" program in C, but i've got a strange message about libmpc.so.3 :

Code:
/usr/libexec/gcc/x86_64-slackware-linux/5.3.0/cc1: error while loading shared libraries: libmpc.so.3: wrong ELF class: ELFCLASS32
i've installed multilib version of gcc and glibc ... could you help me pls ??

Last edited by drudox; 03-19-2016 at 05:32 AM.
 
Old 03-17-2016, 06:21 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Install libmpc package... that simple.
 
Old 03-17-2016, 06:27 PM   #3
drudox
Member
 
Registered: Feb 2016
Posts: 141

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-17-2016, 06:48 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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.

What version of binutils do you have installed?

Last edited by Alien Bob; 03-17-2016 at 06:50 PM.
 
Old 03-17-2016, 06:50 PM   #5
drudox
Member
 
Registered: Feb 2016
Posts: 141

Original Poster
Rep: Reputation: Disabled
I have all the compact32 package installed ... how can i find the problem ?

i have binutils-2.23.52.0.1-x86_64-2

Last edited by drudox; 03-17-2016 at 08:28 PM.
 
Old 03-17-2016, 08:49 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by drudox View Post
I've already done of course .. problem is that there is 2 version i've installed both !
Which ones do you have?

Code:
ls -la /var/log/packages/libmpc*
 
Old 03-17-2016, 08:51 PM   #7
drudox
Member
 
Registered: Feb 2016
Posts: 141

Original Poster
Rep: Reputation: Disabled
Code:
$ls -la /var/log/packages/libmpc*

-rw-r--r-- 1 root root 986 mar 18 00:31 /var/log/packages/libmpc-0.8.2-x86_64-2
-rw-r--r-- 1 root root 976 mar 18 02:04 /var/log/packages/libmpc-compat32-1.0.3-x86_64-1compat32
 
Old 03-17-2016, 08:57 PM   #8
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
What do you get when you check your compiler with ldd?

Code:
bash-4.3$ ldd /usr/libexec/gcc/x86_64-slackware-linux/5.3.0/cc1
	linux-vdso.so.1 (0x00007ffd691b4000)
	libmpc.so.3 => /usr/lib64/libmpc.so.3 (0x00007f61428c2000)
	libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f6142661000)
	libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f61423ea000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f61421e6000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f6141fd1000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f6141cc7000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f61418fe000)
	/lib64/ld-linux-x86-64.so.2 (0x000055f69e429000)
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.
 
Old 03-17-2016, 09:00 PM   #9
drudox
Member
 
Registered: Feb 2016
Posts: 141

Original Poster
Rep: Reputation: Disabled
Code:
 [marco ~]$ ldd /usr/libexec/gcc/x86_64-slackware-linux/5.3.0/cc1
	
        linux-vdso.so.1 (0x00007fff7a7ff000)
	libmpc.so.3 => /usr/lib64/libmpc.so.3 (0x00007faf14635000)
	libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007faf143da000)
	libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007faf14166000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007faf13f62000)
	libz.so.1 => /lib64/libz.so.1 (0x00007faf13d4c000)
	libm.so.6 => /lib64/libm.so.6 (0x00007faf13a43000)
	libc.so.6 => /lib64/libc.so.6 (0x00007faf1367a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007faf14899000)
tnx for ure help
 
Old 03-18-2016, 02:50 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by drudox View Post
[CODE] [marco ~]
tnx for ure help
Again (maybe you missed it) what version of the binutils package do you have installed?
 
Old 03-18-2016, 04:19 AM   #11
drudox
Member
 
Registered: Feb 2016
Posts: 141

Original Poster
Rep: Reputation: Disabled
I wrote in the ans "i have binutils-2.23.52.0.1-x86_64-2"
I'm very happy about your help Eric
 
Old 03-18-2016, 04:22 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by drudox View Post
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.
 
Old 03-18-2016, 04:26 AM   #13
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by drudox View Post
Code:
$ls -la /var/log/packages/libmpc*

-rw-r--r-- 1 root root 986 mar 18 00:31 /var/log/packages/libmpc-0.8.2-x86_64-2
-rw-r--r-- 1 root root 976 mar 18 02:04 /var/log/packages/libmpc-compat32-1.0.3-x86_64-1compat32
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).
 
Old 03-18-2016, 04:31 AM   #14
drudox
Member
 
Registered: Feb 2016
Posts: 141

Original Poster
Rep: Reputation: Disabled
this is my slackpkgplus file ... i've done

update and upgrade-all wich others i can do ?

Code:
 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/
 
Old 03-18-2016, 04:34 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to compile driver module after upgrade to 3.13.0-35-generic pouldney Linux - Software 2 09-25-2014 09:26 AM
[SOLVED] SBo-Webkit does not compile on current; inkscape need gcc-4.8 patched source brobr Slackware 4 04-03-2013 08:38 AM
unable to compile gcc 4.1.2 pass 1 version 6.3 Abdou_ENSI Linux From Scratch 2 01-30-2009 11:28 AM
Swaret upgrade from 10.0 to current broke glibc - unable to login vharishankar Slackware 6 04-03-2006 12:30 AM
unable tu upgrade gcc on FC4 lcornea Linux - Newbie 5 01-27-2006 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration