[J-core] nextpnr build failed with weird cmake error?
Rob Landley
rob at landley.net
Wed Sep 16 08:14:58 UTC 2020
On 9/16/20 3:13 AM, Rob Landley wrote:
> Sigh. Ok, digging back... I need to add C to the project() language list at the
> top level, and it should get inherited? Ok, that built.
>
> I should submit a pull request...
For the record, the full error message was:
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
CMake Error at /usr/share/cmake-3.7/Modules/CheckIncludeFile.cmake:56 (try_compile):
Unknown extension ".c" for file
/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CMakeTmp/CheckIncludeFile.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:223 (check_include_file)
/usr/share/cmake-3.7/Modules/TestBigEndian.cmake:24 (CHECK_TYPE_SIZE)
CMakeLists.txt:199 (test_big_endian)
-- Looking for sys/types.h - not found
-- Looking for stdint.h
CMake Error at /usr/share/cmake-3.7/Modules/CheckIncludeFile.cmake:56 (try_compile):
Unknown extension ".c" for file
/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CMakeTmp/CheckIncludeFile.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:224 (check_include_file)
/usr/share/cmake-3.7/Modules/TestBigEndian.cmake:24 (CHECK_TYPE_SIZE)
CMakeLists.txt:199 (test_big_endian)
-- Looking for stdint.h - not found
-- Looking for stddef.h
CMake Error at /usr/share/cmake-3.7/Modules/CheckIncludeFile.cmake:56 (try_compile):
Unknown extension ".c" for file
/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CMakeTmp/CheckIncludeFile.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:225 (check_include_file)
/usr/share/cmake-3.7/Modules/TestBigEndian.cmake:24 (CHECK_TYPE_SIZE)
CMakeLists.txt:199 (test_big_endian)
-- Looking for stddef.h - not found
-- Check size of unsigned short
CMake Error at /usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:114 (try_compile):
Unknown extension ".c" for file
/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:239 (__check_type_size_impl)
/usr/share/cmake-3.7/Modules/TestBigEndian.cmake:24 (CHECK_TYPE_SIZE)
CMakeLists.txt:199 (test_big_endian)
-- Check size of unsigned int
CMake Error at /usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:114 (try_compile):
Unknown extension ".c" for file
/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_INT.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:239 (__check_type_size_impl)
/usr/share/cmake-3.7/Modules/TestBigEndian.cmake:29 (CHECK_TYPE_SIZE)
CMakeLists.txt:199 (test_big_endian)
-- Check size of unsigned long
CMake Error at /usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:114 (try_compile):
Unknown extension ".c" for file
/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_LONG.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CheckTypeSize.cmake:239 (__check_type_size_impl)
/usr/share/cmake-3.7/Modules/TestBigEndian.cmake:36 (CHECK_TYPE_SIZE)
CMakeLists.txt:199 (test_big_endian)
CMake Error at /usr/share/cmake-3.7/Modules/TestBigEndian.cmake:41 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:199 (test_big_endian)
-- Configuring incomplete, errors occurred!
See also "/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CMakeOutput.log".
See also "/home/landley/yogh2/sub2/nextpnr/CMakeFiles/CMakeError.log".
More information about the J-core
mailing list