Opened 6 years ago

Closed 6 years ago

#4617 closed defect (fixed)

Mac OM build fails

Reported by: dersh Owned by: sjoelund.se
Priority: high Milestone: Future
Component: Build Environment Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

I recently tried to upgrade openmodelica-devel from 1.13.0~dev-192-gd3b895d_0. First I tried upgrading to 1.13.0~dev-307-g6a35806_0 Then, today I tried upgrading to 1.13.0~dev-311-g275c832_0
Both failed.
I use Macports, and it has usually been fine, and has been working fine for a while. I do see that currently the Hudson Mac build is OK. I have attached my build log file.

Attachments (1)

main.log (11.1 MB) - added by dersh 6 years ago.
Log file for failed build

Change History (9)

Changed 6 years ago by dersh

Log file for failed build

comment:1 Changed 6 years ago by dersh

From the log, it looks to me like the issue is with compiling "SimulationDialog" Did that change recently? Anything I can do about it?

Here are a few lines from the log:
:info:build /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -std=c++11 -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -g -mmacosx-version-min=10.12 -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -I. -I../generatedfiles/moc -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXmlPatterns.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtSvg.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtWebKit.framework/Versions/4/Headers -I../../../build/include/omc/scripting-API -I../../../build/include/omplot -I../../../build/include/omplot/qwt -I../../../build/include/x86_64-darwin16.7.0/omc/antlr3 -I../../../build/include/omc/c -I../../qjson-0.8.1/build/include -I../../qjson/build/include -I../../../build/include/omc/scripting-API -I../../../build/include/omc/c/util -I../../../OMCompiler/3rdParty/FMIL/install/include -I/opt/local/libexec/qt4/Library/Frameworks/QtWebKit.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtSvg.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXmlPatterns.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib -o FetchInterfaceDataThread.o TLM/FetchInterfaceDataThread.cpp
:info:build /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -std=c++11 -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -g -mmacosx-version-min=10.12 -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -I. -I../generatedfiles/moc -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXmlPatterns.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtSvg.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtWebKit.framework/Versions/4/Headers -I../../../build/include/omc/scripting-API -I../../../build/include/omplot -I../../../build/include/omplot/qwt -I../../../build/include/x86_64-darwin16.7.0/omc/antlr3 -I../../../build/include/omc/c -I../../qjson-0.8.1/build/include -I../../qjson/build/include -I../../../build/include/omc/scripting-API -I../../../build/include/omc/c/util -I../../../OMCompiler/3rdParty/FMIL/install/include -I/opt/local/libexec/qt4/Library/Frameworks/QtWebKit.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtSvg.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXmlPatterns.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib -o TLMCoSimulationDialog.o TLM/TLMCoSimulationDialog.cpp
:info:build 51 warnings and 3 errors generated.
:info:build make[3]: * [SimulationDialog.o] Error 1
:info:build make[3]:
* Waiting for unfinished jobs....
:info:build In file included from TLM/TLMCoSimulationDialog.cpp:49:
:info:build In file included from ./Plotting/PlotWindowContainer.h:39:
:info:build In file included from ./Animation/AnimationWindow.h:38:
:info:build In file included from ./Animation/AbstractAnimationWindow.h:46:
:info:build In file included from ./Animation/FMUSettingsDialog.h:39:
:info:build In file included from ./Animation/VisualizerFMU.h:39:
:info:build In file included from ./Animation/Visualizer.h:44:
:info:build In file included from /opt/local/include/osg/Geode:19:
:info:build In file included from /opt/local/include/osg/Drawable:21:
:info:build In file included from /opt/local/include/osg/RenderInfo:17:
:info:build In file included from /opt/local/include/osg/State:26:

comment:2 Changed 6 years ago by sjoelund.se

Did you upgrade XCode recently?

:info:build In file included from Simulation/SimulationDialog.cpp:39:
:info:build In file included from ./Debugger/GDB/GDBAdapter.h:45:
:info:build In file included from ./Debugger/Parser/GDBMIParser.h:40:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:18:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/mutex:189:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__mutex_base:17:
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:156:1: error: unknown type name 'mach_port_t'
:info:build mach_port_t __libcpp_thread_get_port();
:info:build ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:300:1: error: unknown type name 'mach_port_t'
:info:build mach_port_t __libcpp_thread_get_port() {
:info:build ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:301:12: error: use of undeclared identifier 'pthread_mach_thread_np'
:info:build     return pthread_mach_thread_np(pthread_self());
:info:build            ^

comment:3 Changed 6 years ago by anonymous

Last edited 6 years ago by dersh (previous) (diff)

comment:4 Changed 6 years ago by dersh

Yes, I did just do the minor upgrade of Xcode to version 9.1 from 9.0.1

Last edited 6 years ago by dersh (previous) (diff)

comment:5 Changed 6 years ago by dersh

I just downloaded and reinstalled Xcode 9.0.1, and again tried to update, and it again failed. I think that I had built 1.13.0~dev-307 with 9.0 or 9.0.1.

I searched around some and found these:
https://github.com/tensorflow/tensorflow/issues/13220
https://github.com/eclipse/omr/issues/1707
https://issues.apache.org/jira/browse/ARROW-1609

Perhaps they can help with a fix?

comment:6 Changed 6 years ago by dersh

I downloaded and installed xcode 8.3.3 and now OM does compile and run. So, it seems that it is an issue with XCode 9. The first link above suggests some fixes, but I'm not really sure where include changes could be made OM source get around this.

comment:7 Changed 6 years ago by dersh

It appears that this issue has been fixed. I just updated openmodelica-devel to @1.13.0~dev-405 with XCode 9.1 active, and didn't receive any errors.

comment:8 Changed 6 years ago by dersh

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