Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Feb 2016 10:13:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206886] math/openblas: Update to 0.2.15
Message-ID:  <bug-206886-13-hnjuAvAEzF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206886-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206886-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206886

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

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

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 li=
kely
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206886-13-hnjuAvAEzF>