Opened 12 years ago
Closed 12 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)
Change History (16)
Changed 12 years ago by staffan.scherloff@…
Attachment: | MAGICS.LOGG added |
---|
comment:1 Changed 12 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 install → magicspp: 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 12 years ago by mf2k (Frank Schima)
Resolution: | → invalid |
---|---|
Status: | new → closed |
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 12 years ago by staffan.scherloff@…
Attachment: | Skärmavbild 2013-01-03 kl. 10.39.45.png added |
---|
screendump Xcode
comment:3 Changed 12 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.
comment:4 Changed 12 years ago by staffan.scherloff@…
Resolution: | invalid |
---|---|
Status: | closed → reopened |
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 12 years ago by jmroot (Joshua Root)
OK, so as Ryan said, we need to see the config.log.
comment:7 Changed 12 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 12 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Committed in r101134. Thanks.
comment:9 Changed 12 years ago by tenomoto (Takeshi Enomoto)
comment:10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 12 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
installation log