eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.56k stars 1.43k forks source link

brew install sumo 1.5 in macOSX Catalina cmake error #6759

Closed lcodeca closed 4 years ago

lcodeca commented 4 years ago

After installing Catalina, I cannot install sumo from homebrew.

brew install sumo
==> Installing sumo from dlr-ts/sumo
==> Downloading https://github.com/eclipse/sumo/archive/v1_5_0.tar.gz
Already downloaded: /Users/codeca/Library/Caches/Homebrew/downloads/c9c3c6a0fc97afb00611767ff3c521b605001b035b855593ac6a62e95434a324--sumo-1_5_0.tar.gz
==> cmake ../.. -DCHECK_OPTIONAL_LIBS=OFF
==> make
Last 15 lines from /Users/codeca/Library/Logs/Homebrew/sumo/
[logs.zip](https://github.com/eclipse/sumo/files/4303365/logs.zip)

02.make:
In file included from /tmp/sumo-20200308-15830-sfdywb/sumo-1_5_0/src/mesogui/GUIMEVehicleControl.cpp:30:
In file included from /tmp/sumo-20200308-15830-sfdywb/sumo-1_5_0/src/microsim/MSRouteHandler.h:34:
In file included from /tmp/sumo-20200308-15830-sfdywb/sumo-1_5_0/src/microsim/transportables/MSPerson.h:37:
/tmp/sumo-20200308-15830-sfdywb/sumo-1_5_0/src/utils/geom/Position.h:284:60: error: expected unqualified-id
        return (std::isnan(myX) || std::isnan(myY) || std::isnan(myZ));
                                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
16 errors generated.
make[2]: *** [src/mesogui/CMakeFiles/mesogui.dir/GUIMEVehicle.cpp.o] Error 1
16 errors generated.
make[2]: *** [src/mesogui/CMakeFiles/mesogui.dir/GUIMEVehicleControl.cpp.o] Error 1
make[1]: *** [src/mesogui/CMakeFiles/mesogui.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/dlr-ts/homebrew-sumo/issues

I tried to report it at https://github.com/dlr-ts/homebrew-sumo/issues but there are only pull request available, and no issues.

kuzmovych commented 4 years ago

@lcodeca hello, I am facing the same problem. Have you found the solution for it?

schwamborn commented 4 years ago

I just added the bottle block to the sumo formula. Please try again using the (Mojave) bottle of sumo v1.5.0 (you might need to run brew update first, though). Then please refer to these steps: https://github.com/eclipse/sumo/issues/6242#issuecomment-553458710

PS: @lcodeca https://github.com/dlr-ts/homebrew-sumo/issues was deactivated on purpose in order to collect all issues here, so you did as intended ;) Unfortunately, that URL is auto-generated by homebrew and the correct one can only be seen in the caveats part of the formula.

schwamborn commented 4 years ago

I also tried to brew install --HEAD sumo (HEAD = e0d5a05 at the time of this posting) on a fresh VM with macOS Catalina v10.15.3 and had no errors during the build process.

lcodeca commented 4 years ago

Fixed! Thanks.