Ehi Mojca, Thanks for the message. :)
I managed to fix it. I got confused because recently I updated Xcode, but in
facts the problem was completely unrelated: I had a project header file named
“math.h”. :) Very noob mistake! Interestingly enough, this bug does not pop-out
on Linux (using GCC).
So I just renamed “math.h” to a custom name, and now everything is back as
before (Ah, pay attention! Most of macOS systems have a case-insensitive
filesystem… I firstly renamed the file from “math.h” -> “Math.h”, but it didn’t
work either and it took a while to realize that on macOS “math.h” and “Math.h”
are the same if the FS is case-insensitive.
In any case thanks for your help! :)
_
-. .´ |∞∞∞∞
', ; |∞∞∞∞∞∞
˜˜ |∞∞∞∞∞∞∞∞∞ RdB
,., |∞∞∞∞∞∞
.' '. |∞∞∞∞
-' `’
https://rdb.is
On 8 November 2019 at 18:32:13, Mojca Miklavec ([email protected]) wrote:
Dear Ruben,
This definitely looks like a bug in Xcode. I would suggest you to file
a bug report to Apple.
Can you please try to compile a simple hello world with just the
following contents
// test.cpp:
#include <unordered_map>
int main() { return 0; }
and compile it with:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
test.cpp \
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
Mojca
On Fri, 8 Nov 2019 at 15:27, Ruben Di Battista
<[email protected]> wrote:
>
> Hello people,
>
> I saw this kind of errors quite often lately around. But this times I’m
> hitting this with a local project, not a port in Macports. A project that
> used to build correctly with Xcode 10, now it seems to miss stuff in <cmath>
> header.
>
> ninja -j 1
> [1/48] Building CXX object src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o
>
> FAILED: src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
> -DMercurve_EXPORTS -I../src/libs -isystem /opt/local/include/vtk-8.1
> -isystem /opt/local/include -isystem /opt/local/include/mpich-mp -isystem
> /opt/local/include/libxml2 -g -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
> -mmacosx-version-min=10.14 -fPIC -Wall -Wno-long-long -pedantic
> -fcolor-diagnostics -std=gnu++11 -MD -MT
> src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o -MF
> src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o.d -o
> src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o -c
> ../src/libs/BlockMerger.cxx
> In file included from ../src/libs/BlockMerger.cxx:21:
> In file included from ../src/libs/BlockMerger.h:28:
> In file included from ../src/libs/types.h:25:
> In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/unordered_set:363:
>
> In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__hash_table:19:
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:314:9:
> error: no member named 'signbit' in the global namespace
> […]
>
> I read a bit the tickets of other ports, but they don’t fit exactly with what
> I have. Any fast hint? Do I need to downgrade Xcode?
>
> _
> -. .´ |∞∞∞∞
> ', ; |∞∞∞∞∞∞
> ˜˜ |∞∞∞∞∞∞∞∞∞ RdB
> ,., |∞∞∞∞∞∞
> .' '. |∞∞∞∞
> -' `’
>
> https://rdb.is
signature.asc
Description: Message signed with OpenPGP using AMPGpg
