[MacPorts] #53415: glpk 4.61 does not build on Mac OS X 10.6.8, Snow Leopard, because "Reentrancy needs complier support for TLS"
MacPorts
noreply at macports.org
Fri Jan 27 21:57:49 UTC 2017
#53415: glpk 4.61 does not build on Mac OS X 10.6.8, Snow Leopard, because
"Reentrancy needs complier support for TLS"
-----------------------+------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: glpk
-----------------------+------------------
The failure happens during the `configure` stage:
{{{
checking whether to use GNU MP bignum library... yes
checking whether to enable shared library support... no
checking whether to enable MathProg ODBC support... no
checking whether to enable MathProg MySQL support... no
checking whether to enable reentrancy support... yes
checking for thread local storage (TLS) class specifier... none
configure: error: Reentrancy needs complier support for TLS
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_math_glpk/glpk/work/glpk-4.61"
&& ./configure --prefix=/opt/local --with-gmp
}}}
`config.log` contains:
{{{
configure:11492: checking for thread local storage (TLS) class specifier
configure:11506: /usr/bin/llvm-gcc-4.2 -c -pipe -Os -arch x86_64
-I/opt/local/include conftest.c >&5
conftest.c: In function 'foo':
conftest.c:30: error: nested functions are disabled, use -fnested-
functions to re-enable
conftest.c:30: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'int'
configure:11506: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GLPK"
| #define PACKAGE_TARNAME "glpk"
| #define PACKAGE_VERSION "4.61"
| #define PACKAGE_STRING "GLPK 4.61"
| #define PACKAGE_BUGREPORT "bug-glpk at gnu.org"
| #define PACKAGE_URL ""
| #define PACKAGE "glpk"
| #define VERSION "4.61"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_LIBM 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GMP 1
| /* end confdefs.h. */
|
| #include <stdlib.h>
| static void foo(void)
| { static _Thread_local int bar;
| exit(1);
| }
configure:11506: /usr/bin/llvm-gcc-4.2 -c -pipe -Os -arch x86_64
-I/opt/local/include conftest.c >&5
conftest.c: In function 'foo':
conftest.c:30: error: thread-local storage not supported for this target
configure:11506: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GLPK"
| #define PACKAGE_TARNAME "glpk"
| #define PACKAGE_VERSION "4.61"
| #define PACKAGE_STRING "GLPK 4.61"
| #define PACKAGE_BUGREPORT "bug-glpk at gnu.org"
| #define PACKAGE_URL ""
| #define PACKAGE "glpk"
| #define VERSION "4.61"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_LIBM 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GMP 1
| /* end confdefs.h. */
|
| #include <stdlib.h>
| static void foo(void)
| { static __thread int bar;
| exit(1);
| }
configure:11506: /usr/bin/llvm-gcc-4.2 -c -pipe -Os -arch x86_64
-I/opt/local/include conftest.c >&5
conftest.c: In function 'foo':
conftest.c:30: error: nested functions are disabled, use -fnested-
functions to re-enable
conftest.c:30: error: invalid storage class for function '__declspec'
conftest.c: In function '__declspec':
conftest.c:31: error: expected declaration specifiers before 'exit'
conftest.c:32: error: expected declaration specifiers before '}' token
conftest.c:30: error: declaration for parameter 'bar' but no such
parameter
conftest.c:32: error: expected '{' at end of input
conftest.c: In function 'foo':
conftest.c:32: error: expected declaration or statement at end of input
configure:11506: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GLPK"
| #define PACKAGE_TARNAME "glpk"
| #define PACKAGE_VERSION "4.61"
| #define PACKAGE_STRING "GLPK 4.61"
| #define PACKAGE_BUGREPORT "bug-glpk at gnu.org"
| #define PACKAGE_URL ""
| #define PACKAGE "glpk"
| #define VERSION "4.61"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_LIBM 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GMP 1
| /* end confdefs.h. */
|
| #include <stdlib.h>
| static void foo(void)
| { static __declspec(thread) int bar;
| exit(1);
| }
configure:11511: result: none
configure:11520: error: Reentrancy needs complier support for TLS
}}}
I presume this functionality does not exist in `Snow Leopard` …
Presumingly `--disable-reentrant` has to used – which I'll try soon!
--
Ticket URL: <https://trac.macports.org/ticket/53415>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list