Bug 217069

Summary: /usr/bin/ld: cannot find -lgcj
Product: [Fedora] Fedora Reporter: Andrew Cagney <cagney>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: dnovillo, dwmw2
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-23 18:49:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 173278    

Description Andrew Cagney 2006-11-23 17:32:55 UTC
Description of problem:

Given a minimal install machine with rpms added using (ref:
http://sourceware.org/frysk/build/#fc6 ):

torreja$ sudo yum install -y \
    antlr jdom junit gcc-java gcc-c++ dejagnu \
    libglade-java-devel libvte-java-devel \
    automake xmlto transfig eclipse-ecj dogtail \
    sharutils cvs audit-libs-devel binutils-devel
torreja$ sudo yum install -y \
    glibc-devel.ppc

the command:

torreja$ gcj -m64  -g -O   -o frysk2493/Npe --main=Npe frysk2493/Npe.o
/usr/bin/ld: cannot find -lgcj
collect2: ld returned 1 exit status

fails.  For reference:

$ rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | grep gcj
java-1.4.2-gcj-compat.ppc
libgcj-devel.ppc64
libgcj.ppc
libgcj.ppc64

torreja is in toronto

Comment 1 Andrew Cagney 2006-11-23 17:44:15 UTC
work-around?

torreja$ sudo yum install libgcj-devel.ppc
torreja$ rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | grep gcj
libgcj-devel.ppc
java-1.4.2-gcj-compat.ppc
libgcj.ppc
libgcj.ppc64
torreja$ gcj -m64  -g -O   -o frysk2493/Npe --main=Npe frysk2493/Npe.o
torreja$

confused!


Comment 2 Jakub Jelinek 2006-11-23 18:49:22 UTC
You want gcc 4.1.1-35 and above, this sounds like a dup of #214195.

*** This bug has been marked as a duplicate of 214195 ***

Comment 3 Andrew Cagney 2006-11-23 19:03:18 UTC
$ ssh torreja rpm -q gcc
gcc-4.1.1-30

so yes, likely.  When is 4.1.1-35 gcc available on FC-6?