New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #31759 (closed defect: fixed)

Opened 20 months ago

Last modified 20 months ago

asymptote port fails

Reported by: schlenkwad@… Owned by: loshea@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: raphael@…
Port: asymptote

Description (last modified by ryandesign@…) (diff)

The port of asymptote fails. I am running under Lion.

The message is:

Error: Status 1 encountered during processing.

Log file contents:

version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main texinfo 4.13_2 exists in the ports tree
:debug:main texinfo 4.13_2  is the latest installed
:debug:main texinfo 4.13_2  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/texinfo
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! texinfo 4.13_2 >= texinfo 4.13_2
:debug:main epoch: in tree: 0 installed: 0
:debug:main gettext 0.18.1.1_2 exists in the ports tree

Attachments

main.log (152.8 KB) - added by schlenkwad@… 20 months ago.
this is the file referred to in terminal
Portfile.diff (384 bytes) - added by raphael@… 20 months ago.

Change History

comment:1 Changed 20 months ago by ryandesign@…

  • Keywords port failed removed
  • Owner changed from macports-tickets@… to loshea@…
  • Description modified (diff)

Please attach the entire main.log file.

comment:2 Changed 20 months ago by ryandesign@…

The log file contents you're showing above are for the texinfo port, not for the asymptote port.

Changed 20 months ago by schlenkwad@…

this is the file referred to in terminal

comment:3 Changed 20 months ago by schlenkwad@…

This is what I entered in terminal:

Daves-Macbook:asymptote dschlenkwad$ sudo port install asymptotePassword:---> Computing dependencies for asymptote ---> Building asymptote Error: Target org.macports.build returned: shell command failed (see log for details) Log for asymptote is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_asymptote/asymptote/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>

The attached main.log is the file referred to by the above message.

comment:4 Changed 20 months ago by raphael@…

Has duplicate #31801.

comment:5 follow-up: ↓ 7 Changed 20 months ago by raphael@…

  • Keywords haspatch added
  • Version 2.0.3 deleted

The relevant error in your log is:

:info:build ../asy -dir ../base -config "" -render=0 -f pdf -noprc Bode.asy
:info:build make[1]: *** [Bode.pdf] Segmentation fault: 11

This problem is basically the same as in #31079. Asymptote must be compiled with gcc-4.2, but the Makefile is not UsingTheRightCompiler.

I can reproduce your problem here with Xcode 4.2 and Mac OS X 10.6.8. The attached patch fixes the problem for me. Maintainer, may I commit it?

comment:6 Changed 20 months ago by raphael@…

  • Cc raphael@… added

Cc Me!

comment:7 in reply to: ↑ 5 Changed 20 months ago by raphael@…

Replying to raphael@…:

Asymptote must be compiled with gcc-4.2, but the Makefile is not UsingTheRightCompiler.

Well, the problem is actually that configure.cxx is not set. A modified patch is in the attachment.

Changed 20 months ago by raphael@…

comment:8 Changed 20 months ago by raphael@…

As long as the patch is not committed yet, you can use the following workaround to install asymptote:

sudo port clean asymptote
sudo port install asymptote configure.cxx=/opt/local/bin/g++-apple-4.2

comment:9 Changed 20 months ago by schlenkwad@…

THANK YOU THANK YOU THANK YOU!!!!!

That did the trick.

comment:10 Changed 20 months ago by raphael@…

  • Status changed from new to closed
  • Resolution set to fixed

Maintainer timeout. Fixed in r86738.

Note: See TracTickets for help on using tickets.