Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#51724 closed enhancement (fixed)

compilers-1.0: default to gcc6

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: seanfarley (Sean Farley), dstrubbe (David Strubbe), gnw3
Port:

Description

The compilers 1.0 portgroup contains this line:

set compilers.gcc_default gcc5

Can this be changed to gcc6? gcc6 is the latest stable version of gcc at this time.

Change History (10)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

I switched to gcc6 for my ports and everything appears to work. However, I believe such a change should be brought up on the dev list to make sure that no one sees a problem with this.

$ port installed | grep gcc
  eigen3 @3.2.8_0+gcc6 (active)
  fftw-3 @3.3.4_1+gcc6 (active)
  gcc6 @6.1.0_0 (active)
  gcc_select @0.1_8 (active)
  gsl @2.1_0+gcc6 (active)
  hdf5 @1.10.0_1+cxx+gcc6+hl (active)
  libgcc @6.1.0_0 (active)
  py27-numpy @1.11.1_0+gcc6 (active)
  py35-h5py @2.6.0_0+gcc6 (active)
  py35-numpy @1.11.1_0+gcc6 (active)
  py35-scipy @0.17.1_0+gcc6 (active)

comment:2 Changed 8 years ago by seanfarley (Sean Farley)

Sounds fine to me.

comment:3 Changed 8 years ago by gnw3

Cc: gnwiii@… added

Cc Me!

comment:4 Changed 8 years ago by dstrubbe (David Strubbe)

Committed in r152068.

comment:5 Changed 8 years ago by dstrubbe (David Strubbe)

Resolution: fixed
Status: newclosed

comment:6 Changed 8 years ago by mojca (Mojca Miklavec)

I wonder if it would make sense to set this back to version 5 for 10.5/PPC (#51388). It might not help much though if default version is hardcoded at so many other places.

comment:7 Changed 8 years ago by dstrubbe (David Strubbe)

Oh, I was not aware of that ticket. Yes we could certainly have the default set differently in that case. There are a lot of ports using the compilers portgroup although it is a minority of course, so it would help somewhat.

comment:8 in reply to:  6 Changed 8 years ago by dstrubbe (David Strubbe)

Replying to mojca@…:

I wonder if it would make sense to set this back to version 5 for 10.5/PPC (#51388). It might not help much though if default version is hardcoded at so many other places.

What is the proper way to write an if-condition that would check if we have 10.5/PPC?

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

If the issue is really specific to 10.5 PPC, you could write:

if {${os.platform} eq "darwin" && ${os.version} == 9 && ${os.arch} eq "powerpc"} {
    set compilers.gcc_default gcc5 
} else {
    set compilers.gcc_default gcc6 
}

Of course, I would rather fix #51388.

comment:10 Changed 8 years ago by dstrubbe (David Strubbe)

Committed r152299, pending solution of that ticket.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.