Skip to content
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

Unknown CMake command "SHLOMIF_COMMON_SETUP" #15

Open
ShiSanChuan opened this issue Feb 11, 2020 · 11 comments
Open

Unknown CMake command "SHLOMIF_COMMON_SETUP" #15

ShiSanChuan opened this issue Feb 11, 2020 · 11 comments

Comments

@ShiSanChuan
Copy link

hello,I compile according to the tutorial, after executing the "make" command, it appears "Unknown CMake command "SHLOMIF_COMMON_SETUP"

`
/usr/bin/make -j1 O=/home/shisanchuan/C++work/businesscard-linux/buildroot/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig

host-fortune-mod 2.10.0 Configuring
(mkdir -p /home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && cd /home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && rm -f CMakeCache.txt && PATH="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin:/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/sbin:/usr/local/cuda-9.0/bin:/usr/local/MATLAB/R2017a/bin:/usr/local/cuda-9.0/bin:/home/shisanchuan/bin:/home/shisanchuan/.local/bin:/usr/local/bin/cmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:AVA_HOME/bin:/snap/bin:/opt/lingo13/bin/linux64:/home/shisanchuan/Qt5.11.1/5.11.1/gcc_64/bin" PKG_CONFIG="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib/pkgconfig:/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/share/pkgconfig" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 /usr/local/bin/cmake /home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host" -DCMAKE_C_FLAGS="-O2 -I/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/include" -DCMAKE_CXX_FLAGS="-O2 -I/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/include" -DCMAKE_EXE_LINKER_FLAGS="-L/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib" -DCMAKE_SHARED_LINKER_FLAGS="-L/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib" -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache" -DCMAKE_CXX_COMPILER="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache" -DCMAKE_C_COMPILER_ARG1="/usr/bin/gcc" -DCMAKE_CXX_COMPILER_ARG1="/usr/bin/g++" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF )
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache
-- Check for working C compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache -- 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: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache
-- Check for working CXX compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:4 (SHLOMIF_COMMON_SETUP):
Unknown CMake command "SHLOMIF_COMMON_SETUP".
-- Configuring incomplete, errors occurred!
See also "/home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build/CMakeFiles/CMakeOutput.log".
package/pkg-generic.mk:228: recipe for target '/home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/.stamp_configured' failed
make[1]: *** [/home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/.stamp_configured] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
`

@thirtythreeforty
Copy link
Owner

You are not the first person to get this error. I am unable to reproduce it, however. Would you mind telling me what operating system you are running on your workstation?

@solhuebner
Copy link

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

@ShiSanChuan
Copy link
Author

ShiSanChuan commented Feb 16, 2020

You are not the first person to get this error. I am unable to reproduce it, however. Would you mind telling me what operating system you are running on your workstation?

I am running the Ubuntu system

@ShiSanChuan
Copy link
Author

ShiSanChuan commented Feb 16, 2020

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ohhhhhhh, thanks, I successfully compiled it after removing the options, and I plan to try this mirror in the next period

@thirtythreeforty
Copy link
Owner

Thanks for the host system info. Ideally the fortune package should compile for everyone, so I'll try to fix it if I can reproduce it in a CentOS container.

@baolintian
Copy link

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ohhhhhhh, thanks, I successfully compiled it after removing the options, and I plan to try this mirror in the next period

Excuse me, I also encountered the same problem but I don't know which lines should remove from the error information. Could you point out the specific lines or some key words?

@baolintian
Copy link

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ohhhhhhh, thanks, I successfully compiled it after removing the options, and I plan to try this mirror in the next period

Excuse me, I also encountered the same problem but I don't know which lines should remove from the error information. Could you point out the specific lines or some key words?

YES! I also solved this problem. Remember delete the lines about ' FORTUNE_MOD' in 'Config.in' and 'configs/thirtythreeforty_businesscard_defconfig'. This two files at top directory.

@MichaelKirsch
Copy link

Had the same problem. I disabled all the games and ran apt upgrade on my host. now it compiles. maybe that will help others too

@iscle
Copy link

iscle commented Mar 31, 2021

Same error on Ubuntu 20.04 x86_64!

>>> host-fortune-mod 2.10.0 Configuring
(mkdir -p /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && cd /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && rm -f CMakeCache.txt && PATH="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin:/media/iscle/Data_1/businesscard-linux/buildroot/output/host/sbin:/home/iscle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib/pkgconfig:/media/iscle/Data_1/businesscard-linux/buildroot/output/host/share/pkgconfig" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1  /usr/bin/cmake /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="/media/iscle/Data_1/businesscard-linux/buildroot/output/host" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="/media/iscle/Data_1/businesscard-linux/buildroot/output/host" -DCMAKE_C_FLAGS="-O2 -I/media/iscle/Data_1/businesscard-linux/buildroot/output/host/include" -DCMAKE_CXX_FLAGS="-O2 -I/media/iscle/Data_1/businesscard-linux/buildroot/output/host/include" -DCMAKE_EXE_LINKER_FLAGS="-L/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib" -DCMAKE_SHARED_LINKER_FLAGS="-L/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib" -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache" -DCMAKE_CXX_COMPILER="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache"  -DCMAKE_C_COMPILER_ARG1="/usr/bin/gcc" -DCMAKE_CXX_COMPILER_ARG1="/usr/bin/g++"  -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF   )
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache
-- Check for working C compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache -- 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: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache
-- Check for working CXX compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at cmake/shlomif_common_bootstrap.cmake:7 (MESSAGE):
  Could not find Shlomif_Common.cmake - you can find it here:
  https://bitbucket.org/shlomif/shlomif-cmake-modules/overview ; trying to
  download it for you.
Call Stack (most recent call first):
  CMakeLists.txt:3 (INCLUDE)


CMake Error at CMakeLists.txt:4 (SHLOMIF_COMMON_SETUP):
  Unknown CMake command "SHLOMIF_COMMON_SETUP".


-- Configuring incomplete, errors occurred!
See also "/media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build/CMakeFiles/CMakeOutput.log".
make[1]: *** [package/pkg-generic.mk:231: /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/.stamp_configured] Error 1
make: *** [Makefile:84: _all] Error 2
iscle@iscle-ubuntu:~/Data_1/businesscard-linux/buildroot$

@mingusdenny
Copy link

I had the same issue. The location for the cmake file is 404.

Instead I downloaded from here:

https://github.com/shlomif/shlomif-cmake-modules

@ChangJiahong
Copy link

I had the same issue. The location for the cmake file is 404.

Instead I downloaded from here:

https://github.com/shlomif/shlomif-cmake-modules

YES! I downloaded the corresponding Shlomif_Common.cmake from here (https://github.com/shlomif/shlomif-cmake-modules) and replaced it under the businesscard-linux/buildroot/output/build/fortune-mod-2.10.0/fortune-mod/cmake folder , I don't know what caused the Shlomif_Common.cmake under this folder to be empty, after replacing, it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants