Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#19437 closed defect (fixed)

gsl build error on PowerPC

Reported by: anddam (Andrea D'Amore) Owned by: jochen@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: gsl powerpc ppc march error Cc:
Port: gsl

Description (last modified by anddam@…)

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.

Change History (5)

comment:1 Changed 16 years ago by anddam@…

Cc: jochen@… added

comment:2 Changed 16 years ago by anddam@…

Cc: jochen@… removed
Owner: changed from macports-tickets@… to jochen@…

comment:3 Changed 16 years ago by anddam@…

Description: modified (diff)

comment:4 Changed 16 years ago by jochen@…

Resolution: fixed
Status: newclosed

Fixed in r50121

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.