[MacPorts] #58930: gcc 8.3.0_4 with _XOPEN_SOURCE=500 breaks with #include <complex>
MacPorts
noreply at macports.org
Wed Sep 4 20:12:43 UTC 2019
#58930: gcc 8.3.0_4 with _XOPEN_SOURCE=500 breaks with #include <complex>
----------------------+--------------------
Reporter: bernstei | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
----------------------+--------------------
Compiling a trivial file, that just contains '#include <complex>' with the
following command line fails as shown:
{{{
> g++ -c -std=c++0x -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED=1
t.cpp
In file included from /opt/local/include/gcc8/c++/system_error:39,
from /opt/local/include/gcc8/c++/bits/ios_base.h:46,
from /opt/local/include/gcc8/c++/ios:42,
from /opt/local/include/gcc8/c++/istream:38,
from /opt/local/include/gcc8/c++/sstream:38,
from /opt/local/include/gcc8/c++/complex:45,
from t.cpp:1:
/opt/local/include/gcc8/c++/x86_64-apple-
darwin18/bits/error_constants.h:135:24: error: 'EOWNERDEAD' was not
declared in this scope
owner_dead = EOWNERDEAD,
^~~~~~~~~~
/opt/local/include/gcc8/c++/x86_64-apple-
darwin18/bits/error_constants.h:151:34: error: 'ENOTRECOVERABLE' was not
declared in this scope
state_not_recoverable = ENOTRECOVERABLE,
^~~~~~~~~~~~~~~
> cat t.cpp
#include <complex>
> g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin18/8.3.0
/lto-wrapper
Target: x86_64-apple-darwin18
Configured with:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc8/gcc8/work/gcc-8.3.0/configure
--prefix=/opt/local --build=x86_64-apple-darwin18 --enable-
languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc8
--includedir=/opt/local/include/gcc8 --infodir=/opt/local/share/info
--mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-8 --with-
local-prefix=/opt/local --with-system-zlib --disable-nls --program-
suffix=-mp-8 --with-gxx-include-dir=/opt/local/include/gcc8/c++/ --with-
gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto
--enable-libstdcxx-time --with-build-config=bootstrap-debug --with-
as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-
ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
--disable-tls --with-pkgversion='MacPorts gcc8 8.3.0_4' --with-
sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
Thread model: posix
gcc version 8.3.0 (MacPorts gcc8 8.3.0_4)
}}}
This appears to happen to other people sometimes (e.g. https://github.com
/arbor-sim/arbor/issues/562), but I didn't see any evidence of a related
ticket on macports.
--
Ticket URL: <https://trac.macports.org/ticket/58930>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list