Skip to content

build error on macOS 13.7.8 #5

@HonestQiao

Description

@HonestQiao

OS: maxOS 13.7.8 (22H730) / Intel

$ qt-cmake -version
cmake version 4.0.3

$ brew info qt
==> qt: stable 6.9.1 (bottled), HEAD
Cross-platform application and UI framework
https://www.qt.io/
Installed
/usr/local/Cellar/qt/6.9.1 (17,708 files, 355.9MB) *
  Poured from bottle using the formulae.brew.sh API on 2025-09-22 at 10:00:03

$ git clone --recursive https://github.com/kendryte/k230_burning_tool.git
正克隆到 'k230_burning_tool'...
remote: Enumerating objects: 1515, done.
remote: Counting objects: 100% (265/265), done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 1515 (delta 152), reused 197 (delta 106), pack-reused 1250 (from 1)
接收对象中: 100% (1515/1515), 4.55 MiB | 3.45 MiB/s, 完成.
处理 delta 中: 100% (827/827), 完成.
子模组 'canaan-burn/3rdparty/libusb-cmake'(https://github.com/kendryte747/libusb-cmake.git)已对路径 'canaan-burn/3rdparty/libusb-cmake' 注册
子模组 'canaan-burn/3rdparty/sanitizers-cmake'(https://github.com/arsenm/sanitizers-cmake.git)已对路径 'canaan-burn/3rdparty/sanitizers-cmake' 注册
正克隆到 '/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/3rdparty/libusb-cmake'...
remote: Enumerating objects: 375, done.
remote: Counting objects: 100% (375/375), done.
remote: Compressing objects: 100% (185/185), done.
remote: Total 375 (delta 161), reused 375 (delta 161), pack-reused 0 (from 0)
接收对象中: 100% (375/375), 555.84 KiB | 2.65 MiB/s, 完成.
处理 delta 中: 100% (161/161), 完成.
正克隆到 '/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/3rdparty/sanitizers-cmake'...
remote: Enumerating objects: 256, done.
remote: Counting objects: 100% (100/100), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 256 (delta 86), reused 82 (delta 79), pack-reused 156 (from 1)
接收对象中: 100% (256/256), 56.97 KiB | 641.00 KiB/s, 完成.
处理 delta 中: 100% (162/162), 完成.
子模组路径 'canaan-burn/3rdparty/libusb-cmake':检出 '882d2371eff1b02faa9a03e9a5b8d746a0a3ac08'
子模组 'libusb'(https://github.com/libusb/libusb.git)已对路径 'canaan-burn/3rdparty/libusb-cmake/libusb' 注册
正克隆到 '/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/3rdparty/libusb-cmake/libusb'...
remote: Enumerating objects: 18153, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 18153 (delta 2), reused 8 (delta 2), pack-reused 18142 (from 1)
接收对象中: 100% (18153/18153), 5.47 MiB | 8.35 MiB/s, 完成.
处理 delta 中: 100% (13013/13013), 完成.
子模组路径 'canaan-burn/3rdparty/libusb-cmake/libusb':检出 '467b6a8896daea3d104958bf0887312c5d14d150'
子模组路径 'canaan-burn/3rdparty/sanitizers-cmake':检出 '3f0542e4e034aab417c51b2b22c94f83355dee15'

$ cd k230_burning_tool
$ ./release_macos.sh
Git revision: v2.2.3-0-gb33a4c0
=== Building variant: normal ===
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- CMAKE_BUILD_TYPE Release
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- 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
CMake Deprecation Warning at canaan-burn/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for pthread_condattr_setclock
-- Looking for pthread_condattr_setclock - not found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_threadid_np
-- Looking for pthread_threadid_np - found
-- Looking for eventfd
-- Looking for eventfd - not found
-- Looking for pipe2
-- Looking for pipe2 - not found
-- Looking for syslog
-- Looking for syslog - found
-- Looking for include file asm/types.h
-- Looking for include file asm/types.h - not found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for timerfd_create
-- Looking for timerfd_create - not found
-- Looking for nfds_t
-- Looking for nfds_t - not found
-- Performing Test HAVE_STRUCT_TIMESPEC
-- Performing Test HAVE_STRUCT_TIMESPEC - Success
-- Performing Test HAVE_VISIBILITY
-- Performing Test HAVE_VISIBILITY - Success
CMake Deprecation Warning at gui/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
-- Found WrapOpenGL: TRUE
-- Found WrapVulkanHeaders: /usr/local/include
-- Qt installation directory: /usr/local/lib/QtCore.framework/Versions/A
-- Configuring done (9.2s)
CMake Warning (dev):
  Policy CMP0068 is not set: RPATH settings on macOS do not affect
  install_name.  Run "cmake --help-policy CMP0068" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, the install_name fields for
  the following targets are still affected by RPATH settings:

   canaan_burn

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done (0.2s)
-- Build files have been written to: /Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/build/normal
[38/74] Building C object canaan-burn/CMakeFiles/canaan_burn.dir/monitor/settings.c.o
FAILED: [code=1] canaan-burn/CMakeFiles/canaan_burn.dir/monitor/settings.c.o
/usr/bin/cc -DAPPLE -DBURN_LIB_COMPILING -DIS_DEBUG=0 -DKBURN_ASSERT_SIZE -DPROJECT_ROOT=\"/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool\" -Dcanaan_burn_EXPORTS -D_GNU_SOURCE -I/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include -isystem /Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/3rdparty/libusb-cmake/libusb/libusb -O3 -DNDEBUG -std=gnu2x -mmacosx-version-min=13.0 -fPIC -Wno-error=attributes -Wno-error=format-security -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -pedantic -Werror -Wno-format-security -MD -MT canaan-burn/CMakeFiles/canaan_burn.dir/monitor/settings.c.o -MF canaan-burn/CMakeFiles/canaan_burn.dir/monitor/settings.c.o.d -o canaan-burn/CMakeFiles/canaan_burn.dir/monitor/settings.c.o -c '/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/monitor/settings.c'
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/monitor/settings.c:11:1: error: extension used [-Werror,-Wlanguage-extension-token]
CREATE_GETTER_SETTER(FilterVid, vid)
^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/monitor/usb_types.h:122:51: note: expanded from macro 'CREATE_GETTER_SETTER'
#define CREATE_GETTER_SETTER(Field, config_field) _CREATE_GETTER_SETTER(Usb, Field, config_field)
                                                  ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/lib/basic/macros.public_interface.h:5:52: note: expanded from macro '_CREATE_GETTER_SETTER'
        void kburnSet##Subsystem##Field(KBMonCTX monitor, typeof(subsystem_settings.config_field) Field) { \
                                                          ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/monitor/settings.c:11:1: error: extension used [-Werror,-Wlanguage-extension-token]
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/monitor/usb_types.h:122:51: note: expanded from macro 'CREATE_GETTER_SETTER'
#define CREATE_GETTER_SETTER(Field, config_field) _CREATE_GETTER_SETTER(Usb, Field, config_field)
                                                  ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/lib/basic/macros.public_interface.h:9:2: note: expanded from macro '_CREATE_GETTER_SETTER'
        typeof(subsystem_settings.config_field) kburnGet##Subsystem##Field(KBMonCTX monitor) {             \
        ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/monitor/settings.c:12:1: error: extension used [-Werror,-Wlanguage-extension-token]
CREATE_GETTER_SETTER(FilterPid, pid)
^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/monitor/usb_types.h:122:51: note: expanded from macro 'CREATE_GETTER_SETTER'
#define CREATE_GETTER_SETTER(Field, config_field) _CREATE_GETTER_SETTER(Usb, Field, config_field)
                                                  ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/lib/basic/macros.public_interface.h:5:52: note: expanded from macro '_CREATE_GETTER_SETTER'
        void kburnSet##Subsystem##Field(KBMonCTX monitor, typeof(subsystem_settings.config_field) Field) { \
                                                          ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/monitor/settings.c:12:1: error: extension used [-Werror,-Wlanguage-extension-token]
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/monitor/usb_types.h:122:51: note: expanded from macro 'CREATE_GETTER_SETTER'
#define CREATE_GETTER_SETTER(Field, config_field) _CREATE_GETTER_SETTER(Usb, Field, config_field)
                                                  ^
/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/canaan-burn/include/private/lib/basic/macros.public_interface.h:9:2: note: expanded from macro '_CREATE_GETTER_SETTER'
        typeof(subsystem_settings.config_field) kburnGet##Subsystem##Field(KBMonCTX monitor) {             \
        ^
4 errors generated.
[43/74] Generating K230_qt_zh_CN.qm
Updating '/Users/HonestQiao/Desktop/开发板/99.DFRobot/9965.DFRobot_二哈识图/k230_burning_tool/build/normal/gui/K230_qt_zh_CN.qm'...
    Generated 118 translation(s) (118 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[46/74] Building C object canaan-burn/3rdparty/libusb-cmake/CMakeFiles/usb-1.0.dir/libusb/libusb/os/darwin_usb.c.o
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions