[GH-ISSUE #409] cmake errors #322

Closed
opened 2026-05-05 12:09:08 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @justdomyself on GitHub (Sep 18, 2023).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/409

Originally assigned to: @jmcnamara on GitHub.

when I use cmake ,cmd like this:

cmake -DCMAKE_TOOLCHAIN_PATH=imx6ull.cmake


imx6ull.cmake:

set(TOOLCHAIN_DIR /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/)
set(CMAKE_SYSROOT ${TOOLCHAIN_DIR}/cortexa7hf-neon-poky-linux-gnueabi)
set(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux-gcc
)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux-g++)

set(CMAKE_C_FLAGS "-march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

errors:

-- Found ZLIB: /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/lib/libz.so (found suitable version "1.2.11", minimum required is "1.0") 
zlib version: 
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/TestBigEndian.cmake:50 (message):
  no suitable type found
Call Stack (most recent call first):
  CMakeLists.txt:248 (TEST_BIG_ENDIAN)


-- Configuring incomplete, errors occurred!
See also "/home/alientek/Desktop/cmake/imx6/libxlsxwriter/CMakeFiles/CMakeOutput.log".
See also "/home/alientek/Desktop/cmake/imx6/libxlsxwriter/CMakeFiles/CMakeError.log".
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
CMAKE_CXX_COMPILER= /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
make: *** [Makefile:988: cmake_check_build_system] Error 1
Originally created by @justdomyself on GitHub (Sep 18, 2023). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/409 Originally assigned to: @jmcnamara on GitHub. when I use cmake ,cmd like this: ``` cmake -DCMAKE_TOOLCHAIN_PATH=imx6ull.cmake imx6ull.cmake: set(TOOLCHAIN_DIR /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/) set(CMAKE_SYSROOT ${TOOLCHAIN_DIR}/cortexa7hf-neon-poky-linux-gnueabi) set(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux-gcc ) set(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux-g++) set(CMAKE_C_FLAGS "-march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7") set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) ``` errors: ``` -- Found ZLIB: /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/lib/libz.so (found suitable version "1.2.11", minimum required is "1.0") zlib version: -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - not found -- Looking for stdint.h -- Looking for stdint.h - not found -- Looking for stddef.h -- Looking for stddef.h - not found -- Check size of unsigned short -- Check size of unsigned short - failed -- Check size of unsigned int -- Check size of unsigned int - failed -- Check size of unsigned long -- Check size of unsigned long - failed CMake Error at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/TestBigEndian.cmake:50 (message): no suitable type found Call Stack (most recent call first): CMakeLists.txt:248 (TEST_BIG_ENDIAN) -- Configuring incomplete, errors occurred! See also "/home/alientek/Desktop/cmake/imx6/libxlsxwriter/CMakeFiles/CMakeOutput.log". See also "/home/alientek/Desktop/cmake/imx6/libxlsxwriter/CMakeFiles/CMakeError.log". You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc CMAKE_CXX_COMPILER= /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. make: *** [Makefile:988: cmake_check_build_system] Error 1 ```
gitea-mirror 2026-05-05 12:09:08 -06:00
Author
Owner

@jmcnamara commented on GitHub (Sep 18, 2023):

It looks like there may be an issue with the recently added CMakeLists.txt check for Big Endianness in the commit 44e72c5862

Could you disable this check or git checkout back to the previous commit (31b331462d) and see if it resolves the issue.

<!-- gh-comment-id:1722927207 --> @jmcnamara commented on GitHub (Sep 18, 2023): It looks like there may be an issue with the recently added CMakeLists.txt check for Big Endianness in the commit 44e72c5862f9d549453a4ff6e8ceab0da19705e5 Could you disable this check or git checkout back to the previous commit (31b331462d4312402503510cb2d0bbec629c1891) and see if it resolves the issue.
Author
Owner

@jmcnamara commented on GitHub (Sep 23, 2023):

Could you disable this check or git checkout back to the previous commit (31b331462d) and see if it resolves the issue.

@justdomyself Any feedback on this?

<!-- gh-comment-id:1732258754 --> @jmcnamara commented on GitHub (Sep 23, 2023): > Could you disable this check or git checkout back to the previous commit (https://github.com/jmcnamara/libxlsxwriter/commit/31b331462d4312402503510cb2d0bbec629c1891) and see if it resolves the issue. @justdomyself Any feedback on this?
Author
Owner

@jmcnamara commented on GitHub (Sep 25, 2023):

Closing due to lack of follow up.

<!-- gh-comment-id:1734331667 --> @jmcnamara commented on GitHub (Sep 25, 2023): Closing due to lack of follow up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#322
No description provided.