You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "trns1997 (via GitHub)" <gi...@apache.org> on 2026/01/07 17:55:00 UTC
[PR] fix cmake build [nuttx]
trns1997 opened a new pull request, #17794:
URL: https://github.com/apache/nuttx/pull/17794
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
## Summary
*Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.*
## Impact
*Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.*
## Testing
*This section should provide a detailed description of what you did
to verify your changes work and do not break existing code.*
*Please provide information about your host machine, the board(s) you
tested your changes on, and how you tested. Logs should be included.*
*For example, when changing something in the core OS functions, you
may want to run the OSTest application to verify that there are no
regressions. Changes to ADC code may warrant running the `adc`
example. Adding a new uORB driver may require that you run
`uorb_listener` to verify correct operation.*
*Pure documentation changes can just be tested with `make html`
(see docs) and verification of the correct format in your
browser.*
**_PRs without testing information will not be accepted. We will
request test logs._**
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3720231744
@trns1997 shouldn't it be done for all arches ?
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "trns1997 (via GitHub)" <gi...@apache.org>.
trns1997 commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3722486364
> Hi @trns1997 I did a quick test with our docker image and the cmake build for xmc4800-relax:nsh is still broken. I have to go now, I can try again tomorrow.
>
> ```
> FAILED: apps/testing/cxx/cxxtest/CMakeFiles/apps_cxxtest.dir/cxxtest_main.cxx.obj
> /tools/ccache/bin/arm-none-eabi-g++ -D__NuttX__ -Dmain=cxxtest_main -I/github/workspace/sources/apps/include -I/github/workspace/sources/nuttx/build/apps/include -isystem /github/workspace/sources/nuttx/include -isystem /github/workspace/sources/nuttx/build/include -mtune=cortex-m4 -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard --param=min-pagesize=0 -fno-common -Wall -Wshadow -Wundef -nostdlib -fomit-frame-pointer -mthumb -Wa,-mthumb -Wa,-mimplicit-it=always -ffunction-sections -fdata-sections -Wno-attributes -Wno-unknown-pragmas -Wno-psabi -std=c++17 -fdiagnostics-color=always -DNDEBUG -fmacro-prefix-map=/github/workspace/sources/nuttx= -fmacro-prefix-map=/github/workspace/sources/apps= -fmacro-prefix-map=/github/workspace/sources/nuttx/boards/arm/xmc4/xmc4800-relax= -fmacro-prefix-map=/github/workspace/sources/nuttx/arch/arm/src/xmc4= @apps/testing/cxx/cxxtest/CMakeFiles/apps_cxxtest.dir/cxxtest_main.cxx.obj.rsp -MD -MT apps/testing/cxx/cxxtest/CMakeFiles/apps_cxxtest.dir
/cxxtest_main.cxx.obj -MF apps/
> In file included from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/cstdlib:79,
> from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/ext/string_conversions.h:43,
> from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/bits/basic_string.h:4097,
> from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/string:54,
> from /github/workspace/sources/apps/testing/cxx/cxxtest/cxxtest_main.cxx:38:
> Error: /tools/gcc-arm-none-eabi/arm-none-eabi/include/stdlib.h:39:3: error: conflicting declaration 'typedef struct div_t div_t'
> 39 | } div_t;
> | ^~~~~
> In file included from /github/workspace/sources/nuttx/include/nuttx/kmalloc.h:34,
> from /github/workspace/sources/nuttx/include/nuttx/lib/lib.h:32,
> from /github/workspace/sources/nuttx/include/stdio.h:37,
> from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/cstdio:42,
> from /github/workspace/sources/apps/testing/cxx/cxxtest/cxxtest_main.cxx:29:
> /github/workspace/sources/nuttx/include/stdlib.h:98:22: note: previous declaration as 'typedef struct div_s div_t'
> 98 | typedef struct div_s div_t;
> | ^~~~~
> Error: /tools/gcc-arm-none-eabi/arm-none-eabi/include/stdlib.h:45:3: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
> 45 | } ldiv_t;
> | ^~~~~~
> /github/workspace/sources/nuttx/include/stdlib.h:108:23: note: previous declaration as 'typedef struct ldiv_s ldiv_t'
> 108 | typedef struct ldiv_s ldiv_t;
> | ^~~~~~
> Error: /tools/gcc-arm-none-eabi/arm-none-eabi/include/stdlib.h:52:3: error: conflicting declaration 'typedef struct lldiv_t lldiv_t'
> 52 | } lldiv_t;
> | ^~~~~~~
> /github/workspace/sources/nuttx/include/stdlib.h:118:24: note: previous declaration as 'typedef struct lldiv_s lldiv_t'
> 118 | typedef struct lldiv_s lldiv_t;
> | ^~~~~~~
> ninja: build stopped: subcommand failed.
> ```
>
> https://github.com/simbit18/nuttx_test_pr/actions/runs/20793254632/job/59720359204
Ah well I will look into it. Merged too quick
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "trns1997 (via GitHub)" <gi...@apache.org>.
trns1997 commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3720114901
ping @leducp
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #17794:
URL: https://github.com/apache/nuttx/pull/17794
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "trns1997 (via GitHub)" <gi...@apache.org>.
trns1997 commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3720123655
@simbit18 i would like you opinion on the TODO i added here.
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "trns1997 (via GitHub)" <gi...@apache.org>.
trns1997 commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3720311787
> @trns1997 shouldn't it be done for all arches ?
Ah you might be right
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "trns1997 (via GitHub)" <gi...@apache.org>.
trns1997 commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3720184091
@xiaoxiang781216 any thoughts on the TODO I suggested? Or is it not worth it?
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix cmake build [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #17794:
URL: https://github.com/apache/nuttx/pull/17794#issuecomment-3720385514
Hi @trns1997 I did a quick test with our docker image and cmake is still broken.
I have to go now, I can try again tomorrow.
```
FAILED: apps/testing/cxx/cxxtest/CMakeFiles/apps_cxxtest.dir/cxxtest_main.cxx.obj
/tools/ccache/bin/arm-none-eabi-g++ -D__NuttX__ -Dmain=cxxtest_main -I/github/workspace/sources/apps/include -I/github/workspace/sources/nuttx/build/apps/include -isystem /github/workspace/sources/nuttx/include -isystem /github/workspace/sources/nuttx/build/include -mtune=cortex-m4 -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard --param=min-pagesize=0 -fno-common -Wall -Wshadow -Wundef -nostdlib -fomit-frame-pointer -mthumb -Wa,-mthumb -Wa,-mimplicit-it=always -ffunction-sections -fdata-sections -Wno-attributes -Wno-unknown-pragmas -Wno-psabi -std=c++17 -fdiagnostics-color=always -DNDEBUG -fmacro-prefix-map=/github/workspace/sources/nuttx= -fmacro-prefix-map=/github/workspace/sources/apps= -fmacro-prefix-map=/github/workspace/sources/nuttx/boards/arm/xmc4/xmc4800-relax= -fmacro-prefix-map=/github/workspace/sources/nuttx/arch/arm/src/xmc4= @apps/testing/cxx/cxxtest/CMakeFiles/apps_cxxtest.dir/cxxtest_main.cxx.obj.rsp -MD -MT apps/testing/cxx/cxxtest/CMakeFiles/apps_cxxtest.dir/c
xxtest_main.cxx.obj -MF apps/
In file included from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/cstdlib:79,
from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/ext/string_conversions.h:43,
from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/bits/basic_string.h:4097,
from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/string:54,
from /github/workspace/sources/apps/testing/cxx/cxxtest/cxxtest_main.cxx:38:
Error: /tools/gcc-arm-none-eabi/arm-none-eabi/include/stdlib.h:39:3: error: conflicting declaration 'typedef struct div_t div_t'
39 | } div_t;
| ^~~~~
In file included from /github/workspace/sources/nuttx/include/nuttx/kmalloc.h:34,
from /github/workspace/sources/nuttx/include/nuttx/lib/lib.h:32,
from /github/workspace/sources/nuttx/include/stdio.h:37,
from /tools/gcc-arm-none-eabi/arm-none-eabi/include/c++/13.2.1/cstdio:42,
from /github/workspace/sources/apps/testing/cxx/cxxtest/cxxtest_main.cxx:29:
/github/workspace/sources/nuttx/include/stdlib.h:98:22: note: previous declaration as 'typedef struct div_s div_t'
98 | typedef struct div_s div_t;
| ^~~~~
Error: /tools/gcc-arm-none-eabi/arm-none-eabi/include/stdlib.h:45:3: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
45 | } ldiv_t;
| ^~~~~~
/github/workspace/sources/nuttx/include/stdlib.h:108:23: note: previous declaration as 'typedef struct ldiv_s ldiv_t'
108 | typedef struct ldiv_s ldiv_t;
| ^~~~~~
Error: /tools/gcc-arm-none-eabi/arm-none-eabi/include/stdlib.h:52:3: error: conflicting declaration 'typedef struct lldiv_t lldiv_t'
52 | } lldiv_t;
| ^~~~~~~
/github/workspace/sources/nuttx/include/stdlib.h:118:24: note: previous declaration as 'typedef struct lldiv_s lldiv_t'
118 | typedef struct lldiv_s lldiv_t;
| ^~~~~~~
ninja: build stopped: subcommand failed.
```
https://github.com/simbit18/nuttx_test_pr/actions/runs/20793254632/job/59720359204
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org