Kitchen terraform error - "Could not load the 'terraform' driver. Error: uninitialized constant Dry::Container::DidYouMean" - test-kitchen
Getting Could not load the 'terraform' driver. Error: uninitialized constant Dry::Container::DidYouMean error when giving "kitchen test" command.
I am using Kitchen-terrafrom version - 6.1.0
Below are the logs
I, [2022-07-25T10:22:02.446335 #2076] INFO -- Kitchen: -----> Starting Test Kitchen (v3.2.2)
E, [2022-07-25T10:22:02.640648 #2076] ERROR -- Kitchen: ------Exception-------
E, [2022-07-25T10:22:02.640701 #2076] ERROR -- Kitchen: Class: Kitchen::ClientError
E, [2022-07-25T10:22:02.640719 #2076] ERROR -- Kitchen: Message: Could not load the 'terraform' driver. Error: uninitialized constant Dry::Container::DidYouMean
E, [2022-07-25T10:22:02.640733 #2076] ERROR -- Kitchen: ----------------------
E, [2022-07-25T10:22:02.640747 #2076] ERROR -- Kitchen: ------Backtrace-------
E, [2022-07-25T10:22:02.640757 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/plugin.rb:45:in rescue in load' E, [2022-07-25T10:22:02.640770 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/plugin.rb:33:in load'
E, [2022-07-25T10:22:02.640780 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/driver.rb:37:in for_plugin' E, [2022-07-25T10:22:02.640789 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:235:in new_driver'
E, [2022-07-25T10:22:02.640797 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:250:in new_instance' E, [2022-07-25T10:22:02.640806 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:143:in block in build_instances'
E, [2022-07-25T10:22:02.640815 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:142:in map' E, [2022-07-25T10:22:02.640829 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:142:in with_index'
E, [2022-07-25T10:22:02.640844 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:142:in build_instances' E, [2022-07-25T10:22:02.640858 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:116:in instances'
E, [2022-07-25T10:22:02.640872 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:109:in filtered_instances' E, [2022-07-25T10:22:02.640887 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:139:in parse_subcommand'
E, [2022-07-25T10:22:02.640900 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command/test.rb:39:in block in call' E, [2022-07-25T10:22:02.640913 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in measure'
E, [2022-07-25T10:22:02.640927 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command/test.rb:37:in call' E, [2022-07-25T10:22:02.640940 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/cli.rb:52:in perform'
E, [2022-07-25T10:22:02.640955 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/cli.rb:250:in test' E, [2022-07-25T10:22:02.640969 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in run'
E, [2022-07-25T10:22:02.640982 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command' E, [2022-07-25T10:22:02.640996 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in dispatch'
E, [2022-07-25T10:22:02.641010 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in start' E, [2022-07-25T10:22:02.641030 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/bin/kitchen:11:in block in <top (required)>'
E, [2022-07-25T10:22:02.641043 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/errors.rb:183:in with_friendly_errors' E, [2022-07-25T10:22:02.641052 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/bin/kitchen:11:in <top (required)>'
E, [2022-07-25T10:22:02.641060 #2076] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:383:in load' E, [2022-07-25T10:22:02.641068 #2076] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:383:in
'
E, [2022-07-25T10:22:02.641076 #2076] ERROR -- Kitchen: ----End Backtrace-----
E, [2022-07-25T10:22:02.641084 #2076] ERROR -- Kitchen: ---Nested Exception---
E, [2022-07-25T10:22:02.641092 #2076] ERROR -- Kitchen: Class: NameError
E, [2022-07-25T10:22:02.641100 #2076] ERROR -- Kitchen: Message: uninitialized constant Dry::Container::DidYouMean
E, [2022-07-25T10:22:02.641109 #2076] ERROR -- Kitchen: ----------------------
E, [2022-07-25T10:22:02.641120 #2076] ERROR -- Kitchen: ------Backtrace-------
E, [2022-07-25T10:22:02.641129 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/plugin.rb:45:in rescue in load' E, [2022-07-25T10:22:02.641138 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/plugin.rb:33:in load'
E, [2022-07-25T10:22:02.641150 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/driver.rb:37:in for_plugin' E, [2022-07-25T10:22:02.641159 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:235:in new_driver'
E, [2022-07-25T10:22:02.641167 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:250:in new_instance' E, [2022-07-25T10:22:02.641176 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:143:in block in build_instances'
E, [2022-07-25T10:22:02.641185 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:142:in map' E, [2022-07-25T10:22:02.641194 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:142:in with_index'
E, [2022-07-25T10:22:02.641207 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:142:in build_instances' E, [2022-07-25T10:22:02.641217 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/config.rb:116:in instances'
E, [2022-07-25T10:22:02.641229 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:109:in filtered_instances' E, [2022-07-25T10:22:02.641237 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:139:in parse_subcommand'
E, [2022-07-25T10:22:02.641245 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command/test.rb:39:in block in call' E, [2022-07-25T10:22:02.641253 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in measure'
E, [2022-07-25T10:22:02.641261 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command/test.rb:37:in call' E, [2022-07-25T10:22:02.641269 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/cli.rb:52:in perform'
E, [2022-07-25T10:22:02.641291 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/cli.rb:250:in test' E, [2022-07-25T10:22:02.641303 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in run'
E, [2022-07-25T10:22:02.641312 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command' E, [2022-07-25T10:22:02.641324 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in dispatch'
E, [2022-07-25T10:22:02.641333 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in start' E, [2022-07-25T10:22:02.641343 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/bin/kitchen:11:in block in <top (required)>'
E, [2022-07-25T10:22:02.641353 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/errors.rb:183:in with_friendly_errors' E, [2022-07-25T10:22:02.641361 #2076] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/bin/kitchen:11:in <top (required)>'
E, [2022-07-25T10:22:02.641372 #2076] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:383:in load' E, [2022-07-25T10:22:02.641381 #2076] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:383:in '
E, [2022-07-25T10:22:02.641393 #2076] ERROR -- Kitchen: ----End Backtrace-----
Related
cmake + qt + vtk: Compilation errors in macOS Mojave
I'm running macOS Mojave (10.14.3). After the upgrade to Mojave something in my system changed and I no longer can compile code having VTK and Qt. A (not) working example can be found in the examples given by VTK. It's worth to mention, that I can compile the other examples not involving qt. I use homebrew to install everything I need. Hier are the logs: cmake .. -- The C compiler identification is AppleClang 10.0.1.10010046 -- The CXX compiler identification is AppleClang 10.0.1.10010046 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- VTK_VERSION: 8.1.2 -- Configuring done -- Generating done -- Build files have been written to: /Users/chraibi/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build and make In file included from /Users/user/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build/SideBySideRenderWindowsQt_autogen/mocs_compilation.cpp:2: In file included from /Users/user/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build/SideBySideRenderWindowsQt_autogen/EWIEGA46WW/moc_SideBySideRenderWindowsQt.cpp:9: In file included from /Users/user/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build/SideBySideRenderWindowsQt_autogen/EWIEGA46WW/../../../SideBySideRenderWindowsQt.h:6: In file included from /usr/local/opt/qt/lib/QtWidgets.framework/Headers/QMainWindow:1: In file included from /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qmainwindow.h:44: In file included from /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qwidget.h:52: /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:51:82: error: invalid token at start of a preprocessor expression #if !defined(Q_CC_GNU) || defined(Q_CC_INTEL) || defined(Q_CC_CLANG) || Q_CC_GNU >= 408 ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:68:1: error: unknown type name 'Q_DECL_CONST_FUNCTION' Q_DECL_CONST_FUNCTION inline uint qHash(QSizePolicy key, uint seed = 0) Q_DECL_NOTHROW; ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:68:23: error: expected unqualified-id Q_DECL_CONST_FUNCTION inline uint qHash(QSizePolicy key, uint seed = 0) Q_DECL_NOTHROW; ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:91:5: error: unknown type name 'Q_ENUM' Q_ENUM(Policy) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:91:19: error: expected ';' at end of declaration list Q_ENUM(Policy) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:110:35: error: use of undeclared identifier 'ControlType' Q_DECLARE_FLAGS(ControlTypes, ControlType) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:111:5: error: unknown type name 'Q_FLAG' Q_FLAG(ControlTypes) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:111:12: error: duplicate member 'ControlTypes' Q_FLAG(ControlTypes) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:110:21: note: previous declaration is here Q_DECLARE_FLAGS(ControlTypes, ControlType) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:111:25: error: expected ';' at end of declaration list Q_FLAG(ControlTypes) ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:132:5: error: unknown type name 'Q_DECL_RELAXED_CONSTEXPR' Q_DECL_RELAXED_CONSTEXPR void setHorizontalPolicy(Policy d) Q_DECL_NOTHROW { bits.horPolicy = d; } ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:132:30: error: expected member name or ';' after declaration specifiers Q_DECL_RELAXED_CONSTEXPR void setHorizontalPolicy(Policy d) Q_DECL_NOTHROW { bits.horPolicy = d; } ~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:136:73: error: expected ';' at end of declaration list QT_SIZEPOLICY_CONSTEXPR Qt::Orientations expandingDirections() const Q_DECL_NOTHROW { ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:153:58: error: expected ';' at end of declaration list QT_SIZEPOLICY_CONSTEXPR int horizontalStretch() const Q_DECL_NOTHROW { return static_cast<int>(bits.horStretch); } ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:176:47: error: expected ';' at end of declaration list QT_SIZEPOLICY_CONSTEXPR QSizePolicy(int i) Q_DECL_NOTHROW : data(i) { } ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:178:50: error: unknown type name 'Bits' QT_SIZEPOLICY_CONSTEXPR explicit QSizePolicy(Bits b) Q_DECL_NOTHROW : bits(b) { } ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:178:57: error: expected ';' at end of declaration list QT_SIZEPOLICY_CONSTEXPR explicit QSizePolicy(Bits b) Q_DECL_NOTHROW : bits(b) { } ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:223:9: error: unknown type name 'Bits' Bits bits; ^ /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:231:33: error: use of undeclared identifier 'Q_RELOCATABLE_TYPE'; did you mean 'Q_MOVABLE_TYPE'? Q_DECLARE_TYPEINFO(QSizePolicy, Q_RELOCATABLE_TYPE); ^ /usr/local/include/QtCore/qglobal.h:2272:5: note: 'Q_MOVABLE_TYPE' declared here Q_MOVABLE_TYPE = 0x2, ^ In file included from /Users/user/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build/SideBySideRenderWindowsQt_autogen/mocs_compilation.cpp:2: In file included from /Users/user/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build/SideBySideRenderWindowsQt_autogen/EWIEGA46WW/moc_SideBySideRenderWindowsQt.cpp:9: In file included from /Users/user/Downloads/VTK_Examples/SideBySideRenderWindowsQt/build/SideBySideRenderWindowsQt_autogen/EWIEGA46WW/../../../SideBySideRenderWindowsQt.h:6: In file included from /usr/local/opt/qt/lib/QtWidgets.framework/Headers/QMainWindow:1: In file included from /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qmainwindow.h:44: In file included from /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qwidget.h:52: /usr/local/opt/qt/lib/QtWidgets.framework/Headers/qsizepolicy.h:231:33: error: use of undeclared identifier 'Q_RELOCATABLE_TYPE'; did you mean 'Q_MOVABLE_TYPE'? Q_DECLARE_TYPEINFO(QSizePolicy, Q_RELOCATABLE_TYPE); ^ /usr/local/include/QtCore/qglobal.h:2272:5: note: 'Q_MOVABLE_TYPE' declared here Q_MOVABLE_TYPE = 0x2, ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [CMakeFiles/SideBySideRenderWindowsQt.dir/SideBySideRenderWindowsQt_autogen/mocs_compilation.cpp.o] Error 1 make[1]: *** [CMakeFiles/SideBySideRenderWindowsQt.dir/all] Error 2 make: *** [all] Error 2 Similar error I get with cmake -DCMAKE_CXX_COMPILER=g++-8, where g++-8 is installed with brew Maybe I should mention, there is a software using vtk and qt that I can install via brew without any problems. The same software cannot be compiled directly (cmake --> make). Could be something with my OS is wrong?
Just uninstall the duplicate QT installations on your system, like the older qt4 version. Credits to khrykin
How to include Intel MKL in Abaqus subroutine
I am trying to include the in-build subroutines of Intel Math Kernel Library in ABAQUS UMAT. I included 'mkl.fi' but it is showing the error as shown below (It is ABAQUS generated job file): Abaqus JOB Job-1 Abaqus 6.13-1 Begin Compiling Abaqus/Standard User Subroutines 3/8/2017 6:14:23 PM Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.1.143 Build 20161005 Copyright (C) 1985-2016 Intel Corporation. All rights reserved. C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(29): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE CGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(30): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & M, N, A, LDA, SVA, U, LDU, V, LDV, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(34): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL COMPLEX A( LDA, * ), U( LDU, * ), V( LDV, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(43): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE ZGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(44): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & M, N, A, LDA, SVA, U, LDU, V, LDV, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(48): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL DOUBLE COMPLEX A( LDA, * ), U( LDU, * ), V( LDV, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(57): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE DGESVDX( JOBU, JOBVT, RANGE, M, N, A, LDA, VL, VU, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(58): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & IL, IU, NS, S, U, LDU, VT, LDVT, WORK, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(64): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL DOUBLE PRECISION A( LDA, * ), S( * ), U( LDU, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(70): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE SGESVDX( JOBU, JOBVT, RANGE, M, N, A, LDA, VL, VU, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(71): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & IL, IU, NS, S, U, LDU, VT, LDVT, WORK, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(77): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL REAL A( LDA, * ), S( * ), U( LDU, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(83): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE CGESVDX( JOBU, JOBVT, RANGE, M, N, A, LDA, VL, VU, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(84): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & IL, IU, NS, S, U, LDU, VT, LDVT, WORK, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(91): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL COMPLEX A( LDA, * ), U( LDU, * ), VT( LDVT, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(97): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE ZGESVDX( JOBU, JOBVT, RANGE, M, N, A, LDA, VL, VU, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(98): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & IL, IU, NS, S, U, LDU, VT, LDVT, WORK, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(105): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL COMPLEX*16 A( LDA, * ), U( LDU, * ), VT( LDVT, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(111): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE CGESVJ( JOBA, JOBU, JOBV, M, N, A, LDA, SVA, MV, V, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(121): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE ZGESVJ( JOBA, JOBU, JOBV, M, N, A, LDA, SVA, MV, V, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(131): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE DGGSVD3( JOBU, JOBV, JOBQ, M, N, P, K, L, A, LDA, B, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(132): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & LDB, ALPHA, BETA, U, LDU, V, LDV, Q, LDQ, WORK,& ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(135): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL INTEGER INFO, K, L, LDA, LDB, LDQ, LDU, LDV, M, N, P, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(138): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL DOUBLE PRECISION A( LDA, * ), ALPHA( * ), B( LDB, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(139): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL & BETA( * ), Q( LDQ, * ), U( LDU, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(145): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> SUBROUTINE SGGSVD3( JOBU, JOBV, JOBQ, M, N, P, K, L, A, LDA, B, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(146): error #5082: Syntax error, found '&' when expecting one of: * <IDENTIFIER> & LDB, ALPHA, BETA, U, LDU, V, LDV, Q, LDQ, WORK,& ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(149): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL INTEGER INFO, K, L, LDA, LDB, LDQ, LDU, LDV, M, N, P, & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(152): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL REAL A( LDA, * ), ALPHA( * ), B( LDB, * ), & ------------------------------------------------------------------------^ C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\include\MKL_lapack.FI(153): error #5082: Syntax error, found '&' when expecting one of: <IDENTIFIER> %FILL & BETA( * ), Q( LDQ, * ), U( LDU, * ), & ------------------------------------------------------------------------^ AFEM.for(170): catastrophic error: Too many errors, exiting compilation aborted for AFEM.for (code 1) Abaqus Error: Problem during compilation - D:\Google Drive\Friday_May_27_2016\Mtech Thesis Job\All new work\TA\AFEM.for Abaqus/Analysis exited with errors In case when MKL library is not included, job file shows the following errors: ---------- Abaqus JOB Job-1 Abaqus 6.13-1 Abaqus License Manager checked out the following licenses: Begin Compiling Abaqus/Standard User Subroutines 3/8/2017 6:18:48 PM Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.1.143 Build 20161005 Copyright (C) 1985-2016 Intel Corporation. All rights reserved. End Compiling Abaqus/Standard User Subroutines Begin Linking Abaqus/Standard User Subroutines Creating library standardU.lib and object standardU.exp AFEM.obj : error LNK2019: unresolved external symbol dgemm referenced in function umat.R standardU.dll : fatal error LNK1120: 1 unresolved externals Abaqus Error: Problem during linking - Abaqus/Standard User Subroutines. This error may be due to a mismatch in the Abaqus user subroutine arguments. These arguments sometimes change from release to release, so user subroutines used with a previous release of Abaqus may need to be adjusted. Abaqus/Analysis exited with errors The source code, when compiled outside ABAQUS, works fine with no errors. If I am not able to include this lapack library in ABAQUS UMAT subroutine, I may have to append lapack source code in my code itself. That may invite other problems. So is there any way to compile these lapack subroutines in ABAQUS successfully. Note that ABAQUS User subroutine (UMAT) is written in '.for' format. I have included the UMAT (ABAQUS subroutine) for reference. It has 'mul_big_mat' (that stands for multiplying big matrices) subroutine that uses lapack 'dgemm' subroutine. C================================================================ SUBROUTINE UMAT(STRESS,STATEV,DDSDDE,SSE,SPD,SCD, 1RPL,DDSDDT,DRPLDE,DRPLDT,STRAN,DSTRAN, 2TIME,DTIME,TEMP,DTEMP,PREDEF,DPRED,MATERL,NDI,NSHR,NTENS, 3NSTATV,PROPS,NPROPS,COORDS,DROT,PNEWDT,CELENT, 4DFGRD0,DFGRD1,NOEL,NPT,KSLAY,KSPT,KSTEP,KINC) C INCLUDE 'ABA_PARAM.INC' C CHARACTER*80 MATERL DIMENSION STRESS(NTENS),STATEV(NSTATV), 1DDSDDE(NTENS,NTENS),DDSDDT(NTENS),DRPLDE(NTENS), 2STRAN(NTENS),DSTRAN(NTENS),TIME(2),PREDEF(1),DPRED(1), 3PROPS(NPROPS),COORDS(3),DROT(3,3), 4DFGRD0(3,3),DFGRD1(3,3) C DIMENSION EELAS(6),EPLAS(6),FLOW(6) PARAMETER (ONE=1.0D0,TWO=2.0D0,THREE=3.0D0,SIX=6.0D0) DATA NEWTON,TOLER/10,1.D-6/ C C ============================================================================ C UMAT FOR 1D BAR C ============================================================================ C Note :- This UMAT can only be used by 1D elements C C Number of material properties, nprops = 1 C props(1) Young's modulus in x direction C --------------------------------------------------------------------- C ! --- local variables DOUBLE PRECISION E DOUBLE PRECISION C(ntens, ntens) integer z !*********************************************************************** ! *** Get Elastic properties E = props(1) write(*,*)'' write(*,*) z write(*,*)'' ! *** Elastic stiffness Cijkl *** ! C(1,1) = E !call hello_world3 CALL mul_big_mat ! *** calculate the stress *** ! stress(1) = C(1,1)*(stran(1) + dstran(1)) ! Updating Jacobian matrix ddsdde(1,1) = C(1,1) return END subroutine hello_world3 implicit none character*32 text c write(*,*)'Hello World' c END subroutine mul_big_mat c c integer m, n, k, i, j parameter (m=100, k= 200, n=100) double precision a(m,k), b(k,n), c(m,n), alpha, beta alpha=1.0 beta=0.0 c matrix a declaration do i=1,m do j=1,k a(i,j)=i+j enddo enddo write(*,*) a(100,200) c matrix b declaration do i=1,k do j=1,n b(i,j)=i-j enddo enddo write(*,*) b(200,100) c matrix c declaration do i=1,m do j=1,n c(i,j)=0.0 enddo enddo call dgemm('n','n',m,n,k,alpha,a,m,b,k,beta,c,m) ! THIS IS THE SUBROUTINE I WANT TO USE FROM INTEL MKL LIBRARY ! I COULD USE MATMUL (AND THAT WORKS FINE), BUT ITS JUST AN EXAMPLE ! I HAVE TO USE 'DGETRI' AND MANY MORE write(*,*) c(1,1) do i=1,m do j=1,n write(*,*) ' ' write(*,*) c(i,j) enddo enddo END
It looks like you are compiling a free-form (.f90) file as a fixed-form (old FORTRAN 77 style) file. You cannot use & at the and of the line in fixed form .f or .for file. Your source file is a .for file (AFEM.for) sou your code should be in the fixed form. You can try whether ABAQUS supports the -free compiler flag to force free-form. If it doesn't you must use the fixed form everywhere. Be careful not to mix parts of fixed-form and free-form in one file. The file MKL_lapack.FI seems not to be compatible with your original source. You unfortunately do not show how you are including this. HOWEVER, you should not really need to include the include file at all! You should just link with the right library. Use the Intel MKL Link Line Advisor https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor to derive the correct linker flags.
How to view Exception Details Visual Studio "Unhanded exception was encountered during a user callback"
My Visual Studio devenv.exe crashes intermittently, and if I debug it I see the following: Is there any way to view the exception that was thrown so I might have a clue what caused the crash? What exactly does "user callback" mean in this context that makes it different from just a generic "Unhandled exception" dialog that Visual Studio might display like the following: Here is the call stack for my crashed devenv.exe process if that helps explain how to view any exception details. > user32.dll!_NtUserMessageCall#28() Unknown user32.dll!_NtUserMessageCall#28() Unknown user32.dll!_NtUserQueryWindow#8() Unknown uxtheme.dll!_ThemeDefWindowProc(struct HWND__ *,unsigned int,unsigned int,long,int) Unknown uxtheme.dll!_ThemeDefWindowProcW#16() Unknown user32.dll!_DefWindowProcW#16() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_CallWindowProcAorW#24() Unknown user32.dll!_CallWindowProcW#20() Unknown WindowsBase.ni.dll!66288900() Unknown [Frames below may be incorrect and/or missing, no symbols loaded for WindowsBase.ni.dll] WindowsBase.ni.dll!66288900() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_CallWindowProcAorW#24() Unknown user32.dll!_CallWindowProcW#20() Unknown WindowsBase.ni.dll!662a385a() Unknown WindowsBase.ni.dll!662a385a() Unknown 004ca2da() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_DispatchClientMessage#24() Unknown user32.dll!___fnDWORD#4() Unknown ntdll.dll!_KiUserCallbackDispatcher#12() Unknown user32.dll!_NtUserMessageCall#28() Unknown user32.dll!_RealDefWindowProcWorker#24() Unknown user32.dll!_RealDefWindowProcW#16() Unknown uxtheme.dll!_ThemeDefWindowProc(struct HWND__ *,unsigned int,unsigned int,long,int) Unknown uxtheme.dll!_ThemeDefWindowProcW#16() Unknown user32.dll!_DefWindowProcW#16() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_CallWindowProcAorW#24() Unknown user32.dll!_CallWindowProcW#20() Unknown WindowsBase.ni.dll!66288900() Unknown WindowsBase.ni.dll!66288900() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_CallWindowProcAorW#24() Unknown user32.dll!_CallWindowProcW#20() Unknown WindowsBase.ni.dll!662a385a() Unknown WindowsBase.ni.dll!662a385a() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_SendMessageWorker#24() Unknown user32.dll!_SendMessageW#16() Unknown 02bc900a() Unknown 02bc8c27() Unknown WindowsBase.ni.dll!66288622() Unknown WindowsBase.ni.dll!6628855a() Unknown WindowsBase.ni.dll!6628ac3c() Unknown WindowsBase.ni.dll!6628ab88() Unknown mscorlib.ni.dll!727ada07() Unknown mscorlib.ni.dll!727ad956() Unknown mscorlib.ni.dll!727ad921() Unknown WindowsBase.ni.dll!6628aaab() Unknown WindowsBase.ni.dll!6628742b() Unknown WindowsBase.ni.dll!662875ca() Unknown WindowsBase.ni.dll!6628880b() Unknown WindowsBase.ni.dll!6628875b() Unknown WindowsBase.ni.dll!66288622() Unknown WindowsBase.ni.dll!6628855a() Unknown WindowsBase.ni.dll!66286cfe() Unknown WindowsBase.ni.dll!662880e1() Unknown 004ca2da() Unknown user32.dll!_InternalCallWinProc#20() Unknown user32.dll!_UserCallWinProcCheckWow#32() Unknown user32.dll!_DispatchMessageWorker#8() Unknown user32.dll!_DispatchMessageW#4() Unknown msenv.dll!MainMessageLoop::ProcessMessage(struct IMsoStdComponentMgr *,struct IVsWindowManager *,struct tagMSG &) Unknown msenv.dll!CMsoCMHandler::EnvironmentMsgLoop(void) Unknown msenv.dll!CMsoCMHandler::FPushMessageLoop(unsigned long) Unknown msenv.dll!SCM::FPushMessageLoop(class SCMI *,unsigned long,void *) Unknown msenv.dll!SCM_MsoCompMgr::FPushMessageLoop(unsigned long,unsigned long,void *) Unknown msenv.dll!CMsoComponent::PushMsgLoop(unsigned long) Unknown msenv.dll!VStudioMainLogged(void) Unknown msenv.dll!_VStudioMain() Unknown devenv.exe!util_CallVsMain(struct MAINPARAM *,int *) Unknown devenv.exe!CDevEnvAppId::Run(unsigned short *,int) Unknown devenv.exe!_WinMain#16() Unknown devenv.exe!__tmainCRTStartup() Unknown kernel32.dll!#BaseThreadInitThunk#12() Unknown ntdll.dll!___RtlUserThreadStart#8() Unknown ntdll.dll!__RtlUserThreadStart#8() Unknown
How to install FreeGlut(3.0.0 or 2.8.0)on OS X Yosemite
smooth_opengl3.c:123:1: error: unknown type name 'PFNGLGENBUFFERSPROC' PFNGLGENBUFFERSPROC gl_GenBuffers; ^ smooth_opengl3.c:124:1: error: unknown type name 'PFNGLBINDBUFFERPROC' PFNGLBINDBUFFERPROC gl_BindBuffer; ^ smooth_opengl3.c:125:1: error: unknown type name 'PFNGLBUFFERDATAPROC' PFNGLBUFFERDATAPROC gl_BufferData; ^ smooth_opengl3.c:126:1: error: unknown type name 'PFNGLCREATESHADERPROC' PFNGLCREATESHADERPROC gl_CreateShader; ^ smooth_opengl3.c:127:1: error: unknown type name 'PFNGLSHADERSOURCEPROC' PFNGLSHADERSOURCEPROC gl_ShaderSource; ^ smooth_opengl3.c:128:1: error: unknown type name 'PFNGLCOMPILESHADERPROC' PFNGLCOMPILESHADERPROC gl_CompileShader; ^ smooth_opengl3.c:129:1: error: unknown type name 'PFNGLCREATEPROGRAMPROC' PFNGLCREATEPROGRAMPROC gl_CreateProgram; ^ smooth_opengl3.c:130:1: error: unknown type name 'PFNGLATTACHSHADERPROC' PFNGLATTACHSHADERPROC gl_AttachShader; ^ smooth_opengl3.c:131:1: error: unknown type name 'PFNGLLINKPROGRAMPROC' PFNGLLINKPROGRAMPROC gl_LinkProgram; ^ smooth_opengl3.c:132:1: error: unknown type name 'PFNGLUSEPROGRAMPROC' PFNGLUSEPROGRAMPROC gl_UseProgram; ^ smooth_opengl3.c:133:1: error: unknown type name 'PFNGLGETSHADERIVPROC' PFNGLGETSHADERIVPROC gl_GetShaderiv; ^ smooth_opengl3.c:134:1: error: unknown type name 'PFNGLGETSHADERINFOLOGPROC' PFNGLGETSHADERINFOLOGPROC gl_GetShaderInfoLog; ^ smooth_opengl3.c:135:1: error: unknown type name 'PFNGLGETPROGRAMIVPROC' PFNGLGETPROGRAMIVPROC gl_GetProgramiv; ^ smooth_opengl3.c:136:1: error: unknown type name 'PFNGLGETPROGRAMINFOLOGPROC' PFNGLGETPROGRAMINFOLOGPROC gl_GetProgramInfoLog; ^ smooth_opengl3.c:137:1: error: unknown type name 'PFNGLGETATTRIBLOCATIONPROC' PFNGLGETATTRIBLOCATIONPROC gl_GetAttribLocation; ^ smooth_opengl3.c:138:1: error: unknown type name 'PFNGLVERTEXATTRIBPOINTERPROC' PFNGLVERTEXATTRIBPOINTERPROC gl_VertexAttribPointer; ^ smooth_opengl3.c:139:1: error: unknown type name 'PFNGLENABLEVERTEXATTRIBARRAYPROC' PFNGLENABLEVERTEXATTRIBARRAYPROC gl_EnableVertexAttribArray; ^ smooth_opengl3.c:140:1: error: unknown type name 'PFNGLGETUNIFORMLOCATIONPROC' PFNGLGETUNIFORMLOCATIONPROC gl_GetUniformLocation; ^ smooth_opengl3.c:141:1: error: unknown type name 'PFNGLUNIFORMMATRIX4FVPROC' PFNGLUNIFORMMATRIX4FVPROC gl_UniformMatrix4fv; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[4]: *** [smooth_opengl3-smooth_opengl3.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 In freeglut 3.0.0 there is no configure file. I received this error when i compiled free glut (2.8.0) using (env CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" ./configure) from this guide A question related to this is also not helping Is it possible to build FreeGLUT on Mac OS X?
you could open progs/demos/smooth_opengl3/smooth_opengl3.c and search for PFNGLGENBUFFERSPROC Now comment out #ifndef GL_VERSION_1_5 and #ifndef GL_VERSION_2_0 clauses. Rebuild and the errors should be gone.
Cannot install RNNLIB (http://sourceforge.net/p/rnnl/wiki/Home/) on Mac OSX (Yosemite)
Instructions are Here: http://sourceforge.net/p/rnnl/wiki/Home/ I type ./configure in root directory of RNNLIb folder. Output: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking for main in -lstdc++... yes checking for exp in -lm... yes checking for main in -lnetcdf... yes checking for main in -lnetcdf_c++... no checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking malloc.h usability... no checking malloc.h presence... no checking for malloc.h... no configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands It seems troubling that checking malloc.h usability... no checking malloc.h presence... no and checking for main in -lnetcdf_c++... no all return no. Then I type make, and I get: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT DataExporter.o -MD -MP -MF .deps/DataExporter.Tpo -c -o DataExporter.o DataExporter.cpp In file included from DataExporter.cpp:18: In file included from ./DataExporter.hpp:24: ./Helpers.hpp:724:18: error: expected expression out << t.get<0>() << " " << t.get<1>(); ^ ./Helpers.hpp:724:39: error: expected expression out << t.get<0>() << " " << t.get<1>(); ... A bunch more similar error messages ... In file included from DataExporter.cpp:18: In file included from ./DataExporter.hpp:25: In file included from ./SeqBuffer.hpp:21: In file included from ./MultiArray.hpp:31: ./Container.hpp:113:14: warning: reference 'front' is not yet bound to a value when used within its own initialization [-Wuninitialized] T& front = front(); ~~~~~ ^~~~~ 1 warning and 14 errors generated. make[2]: *** [DataExporter.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I'm not sure how to fix this. What is causing these errors and how do I get rid of them?
Looks like this was intended for the GNU C++ compiler (not the Clang compiler masquerading as g++ in Yosemite), so it will be easier to get this compiling with that compiler. If you don't have the Homebrew package manager, you can install it by executing: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Now install gcc 4.9 by running: brew install gcc49 The GNU C++ compiler will now be available as g++-4.9. Next, a compatible version of the netcdf library will have to be installed (not the latest one). See this Stackoverflow question, or just download ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-4.2.tar.gz Once that version of netcdf has been extracted, cd into the output directory and run the following (note the CXX=g++-4.9 to build with that compiler instead of the default): CXX=g++-4.9 ./configure make make install make check Now back to rnnlib itself: You'll still need to apply some patches to get rnnlib to compile with g++-4.9 (but less patching than if you used Clang), as mentioned on this sourceforge thread. The definition of the four range_min_size template functions need to be moved before they are first used in src/Helpers.hpp. A small patch is also needed to src/Container.hpp to call the resize() method as this->resize(). Here's the patch: diff -Naur rnnlib_orig/src/Container.hpp rnnlib_gcc_test/src/Container.hpp --- rnnlib_orig/src/Container.hpp 2013-08-16 11:00:38.000000000 +0100 +++ rnnlib_gcc_test/src/Container.hpp 2015-03-18 21:30:11.000000000 +0000 ## -154,7 +154,7 ## } template<class R> Vector<T>& operator =(const R& r) { - resize(boost::size(r)); + this->resize(boost::size(r)); copy(r, *this); return *this; } diff -Naur rnnlib_orig/src/Helpers.hpp rnnlib_gcc_test/src/Helpers.hpp --- rnnlib_orig/src/Helpers.hpp 2013-08-20 10:39:39.000000000 +0100 +++ rnnlib_gcc_test/src/Helpers.hpp 2015-03-18 21:29:47.000000000 +0000 ## -296,6 +296,22 ## } return count; } +template<class R1, class R2> static size_t range_min_size (const R1& a, const R2& b) +{ + return min(boost::size(a), boost::size(b)); +} +template<class R1, class R2, class R3> static size_t range_min_size (const R1& a, const R2& b, const R3& c) +{ + return min(min(boost::size(a), boost::size(b)), boost::size(c)); +} +template<class R1, class R2, class R3, class R4> static size_t range_min_size (const R1& a, const R2& b, const R3& c, const R4& d) +{ + return min(min(min(boost::size(a), boost::size(b)), boost::size(c)), boost::size(d)); +} +template<class R1, class R2, class R3, class R4, class R5> static size_t range_min_size (const R1& a, const R2& b, const R3& c, const R4& d, const R5& e) +{ + return min(min(min(min(boost::size(a), boost::size(b)), boost::size(c)), boost::size(d)), boost::size(e)); +} template <class R1, class R2> static pair<zip_iterator<tuple<typename range_iterator<R1>::type, typename range_iterator<R2>::type> >, zip_iterator<tuple<typename range_iterator<R1>::type, typename range_iterator<R2>::type> > > zip(R1& r1, R2& r2) ## -529,22 +545,6 ## delete *it; } } -template<class R1, class R2> static size_t range_min_size (const R1& a, const R2& b) -{ - return min(boost::size(a), boost::size(b)); -} -template<class R1, class R2, class R3> static size_t range_min_size (const R1& a, const R2& b, const R3& c) -{ - return min(min(boost::size(a), boost::size(b)), boost::size(c)); -} -template<class R1, class R2, class R3, class R4> static size_t range_min_size (const R1& a, const R2& b, const R3& c, const R4& d) -{ - return min(min(min(boost::size(a), boost::size(b)), boost::size(c)), boost::size(d)); -} -template<class R1, class R2, class R3, class R4, class R5> static size_t range_min_size (const R1& a, const R2& b, const R3& c, const R4& d, const R5& e) -{ - return min(min(min(min(boost::size(a), boost::size(b)), boost::size(c)), boost::size(d)), boost::size(e)); -} template <class R> static int arg_max(const R& r) { return distance(boost::begin(r), max_element(boost::begin(r), boost::end(r))); Or download this patch from Github gist as it will be less error-prone: https://gist.github.com/0David/13d872c88172c75d4663 You can apply this by cd-ing into your rnnlib directory and running: patch -p1 < ../patch.txt (replacing patch.txt with whatever you named the above patch file). Now you'll have to run configure again specifying g++-4.9 (and so it will pick up the netcdf library we just built), and then make: CXX=g++-4.9 ./configure make And you'll now have a working bin/rnnlib executable (which you can install with make install if you wish). If you do need Clang, then this Stackoverflow question touches on the issue that's causing the compilation error that you show in the question, so src/Helpers.hpp will need to be updated to replace calls like t.get<0> with t.template get<0>, but there are further compilation problems beyond that, so it's easier just to build with GNU C++. It seems troubling that checking malloc.h usability... no checking malloc.h presence... no You don't need to worry about that; malloc.h isn't a standard header file (malloc is declared in stdlib.h). See for example this Stackoverflow answer.