Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#19 closed defect (fixed)

Problem building pbs_python 4.0.0

Reported by: vizino@… Owned by: somebody
Priority: major Milestone:
Component: pbs Version: 3.2.0
Keywords: Cc:



I just downloaded and tried to compile pbs_python-4.0.0 and got the
following error during the "make" step.  Here's the tail end of the
failing build:

running build_py
creating build
creating build/lib.linux-ia64-2.4
copying src/ -> build/lib.linux-ia64-2.4
copying src/ -> build/lib.linux-ia64-2.4
running build_ext
building '_pbs' extension
creating build/temp.linux-ia64-2.4
creating build/temp.linux-ia64-2.4/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -g -fPIC -DTORQUE_OLD -I/usr/include/python2.4 -c
src/pbs_wrap.c -o build/temp.linux-ia64-2.4/src/pbs_wrap.o
gcc -pthread -shared build/temp.linux-ia64-2.4/src/pbs_wrap.o
-L-L/usr/local/packages/torque/2.3.0/lib -ltorque -Wl,--rpath
-Wl,/usr/local/packages/torque/2.3.0/lib -ltorque -o
cannot find -ltorque
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
make: *** [pythonlib] Error 1

It looks like a stray "-L" was inserted in the gcc line.  Rerunning the
failing gcc without the stray "-L" worked fine:

gcc -pthread -shared build/temp.linux-ia64-2.4/src/pbs_wrap.o
-L/usr/local/packages/torque/2.3.0/lib -ltorque -Wl,--rpath
-Wl,/usr/local/packages/torque/2.3.0/lib -ltorque -o

In case it helps I ran configure first as follows:

./configure --prefix=/usr/local/packages/pbs_python/4.0.0

with no errors.

   -Chad Vizino
    Pittsburgh Supercomputing Center

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by bas

  • Status changed from new to closed

(In [230]) Fixed a bug in setting the right compiler path for the library, closes #19

comment:2 Changed 13 years ago by bas

(In [231]) New version 4.0.1 with a small fix, see #19

Add Comment

Modify Ticket

Change Properties
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.