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 fails due glibc >glibc-2.33 (Ubuntu 21), Testing solutions #12

Open
deividAlfa opened this issue Apr 15, 2022 · 4 comments
Open

Comments

@deividAlfa
Copy link
Contributor

deividAlfa commented Apr 15, 2022

It no longer builds, fresh install:

>>> host-m4 1.4.18 Building
Making all in .
Making all in examples
Making all in lib
  GEN      alloca.h
  GEN      configmake.h
  GEN      arg-nonnull.h
  GEN      warn-on-use.h
  GEN      c++defs.h
  GEN      limits.h
  GEN      unused-parameter.h
  GEN      sys/types.h
  GEN      fcntl.h
  GEN      langinfo.h
  GEN      locale.h
  GEN      spawn.h
  GEN      signal.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      math.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      time.h
  GEN      wchar.h
  GEN      unistd.h
  GEN      wctype.h
  GEN      sys/wait.h
  CC       gl_avltree_oset.o
  CC       binary-io.o
  CC       c-ctype.o
  CC       c-stack.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       cloexec.o
  CC       clean-temp.o
  CC       close-stream.o
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
      |                          ^~~~~~~~
  CC       closein.o
  CC       closeout.o
c-stack.c:134:8: error: variably modified 'buffer' at file scope
  134 |   char buffer[SIGSTKSZ];
      |        ^~~~~~
make[5]: *** [Makefile:1915: c-stack.o] Error 1

It seems glibc library changed in 2021 causing a lot of issues like this, this, this and so on.

Here they talk about this ubuntu patch for m4 1.4.18 (debian\patches\04-fix-sigstksz.patch):

@deividAlfa deividAlfa changed the title Buiuld fails due library update Build fails due library update Apr 15, 2022
@deividAlfa
Copy link
Contributor Author

deividAlfa commented Apr 15, 2022

Updated m4:

m4.mk

M4_VERSION = 1.4.19

m4.hash

sha256	63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96	m4-1.4.19.tar.xz
sha256	3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986	COPYING

Updated fakeroot (also fails due glibc):

fakeroot.mk

FAKEROOT_VERSION = 1.28
FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.gz
FAKEROOT_SITE = http://ftp.debian.org/debian/pool/main/f/fakeroot/

fakeroot.hash

sha256	56d405e36ff685f83879be08fdd654255ab9aa38632b4605a98e896ad63990c2	fakeroot_1.28.orig.tar.gz
sha256	fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7	COPYING

Updated autoconf (Needed by newer fakeroot):

autoconf.mk

AUTOCONF_VERSION = 2.71

autoconf.hash

sha256	f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4  autoconf-2.71.tar.xz
sha256	3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  COPYINGv3
sha256	1f1cde9fb68b9b3cff18c420894bec5bd4defacd700b7d13df54a887301e5350  COPYING.EXCEPTION

Still failing...

@deividAlfa deividAlfa changed the title Build fails due library update Build fails due glibc >glibc-2.33 (Testing solutions) Apr 15, 2022
@deividAlfa
Copy link
Contributor Author

deividAlfa commented Apr 15, 2022

For now, don't update to Ubuntu 21.
Ubuntu LTS 20.04.4 has glibc-2.3.1, building works.

@deividAlfa deividAlfa changed the title Build fails due glibc >glibc-2.33 (Testing solutions) Build fails due glibc >glibc-2.33 (Ubuntu 21), Testing solutions Apr 16, 2022
@Dadigno
Copy link

Dadigno commented Nov 29, 2022

Same issue for me after fresh install. Using Ubuntu 22.10, glibc = 2.36

@deividAlfa
Copy link
Contributor Author

Use older version and it'll be fine.
Debian 10, Ubuntu 20...

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

2 participants