Opened 10 years ago

Closed 10 years ago

#2491 closed defect (fixed)

18292 and newer won't build on Mac

Reported by: Adam Dershowitz <dersh@…> Owned by: probably noone
Priority: high Milestone: 1.9.1
Component: Backend Version: trunk
Keywords: Cc:

Description

I have 18236 built, and working. I just tried to upgrade to 18292 and it fails. I also tried deactivating first, and then doing an install and that also doesn't work.
I did recently upgrade to mac OS 10.9, if that could be related. Although my recent build of 18292 was with 10.9 and was fine.
I have attached the logfile of the build.

Attachments (3)

main.log (84.1 KB) - added by Adam Dershowitz <dersh@…> 10 years ago.
main.2.log (2.0 MB) - added by Adam Dershowitz <dersh@…> 10 years ago.
18325 +clang
main.3.log (2.0 MB) - added by Adam Dershowitz <dersh@…> 10 years ago.
18326 all defaults build log

Change History (13)

Changed 10 years ago by Adam Dershowitz <dersh@…>

comment:1 Changed 10 years ago by Adam Dershowitz <dersh@…>

I tried to upgrade to 18299 and that also failed. I waited a little while and then tried 18308, which also failed to upgrade, and also to install, after I deactivated 18236.

comment:2 Changed 10 years ago by Adam Dershowitz <dersh@…>

  • Summary changed from 18292 won't build on Mac to 18292 and newer won't build on Mac

In order to determine if the error relates to the compiler, I also tried to deactivate and clean then I tried to install the +clang variant, instead of just the default (of 18325, as that is current) but I get essentially the same errors.
I also tried deactivating f2c, as that had caused a problem a while back, but that did not help, so I did reinstall it.

It seems like the error is in this part of the log (this is for my newest build attempt with +clang, but it was similar to the included log file):

:info:build /opt/local/bin/clang++-mp-3.3 -pipe -Os -arch x86_64 -I.. -Wall -I../c/simulation/results/ -I../c/linearization -I../c/simulation/solver/ -I../c/util/ -I../c/ -I../c/simulation/ -I../c/math-support/   -c -o omi_Transfer.o omi_Transfer.cpp
:info:build omi_Control.cpp:849:13: warning: function 'parseState' is not needed and will not be emitted [-Wunneeded-internal-declaration]
:info:build static void parseState(SimStepData* p_SSD, string state)
:info:build             ^
:info:build omi_Control.cpp:865:13: warning: function 'parseAlgebraic' is not needed and will not be emitted [-Wunneeded-internal-declaration]
:info:build static void parseAlgebraic(SimStepData* p_SSD, string algebraic)
:info:build             ^
:info:build In file included from omi_ServiceInterface.cpp:26:
:info:build In file included from ./omi_ServiceInterface.h:20:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/iomanip:34:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/istream:156:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/ostream:132:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/locale:187:
:info:build /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/cstdlib:159:53: error: expected unqualified-id
:info:build inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
:info:build                                                     ^
:info:build /opt/local/include/f2c.h:157:18: note: expanded from macro 'abs'
:info:build #define abs(x) ((x) >= 0 ? (x) : -(x))
:info:build                  ^
:info:build In file included from omi_ServiceInterface.cpp:26:
:info:build In file included from ./omi_ServiceInterface.h:20:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/iomanip:34:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/istream:156:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/ostream:132:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/locale:187:
:info:build /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/cstdlib:159:53: error: expected ')'
:info:build /opt/local/include/f2c.h:157:18: note: expanded from macro 'abs'
:info:build #define abs(x) ((x) >= 0 ? (x) : -(x))
:info:build                  ^
:info:build /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/cstdlib:159:44: note: to match this '('
:info:build inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
:info:build                                            ^
:info:build /opt/local/include/f2c.h:157:17: note: expanded from macro 'abs'
:info:build #define abs(x) ((x) >= 0 ? (x) : -(x))
:info:build                 ^
:info:build In file included from omi_ServiceInterface.cpp:26:
:info:build In file included from ./omi_ServiceInterface.h:20:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/iomanip:34:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/istream:156:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/ostream:132:
:info:build In file included from /opt/local/libexec/llvm-3.3/bin/../lib/c++/v1/locale:187:


comment:3 Changed 10 years ago by sjoelund.se

That error is related to a local f2c.h, and I have changed OpenModelica to always compile our own f2c.h. Do you get the same errors with the latest version?

comment:4 Changed 10 years ago by Adam Dershowitz <dersh@…>

I did still get it with 18325. Is that the change that you are referring to? But, when I tried that one, I believe that I had Macports f2c installed (I had removed it for a few test builds). Would having that installed cause it to use the Macports local version instead of your local version?
I can try to deactivate f2c in macports and then try to build the newest (which now shows as 18326)

comment:5 Changed 10 years ago by sjoelund.se

It should not matter if you have it installed any more. But I need a more recent log file to see what is going wrong.

Changed 10 years ago by Adam Dershowitz <dersh@…>

18325 +clang

comment:6 Changed 10 years ago by Adam Dershowitz <dersh@…>

I just added the log, from when I had f2c still installed, and attempted to build with the +clang version, as a test. This was from version 18325.

Changed 10 years ago by Adam Dershowitz <dersh@…>

18326 all defaults build log

comment:7 Changed 10 years ago by Adam Dershowitz <dersh@…>

The newest attached log main.3.log is an install, rather than an upgrade, attempt to 18326. I have deactivated f2c and libf2c ports, just to be sure it is "out of the way" and then did a simple install with no variants selected manually.
Let me know if there is anything else that might help you out.

comment:8 Changed 10 years ago by sjoelund.se

OK. That's what I get for working on my machine at home and going to work. I didn't make the commit yet!
r18327 should contain that fix. And an extra one just in case.

comment:9 Changed 10 years ago by Adam Dershowitz <dersh@…>

Yes, that fixes it!
Also, dassl now works on a mac for the first time I have seen!

Thanks,

comment:10 Changed 10 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.