#21336 closed enhancement (fixed)
Add a gcc44 variant to gsl
Reported by: | luis.beca@… | Owned by: | jochen@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | -arch gsl gcc43 gcc44 | Cc: | macports-dev |
Port: | gsl |
Description
Please add a gcc44 variant to gsl.
Attachments (3)
Change History (14)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to jochen@… |
---|---|
Type: | request → enhancement |
Version: | 1.8.0 |
comment:2 follow-ups: 3 5 Changed 15 years ago by jochen@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 15 years ago by luis.beca@…
Replying to jochen@…:
Done in r57589 (untested and unsupported)
Doesn't build on Snow Leopard:
$ sudo port -vu install gsl +gcc44 ---> Computing dependencies for gsl. ---> Fetching gsl ---> gsl-1.13.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/gsl ---> Attempting to fetch gsl-1.13.tar.gz from http://distfiles.macports.org/gsl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch gsl-1.13.tar.gz from http://mirrors.kernel.org/gnu/gsl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2943k 100 2943k 0 0 210k 0 0:00:13 0:00:13 --:--:-- 194k ---> Verifying checksum(s) for gsl ---> Checksumming gsl-1.13.tar.gz ---> Extracting gsl ---> Extracting gsl-1.13.tar.gz ---> Configuring gsl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make sets $(MAKE)... (cached) yes checking build system type... i386-apple-darwin10.0.0 checking host system type... i386-apple-darwin10.0.0 checking for gcc... ccache gcc-mp-4.4 checking for C compiler default output file name... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gsl/work/gsl-1.13': configure: error: C compiler cannot create executables See `config.log' for more details. Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gsl/work/gsl-1.13" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 77 Command output: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make sets $(MAKE)... (cached) yes checking build system type... i386-apple-darwin10.0.0 checking host system type... i386-apple-darwin10.0.0 checking for gcc... ccache gcc-mp-4.4 checking for C compiler default output file name... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gsl/work/gsl-1.13': configure: error: C compiler cannot create executables See `config.log' for more details. Warning: the following items did not execute (for gsl): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
Changed 15 years ago by luis.beca@…
Attachment: | config.log added |
---|
comment:4 Changed 15 years ago by jwhowse4
I get the same error on an Intel Mac running Leopard 10.5.8 with Xcode 3.1.3 when trying to compile with MacPorts compiler gcc 4.3.4.
comment:5 Changed 15 years ago by jochen@…
As I said before, this is untested and unsupported:
Done in r57589 (untested and unsupported)
Please provide a patch to make it work, I will happily apply it.
comment:6 Changed 15 years ago by jwhowse4
I am trying to compile with gcc43 not gcc44 and I am still getting this failure.
comment:8 Changed 15 years ago by jwhowse4
Here what happens. When I run an install I get the following error.
port -v install gsl +gcc43 +doc Error: gsl: Variant gcc43 conflicts with gcc43 Error: Unable to open port: Error evaluating variants
This is just because the Portfile says that gcc43 conflicts with gcc43. I believe this should read gcc43 conflicts with gcc44. Making this change to the Portfile and trying the install again gives the following error.
port -v install gsl +gcc43 +doc ---> Computing dependencies for gsl. ---> Fetching gsl ---> Verifying checksum(s) for gsl ---> Checksumming gsl-1.13.tar.gz ---> Extracting gsl ---> Extracting gsl-1.13.tar.gz ---> Configuring gsl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/macports/bin/gmkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make sets $(MAKE)... (cached) yes checking build system type... i386-apple-darwin9.8.0 checking host system type... i386-apple-darwin9.8.0 checking for gcc... gcc-mp-4.3 checking for C compiler default output file name... configure: error: in `/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_math_gsl/work/gsl-1.13': configure: error: C compiler cannot create executables See `config.log' for more details.
This looks to me like the same error the gentlemen above obtained when trying to compile using gcc44. I will also attach my config.log file.
Changed 15 years ago by jwhowse4
Attachment: | gcc43_config.log added |
---|
comment:9 Changed 15 years ago by jochen@…
Cc: | macports-dev added |
---|---|
Keywords: | -arch gsl gcc43 gcc44 added |
Version: | → 1.8.0 |
So the problem is that MacPorts since version 1.8 apparently automagically adds
-arch x86_64
to the cflags and the MacPorts GCCs don't understand that...
I'll see how to disable it, but any feedback is welcome.
comment:10 Changed 15 years ago by jochen@…
Well, this might take a while, as I can not compile gcc43 nor gcc44 on Snow Leopard (which is all I have), see Ticket #20816. If you can figure out how to remove the "-arch ..." statements from configure.cflags and friends, I'll implement it.
comment:11 Changed 15 years ago by jwhowse4
Attached is a Portfile that worked for me. I am using an Intel Mac running Leopard 10.5.8 and compiling with the Macports GCC 4.3.4 compiler.
Changed 15 years ago by jwhowse4
Portfile that worked under Leopard with Macports GCC 4.3
Done in r57589 (untested and unsupported)