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

Build failure: civetweb/http_server with target blackpill_f411ce and CONFIG_DEBUG=y #45658

Closed
Coi-l opened this issue May 15, 2022 · 3 comments
Closed
Assignees
Labels
area: Networking Enhancement Changes/Updates/Additions to existing features

Comments

@Coi-l
Copy link

Coi-l commented May 15, 2022

Describe the bug
Building http_server for board blackpill_f411ce and CONFIG_DEBUG=y fails

To Reproduce
Steps to reproduce the behavior:

west build -p auto -b blackpill_f411ce zephyr/samples/net/civetweb/http_server/ -- -DCONFIG_DEBUG=y

Expected behavior
Build succeded

Impact
It's would be nice with debug output.

Logs and console output

/home/xxx/toolchains/zephyr-sdk-0.14.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/civetweb/lib..__modules__lib__civetweb.a(civetweb.c.obj): in function `pull_inner':
/home/xxx/Projects/zephyrproject/modules/lib/civetweb/src/civetweb.c:6426: undefined reference to `fileno'
/home/xxx/toolchains/zephyr-sdk-0.14.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/civetweb/lib..__modules__lib__civetweb.a(civetweb.c.obj): in function `push_inner':
/home/xxx/Projects/zephyrproject/modules/lib/civetweb/src/civetweb.c:6267: undefined reference to `ferror'

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr SDK,
  • Commit SHA or Version used:
    zephyr: 47850a3

Additional context
Seems related to this issue:
#36796
But the same fix does not seem to work (I think)

@Coi-l Coi-l added the bug The issue is a bug, or the PR is fixing a bug label May 15, 2022
@erwango erwango self-assigned this May 16, 2022
@erwango erwango added priority: low Low impact/importance bug platform: STM32 ST Micro STM32 and removed platform: STM32 ST Micro STM32 labels May 16, 2022
@erwango erwango assigned rlubos and unassigned erwango May 17, 2022
@erwango
Copy link
Member

erwango commented May 17, 2022

@rlubos Would you mind having a look? Seems this issue is not STM32 specific but rather linked to sample configuration.

@rlubos
Copy link
Contributor

rlubos commented May 18, 2022

Well, the problem seems to be limited POSIX support in Zephyr. Civetweb is highly dependent on POSIX, and Zephyr does not make any guarantees on full POSIX support. Apparently enabling debug mode add addtional dependency to FS functionalities in Civetweb. Note that neither fileno() nor ferror() are supported by Zephyr.

You may try to implement them as a part of already existing POSIX extensions for CivetWeb, I think however this should rather be tracked as an enhancement, not a bug.

@erwango erwango added Enhancement Changes/Updates/Additions to existing features and removed bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels May 19, 2022
@rlubos
Copy link
Contributor

rlubos commented Jun 27, 2022

Civetweb is no longer maintained in Zephyr, see #46746 for more details.

@rlubos rlubos closed this as completed Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

4 participants