[Bug 206886] math/openblas: Update to 0.2.15

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 5 10:13:12 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206886

--- Comment #6 from Raphael Kubo da Costa <rakuco at FreeBSD.org> ---
Hi,

The patch from comment #5 fails to build on 9.3 because base's GCC is too old:

memory.c:1341: error: wrong number of arguments specified for 'constructor'
attribute
memory.c:1384: error: wrong number of arguments specified for 'destructor'
attribute

Line 1341 is:
void CONSTRUCTOR gotoblas_init(void) {

And the failure comes from the fact that CONSTRUCTOR is being defined like
this:
#if defined(_MSC_VER) && !defined(__clang__)
#define CONSTRUCTOR __cdecl
#define DESTRUCTOR __cdecl
#elif defined(OS_DARWIN) && defined(C_GCC)
#define CONSTRUCTOR     __attribute__ ((constructor))
#define DESTRUCTOR      __attribute__ ((destructor))
#else
#define CONSTRUCTOR     __attribute__ ((constructor(101)))
#define DESTRUCTOR      __attribute__ ((destructor(101)))
#endif

GCC 4.2.1 does not understand the constructor(priority) syntax, which is likely
why there's an OS X-specific definition before that.

You need to either add a patch to use that one when an old GCC is being used
(or just check for __FreeBSD_version) or require a more recent compiler.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list