Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] sim/segger: stream_rtt.c fails at lib_puts_t int vs long unsigned int #14796

Closed
1 task done
lupyuen opened this issue Nov 14, 2024 · 1 comment · Fixed by #14802
Closed
1 task done

[BUG] sim/segger: stream_rtt.c fails at lib_puts_t int vs long unsigned int #14796

lupyuen opened this issue Nov 14, 2024 · 1 comment · Fixed by #14802
Labels
Arch: simulator Issues related to the SIMulator Area: Build system OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@lupyuen
Copy link
Member

lupyuen commented Nov 14, 2024

Description / Steps to reproduce the issue

Reported by nuttx-dashboard.org: segger/stream_rtt.c fails to build due to incompatible types in lib_puts_t. segger/stream_rtt.c has not been changed recently. Has the Segger API changed?

https://github.com/NuttX/nuttx/actions/runs/11842046534/job/32999846174#step:7:259

Configuration/Tool: sim/segger
segger/stream_rtt.c: In function 'lib_rttoutstream_open':
Error: segger/stream_rtt.c:137:23: error: assignment to 'lib_puts_t' {aka 'long int (*)(struct lib_outstream_s *, const void *, long unsigned int)'} from incompatible pointer type 'int (*)(struct lib_outstream_s *, const void *, int)' [-Werror=incompatible-pointer-types]
  137 |   stream->common.puts = rttstream_puts;
      |                       ^
segger/stream_rtt.c: In function 'lib_rttinstream_open':
Error: segger/stream_rtt.c:185:23: error: assignment to 'lib_gets_t' {aka 'long int (*)(struct lib_instream_s *, void *, long unsigned int)'} from incompatible pointer type 'int (*)(struct lib_instream_s *, void *, int)' [-Werror=incompatible-pointer-types]
  185 |   stream->common.gets = rttstream_gets;
      |                       ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:109: segger/stream_rtt.o] Error 1
make[1]: Target 'libdrivers.a' not remade because of errors.
make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu LTS at GitHub Actions

NuttX Version

master

Issue Architecture

[Arch: simulator]

Issue Area

[Area: Build System]

Verification

  • I have verified before submitting the report.
@lupyuen lupyuen added the Type: Bug Something isn't working label Nov 14, 2024
@github-actions github-actions bot added Arch: simulator Issues related to the SIMulator Area: Build system OS: Linux Issues related to Linux (building system, etc) labels Nov 14, 2024
@xiaoxiang781216
Copy link
Contributor

@jasonbu please look at this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: simulator Issues related to the SIMulator Area: Build system OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants