New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21336 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

config.log Download (9.5 KB) - added by luis.beca@… 2 years ago.
gcc43_config.log Download (9.3 KB) - added by jwhowse4@… 2 years ago.
Portfile Download (3.4 KB) - added by jwhowse4@… 2 years ago.
Portfile that worked under Leopard with Macports GCC 4.3

Change History

  Changed 2 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to jochen@…
  • version 1.8.0 deleted
  • type changed from request to enhancement

follow-ups: ↓ 3 ↓ 5   Changed 2 years ago by jochen@…

  • status changed from new to closed
  • resolution set to fixed

Done in r57589 (untested and unsupported)

in reply to: ↑ 2   Changed 2 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 2 years ago by luis.beca@…

  Changed 2 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.

in reply to: ↑ 2   Changed 2 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.

  Changed 2 years ago by jwhowse4@…

I am trying to compile with gcc43 not gcc44 and I am still getting this failure.

  Changed 2 years ago by jochen@…

So what's the relevant part of config.log?

  Changed 2 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 2 years ago by jwhowse4@…

  Changed 2 years ago by jochen@…

  • keywords -arch gsl gcc43 gcc44 added
  • cc macports-dev added
  • version set to 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.

  Changed 2 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.

  Changed 2 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 2 years ago by jwhowse4@…

Portfile that worked under Leopard with Macports GCC 4.3

Note: See TracTickets for help on using tickets.