<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>177065</bug_id>
          
          <creation_ts>2007-05-04 17:14 0000</creation_ts>
          <short_desc>sys-cluster/lam-mpi-7.1.2 USE=&apos;-pbs&apos; emerge  fails if third party libpbs.a is present</short_desc>
          <delta_ts>2008-01-17 03:18:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pogosyan@phys.ualberta.ca</reporter>
          <assigned_to>hp-cluster@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>pogosyan@phys.ualberta.ca</who>
            <bug_when>2007-05-04 17:14:29 0000</bug_when>
            <thetext>This is a variation on bug http://bugs.gentoo.org/show_bug.cgi?id=119479

USE=&apos;-pbs&apos; emerge lam-mpi 

fails

....
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libpbs.a(tm.o): relocation R_X86_64_32S against `a local symbol&apos; can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpbs.a: could not read symbols: Bad value
.....

as in 119479, which linked the issue to problem within libpbs.a

However, the bug is that I try to compile without pbs support , however ebuild finds some third party libpbs installed and crashes (I do not have any Gentoo pbs packages installed and I was not even aware that I have libpbs in /usr/local ).

Removing /usr/local/lib/libpbs.a   out of the way allows emerge to finish successfully.
I hope run-time is not affected if I move libpbs.a back into place.

To summarize,  -pbs flag should ignore any pbs installations cleanly.

Reproducible: Always

Steps to Reproduce:
1. emerge -pv lam-mpi
[ebuild  N    ] sys-cluster/lam-mpi-7.1.2  USE=&quot;crypt -debug fortran -pbs -xmpi&quot;

2. emerge lam-mpi

Actual Results:  
....
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libpbs.a(tm.o): relocation R_X86_64_32S against `a local symbol&apos; can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpbs.a: could not read symbols: Bad value
.....

(/usr/local/lib/libpbs.a   is third party pbs installation)

Expected Results:  
clean emerge</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsbronder@gentoo.org</who>
            <bug_when>2008-01-17 03:18:59 0000</bug_when>
            <thetext>I believe I&apos;ve fixed this in lam-mpi-7.1.4 according to the advice posted at:  http://www.lam-mpi.org/MailArchives/lam/2006/05/12445.php

If this is not the case, please reopen the bug and thanks for the report.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>