Bug 238112 - libstdc++.a symbolic link to non existing file
Summary: libstdc++.a symbolic link to non existing file
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 6
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-04-27 08:50 UTC by Feike Boomstra
Modified: 2007-11-30 22:12 UTC (History)
0 users

Clone Of:
Last Closed: 2007-04-27 09:03:37 UTC

Attachments (Terms of Use)

Description Feike Boomstra 2007-04-27 08:50:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20070313 Fedora/ Firefox/

Description of problem:
I have installed intel's icpc compiler in FC6.
When I try to compile a simple program I get the following output:

[feike@feike ~]$ icpc -fast HelloWorld.c++
IPO: performing single-file optimizations
IPO: generating object file /tmp/ipo_icpcLfw3xp.o
ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/../libstdc++.a when searching for -lstdc++
ld: cannot find -lstdc++
[feike@feike ~]$ 

I did some more investigations:

is a symbolic link to:
 -> ../../../i386-redhat-linux/4.1.1/libstdc++.a

but this file does not exist. Even the directory doesn't exist.

I have installed:

but that doesn't help.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.icpc -fast HelloWorld.c++

Actual Results:
Doesn't compile.
ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/../libstdc++.a when searching for -lstdc++
ld: cannot find -lstdc++

Expected Results:
correct compilation and linking.

Additional info:

Comment 1 Jakub Jelinek 2007-04-27 09:03:37 UTC
If you want to link 32-bit C++ programs on x86_64, you need to make sure
libstdc++-4.1.*.i386.rpm is installed.

Comment 2 Feike Boomstra 2007-04-27 11:08:47 UTC
The i386 as well as the x86_64 is installed, but it doesn't provide the file

[feike@feike ~]$ rpm -q libstdc++
[feike@feike ~]$ rpm -ql libstdc++

Comment 3 Jakub Jelinek 2007-04-27 11:15:02 UTC
Yeah, but you certainly don't have libstdc++-devel-4.1.1-51.fc6.i386.rpm
installed.  libstdc++ is the runtime library only package, libstdc++-devel
is for compilation/linking against that.

Comment 4 Feike Boomstra 2007-04-27 12:39:45 UTC
You are right, but I have the libstdc++-devel-4.1.1-51.fc6.x86_64.rpm installed, 
[feike@feike ~]$ rpm -qi libstdc++-devel
Name        : libstdc++-devel              Relocations: (not relocatable)
Version     : 4.1.1                             Vendor: Red Hat, Inc.
Release     : 51.fc6                        Build Date: Sat 06 Jan 2007 08:26:12
Install Date: Sun 22 Apr 2007 10:33:20 AM CEST      Build Host:
Group       : Development/Libraries         Source RPM: gcc-4.1.1-51.fc6.src.rpm
Size        : 75468132                         License: GPL
Signature   : DSA/SHA1, Wed 10 Jan 2007 04:22:34 PM CET, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://gcc.gnu.org
Summary     : Header files and libraries for C++ development
Description :
This is the GNU implementation of the standard C++ libraries.  This
package includes the header files and libraries needed for C++
development. This includes rewritten implementation of STL.

and rpm refuse to install the i386 package:

package allready installed.

Comment 5 Jakub Jelinek 2007-04-27 12:53:12 UTC
Not sure how you tried to install it, it certainly works for me.
yum install libstdc++-devel.i386
works just fine.

Comment 6 Feike Boomstra 2007-04-27 13:35:54 UTC
You are right, yum works fine. I've got it working.

(Nb. What I tried: I downloaded the rpm file and in the download window there is
an option open. With that installer I was not able to install the package.)

Appearantly it was not a bug, so you are welcome to close it right away, but can
you tell me where I can find the info how to solve such an issue myself?

Anyway, thanks a lot,
kind regards,
Feike Boomstra

Comment 7 Feike Boomstra 2007-04-28 08:49:45 UTC
With all things running, I finally was able to find out how things went. In one
way or another I had installed the i386 version of the compiler. Appearantly
there is a dependency missing to the devel library.

Note You need to log in before you can comment on or make changes to this bug.