Open celoy opened 4 days ago
Ok, that's a fail ! Could you give the first outputted lines you get when running ./clean; ./run
.
You should get something similar the following but maybe slightly different.
$ ./clean; ./run
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
[...]
I'm particularly interested by the compiler it is using, is it gcc ?
If not, you can try to run using the -c
option :
$ ./clean; ./run -c gcc
Ok so I may have fixed it regardless of the compiler you are using. Update the code (git pull
), delete your case and generate a new case, and try running it again, it may now work. Feel free to close the issue if that is the case.
Still the same. Here is the output (I updated the code and created a new case). I'm not sure it's using GCC, in fact
(sheld0n_env) Ch@lapc-br1-291 my_case % ./run -c gcc
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/gcc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
INFO C0P_PROJECT_DIR ../..
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/Ch/Documents/Python/sheld0n/cases/my_case/build
[ 16%] Building CXX object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:178:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/Half.h:218:48: warning: 'denorm_present' is deprecated [-Wdeprecated-declarations]
218 | static const float_denorm_style has_denorm = denorm_present;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:178:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/Half.h:218:16: warning: 'float_denorm_style' is deprecated [-Wdeprecated-declarations]
218 | static const float_denorm_style has_denorm = denorm_present;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:179:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/BFloat16.h:100:53: warning: 'denorm_absent' is deprecated [-Wdeprecated-declarations]
100 | static const float_denorm_style has_denorm = std::denorm_absent;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:179:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/BFloat16.h:100:16: warning: 'float_denorm_style' is deprecated [-Wdeprecated-declarations]
100 | static const float_denorm_style has_denorm = std::denorm_absent;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:4:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/core.h:10:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/solutions/core.h:11:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:5:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:211:34: error: no member named 'par_unseq' in namespace 'std::execution'
211 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [pState](const unsigned int memberIndex){
| ~~~~^
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:258:34: error: no member named 'par_unseq' in namespace 'std::execution'
258 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&p_state](const unsigned int memberIndex){
| ~~~~^
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:307:34: error: no member named 'par_unseq' in namespace 'std::execution'
307 | std::for_each(std::execution::par_unseq, groupIndexs.cbegin(), groupIndexs.cend(), [&states](const unsigned int groupIndex){
| ~~~~^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:4:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/core.h:10:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/solutions/core.h:11:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:81:34: error: no member named 'par_unseq' in namespace 'std::execution'
81 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&dState, pState, stateSize, t](const unsigned int memberIndex){
| ~~~~^
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:107:34: error: no member named 'par_unseq' in namespace 'std::execution'
107 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&dState, pState, stateSize, t](const unsigned int memberIndex){
| ~~~~^
4 warnings and 5 errors generated.
make[3]: [CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o] Error 1
make[2]: [CMakeFiles/run.dir/all] Error 2
make[1]: [CMakeFiles/run.dir/rule] Error 2
make: [run] Error 2
/bin/sh: ./build/run: No such file or directory
OK, I understood something. The Apple C compiler is also called gcc, so the gcc I installed is actually called gcc-14. But there is a different error now.
(sheld0n_env) Ch@lapc-br1-291 my_case % ./run -c gcc-14 -- The C compiler identification is AppleClang 16.0.0.16000026 -- The CXX compiler identification is GNU 14.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/homebrew/bin/gcc-14 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done INFO C0P_PROJECT_DIR ../.. -- Configuring done (0.8s) -- Generating done (0.0s) -- Build files have been written to: /Users/Ch/Documents/Python/sheld0n/cases/my_case/build [ 16%] Building CXX object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o [ 33%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/soapC.c.o [ 50%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/soapClient.c.o [ 66%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/stdsoap2.c.o [ 83%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/turblib.c.o [100%] Linking CXX executable run ld: warning: ignoring duplicate libraries: '-ltbb' ld: warning: search path '/usr/local/opt/zlib/lib' not found ld: warning: search path '/usr/local/opt/bzip2/lib' not found ld: library 'tbb' not found collect2: error: ld returned 1 exit status make[3]: [run] Error 1 make[2]: [CMakeFiles/run.dir/all] Error 2 make[1]: [CMakeFiles/run.dir/rule] Error 2 make: [run] Error 2 /bin/sh: ./build/run: No such file or directory
J'ai l'impression que ces deux compilateurs C++ ne rendent pas les choses faciles. Il faudrait pouvoir indiquer dans quel répertoire aller chercher les librairies en priorité. Je peux essayer de le faire dans $PATH, mais je ne suis pas sûr que ce soit le problème.
En effet, ce n'est pas évident mais on arrive à quelque chose, là ça compile maintenant c'est juste un problème de linkage de la library tbb. Est-ce que tu as bien installé la library tbb
?
Si ce n'est pas le cas :
brew install tbb
Et ça réglera le problème avec un peu de chance. Essaie aussi avec to compilateur par défaut (AppleClang) pour voir (ça devrait marcher).
Si tbb
est bien installé et que ça ne marche pas, il faudra l'aider en lui disant où la trouver (il y a déjà un option dans l'executable run) mais on verra à ce moment là.
AppleCland, pas génial:
(sheld0n_env) Ch@lapc-br1-291 my_case % ./run
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
INFO C0P_PROJECT_DIR ../..
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/Ch/Documents/Python/sheld0n/cases/my_case/build
[ 16%] Building CXX object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:178:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/Half.h:218:48: warning: 'denorm_present' is deprecated [-Wdeprecated-declarations]
218 | static const float_denorm_style has_denorm = denorm_present;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:178:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/Half.h:218:16: warning: 'float_denorm_style' is deprecated [-Wdeprecated-declarations]
218 | static const float_denorm_style has_denorm = denorm_present;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:179:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/BFloat16.h:100:53: warning: 'denorm_absent' is deprecated [-Wdeprecated-declarations]
100 | static const float_denorm_style has_denorm = std::denorm_absent;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:3:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/./param/parameters.h:5:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/prop.h:6:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Dense:1:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/Core:179:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../thirdparty/eigen/Eigen/src/Core/arch/Default/BFloat16.h:100:16: warning: 'float_denorm_style' is deprecated [-Wdeprecated-declarations]
100 | static const float_denorm_style has_denorm = std::denorm_absent;
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/limits:129:6: note: 'float_denorm_style' has been explicitly marked deprecated here
129 | enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:1034:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1034 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:4:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/core.h:10:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/solutions/core.h:11:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:5:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:211:34: error: no member named 'par_unseq' in namespace 'std::execution'
211 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [pState](const unsigned int memberIndex){
| ~~~~^
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:258:34: error: no member named 'par_unseq' in namespace 'std::execution'
258 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&p_state](const unsigned int memberIndex){
| ~~~~^
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:307:34: error: no member named 'par_unseq' in namespace 'std::execution'
307 | std::for_each(std::execution::par_unseq, groupIndexs.cbegin(), groupIndexs.cend(), [&states](const unsigned int groupIndex){
| ~~~~^
In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:4:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/core.h:10:
In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/solutions/core.h:11:
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:81:34: error: no member named 'par_unseq' in namespace 'std::execution'
81 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&dState, pState, stateSize, t](const unsigned int memberIndex){
| ~~~~^
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:107:34: error: no member named 'par_unseq' in namespace 'std::execution'
107 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&dState, pState, stateSize, t](const unsigned int memberIndex){
| ~~~~^
4 warnings and 5 errors generated.
make[3]: [CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o] Error 1
make[2]: [CMakeFiles/run.dir/all] Error 2
make[1]: [CMakeFiles/run.dir/rule] Error 2
make: [run] Error 2
/bin/sh: ./build/run: No such file or directory
j'ai déjà installé tbb avec brew, mais il y a une autre version de la librairie il me semble.
Bon ok, je me suis renseigné un peu, le problème avec AppleClang, c'est qu'il ne supporte pas encore certaines fonctionnalités du c++17 (dont j'ai besoin pour la parallélisation du code). Il y aurait des solutions mais on va revenir sur gcc, ça me parait plus simple.
J'avais déjà eu un problème similaire pour faire tourner mes simulations sur le cluster, donc j'avais prévu une solution de secours, l'option -t
ou --tbb-dir
de la commande run
(et ce sera pareil pour le post
) :
./run -c gcc-14 -t /usr/local/opt/tbb
Vérifie bien que la librairie est bien localisée à cet endroit là. Si ça marche, je spécifierai ça dans le README pour les utilisateurs de OSX en attendant d'implémenter une solution qui évite la lourdeur de devoir écrire tout ça.
Voilà ce que ça donne:
(sheld0n_env) Ch@lapc-br1-291 my_case % ./run -c gcc-14 -t /opt/homebrew/opt/tbb
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/bin/gcc-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
INFO C0P_PROJECT_DIR ../..
-- Configuring done (1.3s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/Ch/Documents/Python/sheld0n/cases/my_case/build
[ 16%] Building CXX object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o
[ 33%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/soapC.c.o
[ 50%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/soapClient.c.o
[ 66%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/stdsoap2.c.o
[ 83%] Building C object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/modules/fl0w/thirdparty/turblib/turblib.c.o
make[3]: No rule to make target /opt/homebrew/opt/tbb/lib/libtbb.so', needed by
run'. Stop.
make[2]: [CMakeFiles/run.dir/all] Error 2
make[1]: [CMakeFiles/run.dir/rule] Error 2
make: [run] Error 2
/bin/sh: ./build/run: No such file or directory
Pour info, le contenu de tbb/lib
(sheld0n_env) Ch@lapc-br1-291 my_case % ls /opt/homebrew/opt/tbb/lib cmake libtbb.a libtbbbind_2_5.3.dylib libtbbmalloc.2.dylib libtbbmalloc_proxy.2.14.dylib pkgconfig libtbb.12.14.dylib libtbb.dylib libtbbbind_2_5.dylib libtbbmalloc.a libtbbmalloc_proxy.2.dylib python3.13 libtbb.12.dylib libtbbbind_2_5.3.14.dylib libtbbmalloc.2.14.dylib libtbbmalloc.dylib libtbbmalloc_proxy.dylib
Bon ok, on en apprends tous les jours sur osx, le linker n'est pas le même et l'extension des libraries n'est pas la même (dylib au lieu de so pour les librairies dynamiques). J'ai changé d'approche et essayé de régler le problème via CMake directement (ce que je comptais faire pour éviter la lourdeur de l'écriture).
Essaye de mettre à jour le code (git pull
) supprime ton cas et génères-en un nouveau puis réessaye de run :
./run -c gcc-14
Sans l'option -t
cette fois (j'ai supprimé l'option).
Si ça ne marche toujours pas, il faudra que je bricole un truc spécial pour osx.
-- Build files have been written to: /Users/Ch/Documents/Python/sheld0n/cases/my_case/build [ 16%] Building CXX object CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:4: In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/core.h:10: In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/solutions/core.h:11: In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:5: /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:34:61: error: use 'template' keyword to treat 'tVector' as a dependent template name 34 | template using tVector = typename tBase::tVector<_SizeTmp>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:35:63: error: use 'template' keyword to treat 'tView' as a dependent template name
35 | template using tView = typename tBase::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:40:46: error: use 'template' keyword to treat 'tVector' as a dependent template name
40 | using tStateVectorStatic = typename tBase::tVector;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:55:58: error: use 'template' keyword to treat 'tVector' as a dependent template name
55 | template using tVector = typename tBase::tVector<_Size>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:56:63: error: use 'template' keyword to treat 'tView' as a dependent template name
56 | template using tView = typename tBase::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:113:58: error: use 'template' keyword to treat 'tVector' as a dependent template name
113 | template using tVector = typename tBase::tVector<_Size>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:114:63: error: use 'template' keyword to treat 'tView' as a dependent template name
114 | template using tView = typename tBase::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:144:58: error: use 'template' keyword to treat 'tVector' as a dependent template name
144 | template using tVector = typename tBase::tVector<_Size>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:145:63: error: use 'template' keyword to treat 'tView' as a dependent template name
145 | template using tView = typename tBase::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:178:58: error: use 'template' keyword to treat 'tVector' as a dependent template name
178 | template using tVector = typename tBase::tVector<_Size>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:179:63: error: use 'template' keyword to treat 'tView' as a dependent template name
179 | template using tView = typename tBase::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:211:34: error: no member named 'par_unseq' in namespace 'std::execution'
211 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [pState](const unsigned int memberIndex){
| using tVector = typename tBase::tVector<_Size>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:226:63: error: use 'template' keyword to treat 'tView' as a dependent template name
226 | template using tView = typename tBase::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:258:34: error: no member named 'par_unseq' in namespace 'std::execution'
258 | std::for_each(std::execution::par_unseq, memberIndexs.cbegin(), memberIndexs.cend(), [&p_state](const unsigned int memberIndex){
| using tVector = typename tVariable::tVector<_Size>;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:14:64: error: use 'template' keyword to treat 'tView' as a dependent template name
14 | template using tView = typename tVariable::tView;
| ^
| template
/Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:38:55: error: use 'template' keyword to treat 'tVector' as a dependent template name
38 | template using tVector = typename tBase::tVector<_Size>;
| ^
| template
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [CMakeFiles/run.dir/Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp.o] Error 1
~~~~^ /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:225:58: error: use 'template' keyword to treat 'tVector' as a dependent template name 225 | template~~~~^ /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/variable.h:307:34: error: no member named 'par_unseq' in namespace 'std::execution' 307 | std::for_each(std::execution::par_unseq, groupIndexs.cbegin(), groupIndexs.cend(), [&states](const unsigned int groupIndex){ |~~~~^ In file included from /Users/Ch/Documents/Python/sheld0n/app/core/run/main.cpp:4: In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/core.h:10: In file included from /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../app/core/solutions/core.h:11: /Users/Ch/Documents/Python/sheld0n/cases/my_case/../../modules/d0t/include/d0t/equation.h:13:59: error: use 'template' keyword to treat 'tVector' as a dependent template name 13 | template