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

Error in host-m4-1.4.18/lib/c-stack.c breaks build #75

Closed
carbofos opened this issue Nov 29, 2021 · 5 comments
Closed

Error in host-m4-1.4.18/lib/c-stack.c breaks build #75

carbofos opened this issue Nov 29, 2021 · 5 comments

Comments

@carbofos
Copy link
Contributor

During building i am getting the next error

In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384

I did try to build some different configurations and this bug does not depend on it as I can see.

The problem is in this file:

./openipc-2.1/output/build/host-m4-1.4.18/lib/c-stack.c

I did remove preprocessor directive lines so the code could be compiled now:

#ifndef SIGSTKSZ
#define SIGSTKSZ 16384
#endif

But I am not sure if the bug descibed in the comment of the c-stack.c is still actual ( there is a whitespace between # and define so it's interpreted as a comment by preprocessor )

@widgetii
Copy link
Member

widgetii commented Jan 9, 2022

Couldn't confirm the issue on Github Actions used for firmware CI.

Please use Docker environments to remove differences between platforms

@widgetii widgetii closed this as completed Jan 9, 2022
@iddq
Copy link

iddq commented Mar 6, 2023

Is this a compiler bug?

@themactep
Copy link
Contributor

What's your make version?

@tim-ka
Copy link

tim-ka commented Jan 16, 2024

Currently recent buildroot uses m4-1.4.19 without such kind of problems so workaround could consist removing patches and replace m4.hash and m4.mk to recent versions for m4-1.4.19. I met the same issue building OpenIPC firmware on Ubuntu 22.04. Unfortunatelly it's not only one issue with Ubuntu 22.04 (next one will be segfault crash for make ver. 4.3 on printvars) so I decide to downgrade the building environment to 20.04

@widgetii
Copy link
Member

We use ubuntu-latest on GitHub CI which is Ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants