Opened 10 years ago

Closed 9 years ago

#28210 closed defect (worksforme)

py26-pybox2d: Swig error prevents the port from compiling.

Reported by: jb@… Owned by: stromnov (Andrew Stromnov)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Schmidt), nathanielvirgo
Port: py26-pybox2d

Description (last modified by jmroot (Joshua Root))

Swig syntax error causes the port to fail to compile. Slight digging around doesn't show an easily identified syntax error in the input file for swig.

hostname:jb jb$ sudo port -v install py26-pybox2d--->  Computing dependencies for py26-pybox2d.--->  Fetching py26-pybox2d
--->  Verifying checksum(s) for py26-pybox2d
--->  Checksumming Box2D-2.0.2b1.zip
--->  Extracting py26-pybox2d
--->  Extracting Box2D-2.0.2b1.zip
--->  Applying patches to py26-pybox2d
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-pybox2d/files/patch-Box2D-Box2D.i.diff
patching file Box2D/Box2D.i
--->  Configuring py26-pybox2d
--->  Building py26-pybox2d
Using setuptools.
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-2.6
creating build/lib.macosx-10.6-x86_64-2.6/Box2D
copying ./__init__.py -> build/lib.macosx-10.6-x86_64-2.6/Box2D
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
swig -python -c++ -IBox2D -O -includeall -ignoremissing -w201 -outdir . -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
Box2D/Box2D_printing.i:29: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pybox2d/work/Box2D-2.0.2b1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for py26-pybox2d): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for py26-pybox2d is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pybox2d/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log (23.9 KB) - added by jb@… 10 years ago.
Log from py26-pybox2d build attempt.

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by jb@…

Attachment: main.log added

Log from py26-pybox2d build attempt.

comment:1 Changed 10 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: box2d py26-pybox2d error swig removed
Owner: changed from macports-tickets@… to stromnov@…

Please remember to preview and use WikiFormatting, and to cc the maintainer.

comment:2 in reply to:  1 Changed 10 years ago by jb@…

Replying to jmr@…:

Please remember to preview and use WikiFormatting, and to cc the maintainer.

Will do in the future. Kind of new to ticketing in Trac and didn't think to add that info in.

Couple of additional details:

  System Version:	Mac OS X 10.6.5 (10H574)
  Kernel Version:	Darwin 10.5.0
  64-bit Kernel and Extensions:	No
  Time since boot:	30 days 22:12

Hardware Overview:

  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro6,2
  Processor Name:	Intel Core i5
  Processor Speed:	2.4 GHz
  Number Of Processors:	1
  Total Number Of Cores:	2
  L2 Cache (per core):	256 KB
  L3 Cache:	3 MB
  Memory:	4 GB
  Processor Interconnect Speed:	4.8 GT/s
  Boot ROM Version:	MBP61.0057.B0C
  SMC Version (system):	1.58f16

comment:3 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added
Summary: Swig error in py26-pybox2d prevents the port from compiling.py26-pybox2d: Swig error prevents the port from compiling.

Do you still see this problem with py26-pybox2d 2.0.2b2? It compiles fine for me.

comment:4 in reply to:  3 Changed 9 years ago by nathanielvirgo

I had this problem yesterday, but it's gone away today. What I did was run

sudo port upgrade outdated and not py26-pybox2d

which ran for a few hours before I had to switch the machine off and go home. (It's been a long time since I upgraded.) Then when I came in this morning I ran

sudo port upgrade outdated

and it upgraded a bunch of stuff, including successfully updating pybox2d. So I guess there must be some kind of unaccounted-for dependency on one of the other packages that got updated on my machine yesterday? I'm not sure but I think Swig was one of the things that was upgraded, so maybe it's that?

I'll be happy to provide any extra information that might be helpful, as long as you can tell me exactly what to type - I'm not terribly au fait with how the ports system works.

Nathaniel

Replying to ryandesign@…:

Do you still see this problem with py26-pybox2d 2.0.2b2? It compiles fine for me.

comment:5 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: nathanielvirgo@… added

comment:6 in reply to:  5 Changed 9 years ago by jb@…

Replying to ryandesign@…:

I should probably close this. It's a year out of date, and several people have reported no problems with swig or compiling the port.

I've had to move on from the play project with pybox2d due to work projects piling up.

comment:7 Changed 9 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Closing as per comment:6.

Note: See TracTickets for help on using tickets.