Bug 711427 - undefined reference to `python_function__return_semaphore'
Summary: undefined reference to `python_function__return_semaphore'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: rawhide
Hardware: powerpc
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-07 13:37 UTC by Karsten Hopp
Modified: 2011-08-01 14:03 UTC (History)
7 users (show)

Fixed In Version: systemtap-1.5-3.fc16
Clone Of:
Environment:
Last Closed: 2011-06-16 15:43:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karsten Hopp 2011-06-07 13:37:55 UTC
Description of problem:
python-2.7.1-8.fc16 fails to build on PPC, error messages are:
./libpython2.7_d.so: undefined reference to `python_function__return_semaphore'
./libpython2.7_d.so: undefined reference to `python_function__entry_semaphore'


The full logs are available at 
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=230340


Version-Release number of selected component (if applicable):
python-2.7.1-8.fc16


Additional info:
dmalcolm told me that the undefinded references refer to systemtap static probes,
adding the systemtap maintainer to CC:

Comment 1 Dennis Gilmore 2011-06-07 20:17:46 UTC
fails on both primary arches also http://koji.fedoraproject.org/koji/taskinfo?taskID=3117284

Comment 3 Stan Cox 2011-06-09 19:01:00 UTC
There is a configure check that is erroneously determining that it is building on an apple platform.  If this fails then it assumes apple:
   dtrace -G -o /dev/null -s ../../Include/pydtrace.d

Comment 4 Dave Malcolm 2011-06-11 16:01:57 UTC
Looks like Stan committed this to systemap to try to fix this:
http://pkgs.fedoraproject.org/gitweb/?p=systemtap.git;a=commit;h=997a62b0ad4e2a186b9034fd7bf1d4d1a2847a0d

Comment 5 Dave Malcolm 2011-06-13 21:34:27 UTC
Reopening; it just failed for me on this build:
  http://koji.fedoraproject.org/koji/buildinfo?buildID=247609
of:
  python-2.7.2-1.fc16

Looking in:
  http://koji.fedoraproject.org/koji/getfile?taskID=3128800&name=build.log
I see:
./libpython2.7_d.so: undefined reference to `python_function__return_semaphore'
./libpython2.7_d.so: undefined reference to `python_function__entry_semaphore'

But within:
  http://koji.fedoraproject.org/koji/getfile?taskID=3128800&name=root.log
I see:
  systemtap-sdt-devel-1.5-3.fc16.i686
was installed.

Having said that, "systemtap" itself doesn't seem to appear in that log.  (Do I need to explicitly add that as a BuildRequire also, or am I misreading this?)

Comment 6 Stan Cox 2011-06-16 15:36:50 UTC
systemtap-1.5-4 should resolve this.  There was another issue in addition to the #3 issue.  The python Makefile defined: CC=gcc -ptrace, and the dtrace script wasn't prepared to handle that.

Comment 7 Dave Malcolm 2011-06-22 19:48:39 UTC
I can confirm the fix : I just successfully built
  python-2.7.2-3.fc16
in rawhide, using:
  systemtap-sdt-devel-1.5-4.fc16

This was:
  http://koji.fedoraproject.org/koji/taskinfo?taskID=3153473


Thanks!

Comment 8 Richard Shaw 2011-08-01 14:03:34 UTC
This appears to be affecting F14/Python 2.7.0 as well. I'm trying to help with the miro move from Fedora to RPM Fusion due to the new ffmpeg requirement and it's running into a build problem that doesn't occur in F15. 

I tried building Python 2.7.1 for F14 and the build is failing with the exact same error.

Will Python 2.7.{1,2} make it into F14 (along with systemtap)?


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