Opened 11 years ago

Closed 11 years ago

#37485 closed defect (fixed)

magicspp: C compiler cannot create executables

Reported by: staffan.scherloff@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: magicspp

Description

Magicpp 2.16.1 will not install on a freshly installed system. However, all dependencies will. Copy of log enclosed.

Attachments (5)

MAGICS.LOGG (95.8 KB) - added by staffan.scherloff@… 11 years ago.
installation log
Skärmavbild 2013-01-03 kl. 10.39.45.png (66.8 KB) - added by staffan.scherloff@… 11 years ago.
screendump Xcode
main.log (95.7 KB) - added by staffan.scherloff@… 11 years ago.
magics main.log
main_2.log (262.3 KB) - added by staffan.scherloff@… 11 years ago.
2nd log file
config.log (12.6 KB) - added by staffan.scherloff@… 11 years ago.
config.log

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by staffan.scherloff@…

Attachment: MAGICS.LOGG added

installation log

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: installation removed
Owner: changed from macports-tickets@… to takeshi@…
Port: magicspp added; magicpp 2.16.1 removed
Summary: magicpp will not installmagicspp: C compiler cannot create executables

As the log says:

:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.

This usually means the command line tools are not installed properly; please install them by opening Xcode.app, going to Preferences, to Downloads. If that doesn't fix it, please provide the afforementioned config.log file; it's in the directory identified by the command port work magicspp.

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

Trac is not for tech support and there is nothing to fix here. Please move to the Macports Users mailing list for further help.

Changed 11 years ago by staffan.scherloff@…

screendump Xcode

Changed 11 years ago by staffan.scherloff@…

Attachment: main.log added

magics main.log

comment:3 Changed 11 years ago by staffan.scherloff@…

The Command Line tools are installed - see enclosure. I have deleted all ports including the directories and made an reinstall of the port package again. Installing magicspp does not work, but all dependencies will compile nicely without any problem. In the log file - also attached - one can see that the installation script apparently can't find the c compiler, although it is installed properly. If the script is working, then please advise how to proceed.

Changed 11 years ago by staffan.scherloff@…

Attachment: main_2.log added

2nd log file

comment:4 Changed 11 years ago by staffan.scherloff@…

Resolution: invalid
Status: closedreopened

At least two dependencies are not resolved when installing magicspp: gcc45 (if this is chosen as variant) and SWIG. Moreover, netCDF does not install properly as netcdfcpp.h can't be found. A workaround for gcc45 was to install the port grads which builds it and SWIG can be installed as a separate port. The last one netcdfcpp.h is apparantly installed with the port netcdf-cxx. After these workarounds the magicspp compiles and installation terminates properly and apparently everything finishes OK. However, the port can not be executed and no logs are available since they are cleaned.

comment:5 Changed 11 years ago by jmroot (Joshua Root)

OK, so as Ryan said, we need to see the config.log.

Changed 11 years ago by staffan.scherloff@…

Attachment: config.log added

config.log

comment:6 Changed 11 years ago by staffan.scherloff@…

Attached, as requested, config.log.

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

configure:3703: checking for gcc
configure:3730: result: /opt/local/bin/gcc-mp-4.5
configure:3959: checking for C compiler version
configure:3968: /opt/local/bin/gcc-mp-4.5 --version >&5
./configure: line 3970: /opt/local/bin/gcc-mp-4.5: No such file or directory

So the problem is that the gcc45 variant doesn't add a build dependency on gcc45.

comment:8 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

Committed in r101134. Thanks.

comment:9 Changed 11 years ago by tenomoto (Takeshi Enomoto)

A few more fixes were required. See r101135 and r101136.

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

Resolution: fixed
Status: closedreopened

Actually magicspp is linking with gcc45's libraries, so it needs to be a library dependency.

$ otool -L /opt/local/lib/libMagPlus.dylib | grep gcc45
	/opt/local/lib/gcc45/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
	/opt/local/lib/gcc45/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
$ port provides /opt/local/lib/libMagPlus.dylib
/opt/local/lib/libMagPlus.dylib is provided by: magicspp

comment:11 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

Committed in r101186 and r101187.

Note: See TracTickets for help on using tickets.