My system is OS X El Capitan (10.11.3). I'm trying to install dev-python/numpy with USE=lapack, which pulls in sys-devel/gcc-apple. Compilation of the latter fails: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode It seems to be the same as bug #491098 and I'll attach the patch from that bug. Reproducible: Always Steps to Reproduce: emerge --oneshot sys-devel/gcc-apple
Created attachment 425508 [details] build.log
Created attachment 425510 [details, diff] ebuild patch
Created attachment 425512 [details, diff] gcc patch
While I think it may be handy to have gcc-apple compile with llvm, I think that numpy shouldn't depend on gcc (or is it that it needs fortran or something?) We should try to persuede it to use clang instead.
It is indeed the requirement for fortran.
I seem to recall that using -std=c89 fixes this, because clang defaults to c99 mode, in contrast to gcc.
This came up in bug 491098 too, but the patch was considered an acceptable workaround. It seems like this wouldn't be worth a lot of work.
I've just pushed the -std=gnu89 bit to the gcc-apple ebuild, which should do for this bug. I don't believe gcc-apple is going to be useful in the current scenario any more, but that's a separate issue.
Thanks, that works.