Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#32268 closed defect (fixed)

py26-pynifti failed to build with clang

Reported by: william1121@… Owned by: jameskyle@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc:
Port: py26-pynifti

Description

I don't quite understand why, therefore I attached .log file

a little bit urgent...

Thanks for help in advance

Attachments (1)

main.log (37.7 KB) - added by william1121@… 12 years ago.

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by william1121@…

Attachment: main.log added

comment:1 in reply to:  description ; Changed 12 years ago by nonstop.server@…

Replying to william1121@…:

I don't quite understand why, therefore I attached .log file

a little bit urgent...

Thanks for help in advance

You can try to use a different compiler instead of clang.
How to do that is described in the Problem Hotlist of the MacPorts Wiki.

comment:2 in reply to:  1 ; Changed 12 years ago by william1121@…

Replying to nonstop.server@…:

Replying to william1121@…:

I don't quite understand why, therefore I attached .log file

a little bit urgent...

Thanks for help in advance

You can try to use a different compiler instead of clang.
How to do that is described in the Problem Hotlist of the MacPorts Wiki.

limatoMac-Pro:~ li$ sudo port install foo configure.compiler=llvm-gcc-4.2
Error: Port foo not found
To report a bug, see <http://guide.macports.org/#project.tickets>

It seems that I cannot find foo?

comment:3 in reply to:  2 Changed 12 years ago by nonstop.server@…

Replying to william1121@…:

limatoMac-Pro:~ li$ sudo port install foo configure.compiler=llvm-gcc-4.2 Error: Port foo not found To report a bug, see <http://guide.macports.org/#project.tickets>

It seems that I cannot find foo?

Instead of foo you need to enter the port you want to install, in this case py26-pynifti.
e.g.,

sudo port clean py26-pynifti
sudo port install py26-pynifti configure.compiler=llvm-gcc-4.2

comment:4 Changed 12 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jameskyle@…
Port: py26-pynifti added
Priority: HighNormal

In the future, please fill in the Port field, Cc the maintainer(s) and leave the priority field to be set by Macports committers.

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

Keywords: clang added
Summary: failed to install py26-pyniftipy26-pynifti failed to build with clang

comment:6 in reply to:  4 ; Changed 12 years ago by william1121@…

Replying to macsforever2000@…:

In the future, please fill in the Port field, Cc the maintainer(s) and leave the priority field to be set by Macports committers.

Oh. OK, I'll pay attention in the future. Thanks for your help and sorry for my mistakes

comment:7 in reply to:  6 Changed 12 years ago by grid-admin@…

Replying to william1121@…:

Replying to macsforever2000@…:

In the future, please fill in the Port field, Cc the maintainer(s) and leave the priority field to be set by Macports committers.

Oh. OK, I'll pay attention in the future. Thanks for your help and sorry for my mistakes

The package is still broken.

Here is a patch, I will try to submit this to upstream as well:

 --- setup.py    2012-02-10 17:42:10.000000000 +0100
 +++ setup_fixed.py      2012-02-10 17:42:32.000000000 +0100
 @@ -21,7 +21,7 @@
  # Common configuration #
  ########################
  
 -extra_link_args = ['--Wl,--no-undefined']
 +extra_link_args = ['-Wl','-no-undefined']
  include_dirs = []
  library_dirs = []
  defines = []

cheers

comment:8 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

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

This didn't fix it; see #35443.

Note: See TracTickets for help on using tickets.