skvadrik / re2c

Lexer generator for C, C++, Go and Rust.
https://re2c.org
Other
1.06k stars 169 forks source link

How to get the m4 folder and files within? #475

Closed michacassola closed 4 months ago

michacassola commented 4 months ago

Hey, I am trying to build re2c with Autotools with GitHub Actions: Build repo: https://github.com/unypkg/re2c Latest run: https://github.com/unypkg/re2c/actions/runs/8741186605/job/23986620028#step:2:1 (Tried to copy what I found here: https://github.com/skvadrik/re2c/blob/3.1/.github/workflows/ci-autotools.yml)

I get the error when running autogen.sh: aclocal: warning: couldn't open directory 'm4': No such file or directory

But I noticed your m4 folder is missing in the repo. How do I generate it? I see that debian's repo has it: https://salsa.debian.org/jcfp/re2c/-/tree/master?ref_type=heads

Thank you very much in advance! 😀

skvadrik commented 4 months ago

Hi!

I think you can ignore the warning by aclocal (I have it too in my local repo), autoreconf -W all -i creates the /m4 directory anyway.

See https://re2c.org/build/build.html for build instructions.

I'm not sure about the Debian repo; @jcfp may know better why it has the /m4 directory.

jcfp commented 4 months ago

I'm not sure about the Debian repo; @jcfp may know better why it has the /m4 directory.

The content of the debian repo is the extracted release tarball plus the debian packaging dir. Hence, it has the m4 dir simply because that is shipped as part of re2c releases. Even so, any build basically starts by running autoreconf, as seen here.

michacassola commented 4 months ago

Thanks, I can confirm that the m4 folder is generated, so the warning can be ignored. Thanks @skvadrik ! 😀

It seems the problem is a different one: https://github.com/skvadrik/re2c/issues/476