linguini1 commented on PR #17011:
URL: https://github.com/apache/nuttx/pull/17011#issuecomment-3885424646
Hi @simbit18 , I am using CMake (but I have also used Make and it works
too). Here is the output of the entire CMake build process on my machine:
```console
$ cmake -B build -DBOARD_CONFIG=sim:mount -GNinja
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Initializing NuttX
Loaded configuration
'/home/linguini/coding/nuttx-space/nuttx/build/.config.compressed'
Minimal configuration saved to
'/home/linguini/coding/nuttx-space/nuttx/build/defconfig.tmp'
Select HOST_LINUX=y
Select HOST_X86_64=y
-- CMake: 4.2.3
-- Ninja: 1.13.2
-- Board: sim
-- Config: mount
-- Appdir: /home/linguini/coding/nuttx-space/apps
-- The C compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /sbin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: Linux
-- CMake host system processor: x86_64
TOOLS_DIR path is "/home/linguini/coding/nuttx-space/nuttx"
HOST = Linux
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to:
/home/linguini/coding/nuttx-space/nuttx/build/bin_host
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /sbin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /sbin/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: /sbin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Configuring done (3.4s)
-- Generating done (0.5s)
-- Build files have been written to:
/home/linguini/coding/nuttx-space/nuttx/build
$ cmake --build build
[1066/1066] Pac SIM with dynamic libs in nuttx.tgz
'/usr/lib/libz.so.1' -> 'sim-pac/libs/libz.so.1'
'/usr/lib/libm.so.6' -> 'sim-pac/libs/libm.so.6'
'/usr/lib/libc.so.6' -> 'sim-pac/libs/libc.so.6'
'/usr/lib64/ld-linux-x86-64.so.2' -> 'sim-pac/libs/ld-linux-x86-64.so.2'
'/lib64/ld-linux-x86-64.so.2' -> 'sim-pac/ld-linux-x86-64.so.2'
```
So I don't receive this warning locally.
> We need to find a better solution.
I went with this method because the compiler will automatically fail in
places
where an undefined symbol is used, and that prevents me having to add a
bunch of
`static_assert` calls. However, if this can't be resolved with the build
system
(and it looks like it can't), I'll revert back to using `-1` as the default
value and adding static assert statements.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]