New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile with Cmake 3.16.3 #223
Comments
Hi @jefersonjlima . I was on vacation. Thanks for reporting this. Could you please let me know the exact error? With this info, I'll be able to identify the minimum cmake version (which is certainly not 3.0 indeed). |
Hi @allanleal , I'm sorry about the delay.
It was fixed when I updated the |
It should be possible now to compile with CMake 3.16. Thanks for reporting. |
@allanleal I am experiencing this issue and I cloned today. Any updates? |
@rmslick what is the error message? What is your cmake version? |
@allanleal Version is 3.16.3. Error posted below. Thanks for the quick reply! [ 41%] Built target autodiff4py copy_if_different ... destination - copy files if it has changed echo [...] - displays arguments as text echo_append [...] - displays arguments as text but no new line env [--unset=NAME]... [NAME=VALUE]... COMMAND [ARG]... - run command in a modified environment environment - display the current environment make_directory ... - create parent and directories md5sum ... - create MD5 checksum of files sha1sum ... - create SHA1 checksum of files sha224sum ... - create SHA224 checksum of files sha256sum ... - create SHA256 checksum of files sha384sum ... - create SHA384 checksum of files sha512sum ... - create SHA512 checksum of files remove [-f] ... - remove the file(s), use -f to force it remove_directory ... - remove directories and their contents rename oldname newname - rename a file or directory (on one volume) server - start cmake in server mode sleep ... - sleep for given number of seconds tar [cxt][vf][zjJ] file.tar [file/dir1 file/dir2 ...] - create or extract a tar or zip archive time command [args...] - run command and display elapsed time touch ... - touch a . touch_nocreate ... - touch a but do not create it. create_symlink old new - create a symbolic link new -> old true - do nothing with an exit code of 0 false - do nothing with an exit code of 1 make[2]: *** [python/package/CMakeFiles/autodiff-setuptools.dir/build.make:60: python/package/CMakeFiles/autodiff-setuptools] Error 1 |
OK, sounds like 3.16.3 is not the minimum required but some more recent version. Just tried here with CMake 3.16.3 (version installed in Ubuntu 20.04 with I have just pushed a commit to the |
I wish I saw your edit before reading your advice that is now crossed out. I upgraded to 3.23 and got smashed with errors when running cmake --build . --target install. It gets to: The errors are too long to post in-full but here is the end: 843 | return std::forward(l) + ( -std::forward(r) ); |
What is the compiler and version you're using? As you can see in the past GitHub Actions, the build process is working correctly for Linux, Windows and macOS. |
@allanleal I must have messed something up when I switched CMake versions. I uninstalled cmake and reinstalled 3.16.3 and rebuilt succesfuly. Thanks a lot! |
Hello,
I get some errors when I compile
autodiff
withCmake - version 3.16.3
. TheCMakeLists.txt
has thecmake_minimum_required(VERSION 3.0)
, but, I think it isn't right.I compile with
Cmake 3.23.0
and it works fine.The text was updated successfully, but these errors were encountered: