<html><head><style>body{font-family:Merriweather,Arial;font-size:13px}</style></head><body><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">Ehi Mojca, </div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><br></div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">Thanks for the message. :)</div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><br></div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><div style="margin: 0px;">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). </div><div style="margin: 0px;"><br></div><div style="margin: 0px;">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. </div><div style="margin: 0px;"><br></div><div style="margin: 0px;">In any case thanks for your help! :)</div></div> <br> <div class="gmail_signature"><pre><code>          _   
-.     .´  |∞∞∞∞
  ',  ;    |∞∞∞∞∞∞
    ˜˜     |∞∞∞∞∞∞∞∞∞ RdB
    ,.,    |∞∞∞∞∞∞
  .'   '.  |∞∞∞∞
-'       `’

https://rdb.is
</code></pre></div> <br><p class="airmail_on">On 8 November 2019 at 18:32:13, Mojca Miklavec (<a href="mailto:mojca@macports.org">mojca@macports.org</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Dear Ruben,
<br>
<br>This definitely looks like a bug in Xcode. I would suggest you to file
<br>a bug report to Apple.
<br>
<br>Can you please try to compile a simple hello world with just the
<br>following contents
<br>
<br>// test.cpp:
<br>    #include <unordered_map>
<br>    int main() { return 0; }
<br>
<br>and compile it with:
<br>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
<br>test.cpp \
<br>-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
<br>
<br>Mojca
<br>
<br>On Fri, 8 Nov 2019 at 15:27, Ruben Di Battista
<br><rubendibattista@gmail.com> wrote:
<br>>
<br>> Hello people,
<br>>
<br>> 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.
<br>>
<br>> ninja -j 1
<br>> [1/48] Building CXX object src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o
<br>> FAILED: src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o
<br>> /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
<br>> In file included from ../src/libs/BlockMerger.cxx:21:
<br>> In file included from ../src/libs/BlockMerger.h:28:
<br>> In file included from ../src/libs/types.h:25:
<br>> In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/unordered_set:363:
<br>> In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__hash_table:19:
<br>> /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
<br>> […]
<br>>
<br>> 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?
<br>>
<br>>           _
<br>> -.     .´  |∞∞∞∞
<br>>   ',  ;    |∞∞∞∞∞∞
<br>>     ˜˜     |∞∞∞∞∞∞∞∞∞ RdB
<br>>     ,.,    |∞∞∞∞∞∞
<br>>   .'   '.  |∞∞∞∞
<br>> -'       `’
<br>>
<br>> https://rdb.is
<br></div></div></span></blockquote></body></html>