Skip to content

Cannot compile on macOS 26.2: errors #117

@krl91

Description

@krl91

Hi,
my mac is up to date (30/12/2025)

brew install automake autoconf libusb pkg-config git wget
git clone https://github.com/rockchip-linux/rkdeveloptool
cd rkdeveloptool

then I try according to docs.radxa.

autoreconf -i
./configure
make -j $(nproc)

and I have the following errors:

g++ -DHAVE_CONFIG_H -I. -I./cfg  -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/opt/homebrew/Cellar/libusb/1.0.29/include/libusb-1.0   -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
main.cpp:2563:12: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
 2563 |         BYTE pBuf[nSectorSize * DEFAULT_RW_LBA];
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:2563:12: note: read of non-const variable 'nSectorSize' is not allowed in a constant expression
main.cpp:2562:6: note: declared here
 2562 |         int nSectorSize = 512;
      |             ^
main.cpp:2935:12: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
 2935 |         BYTE pBuf[nSectorSize * DEFAULT_RW_LBA];
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:2935:12: note: read of non-const variable 'nSectorSize' is not allowed in a constant expression
main.cpp:2934:6: note: declared here
 2934 |         int nSectorSize = 512;
      |             ^
2 errors generated.
make[1]: *** [main.o] Error 1
make: *** [all-recursive] Error 1```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions