#19437: gsl build error on PowerPC -----------------------------------------+---------------------------------- Reporter: anddam@… | Owner: jochen@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: gsl powerpc ppc march error | Port: gsl -----------------------------------------+---------------------------------- Description changed by anddam@…: Old description:
When building gsl on G4 I get this in '''config.log''':
{{{ configure:2931: $? = 1 configure:2954: checking for C compiler default output file name configure:2981: gcc-mp-4.3 -O2 -ftree-vectorize -march=native -O3 -I/opt/local/include -L/opt/local/lib conftest .c >&5 cc1: error: unrecognized command line option "-march=native" configure:2984: $? = 1 configure:3022: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "gsl" | #define PACKAGE_TARNAME "gsl" | #define PACKAGE_VERSION "1.12" | #define PACKAGE_STRING "gsl 1.12" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gsl" | #define VERSION "1.12" | #define RELEASED | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3029: error: C compiler cannot create executables See `config.log' for more details.
}}}
This happens as the gccc43 variant has '''-march=native''' in '''configure.cflags''' that is an option only valid for i386 architecture.
I suggest either removing it (that I did) or selectively enabling it for i386 or either removing it for PPC with a specific variant.
New description: When building gsl on G4 I get this in '''config.log''': {{{ configure:2931: $? = 1 configure:2954: checking for C compiler default output file name configure:2981: gcc-mp-4.3 -O2 -ftree-vectorize -march=native -O3 -I/opt/local/include -L/opt/local/lib conftest .c >&5 cc1: error: unrecognized command line option "-march=native" configure:2984: $? = 1 configure:3022: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "gsl" | #define PACKAGE_TARNAME "gsl" | #define PACKAGE_VERSION "1.12" | #define PACKAGE_STRING "gsl 1.12" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gsl" | #define VERSION "1.12" | #define RELEASED | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3029: error: C compiler cannot create executables See `config.log' for more details. }}} This happens as the gcc43 variant has '''-march=native''' in '''configure.cflags''' that is an option only valid for i386 architecture. I suggest either removing it (that I did) or selectively enabling it for i386 or either removing it for PPC with a specific variant. -- -- Ticket URL: <http://trac.macports.org/ticket/19437#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS