Skip to content

4.11.2: build fails with glibc 2.34 #10250

@kloczek

Description

@kloczek
[tkloczko@barrel ocaml-4.11.2]$ make
make coldstart
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make -C runtime  all
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
cp runtime/ocamlrun boot/ocamlrun
make -C stdlib  \
  CAMLC='$(BOOT_OCAMLC) -use-prims ../runtime/primitives' all
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/stdlib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/stdlib'
cd stdlib; cp stdlib.cma std_exit.cmo *.cmi camlheader ../boot
cd boot; ln -sf ../runtime/libcamlrun.a .
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make opt.opt
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make checkstack
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
if /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wall -Wdeclaration-after-statement -fno-common -fexcess-precision=standard -fno-tree-vrp -ffunction-sections -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -Wl,-E -o tools/checkstack tools/checkstack.c; \
  then tools/checkstack; \
fi
rm -f tools/checkstack
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make runtime
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make -C runtime  all
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make core
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make coldstart
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make -C runtime  all
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
cp runtime/ocamlrun boot/ocamlrun
make -C stdlib  \
  CAMLC='$(BOOT_OCAMLC) -use-prims ../runtime/primitives' all
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/stdlib'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/stdlib'
cd stdlib; cp stdlib.cma std_exit.cmo *.cmi camlheader ../boot
cd boot; ln -sf ../runtime/libcamlrun.a .
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make coreall
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make -C runtime  all
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
make ocamlc
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make[4]: 'ocamlc' is up to date.
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make ocamllex ocamltools library
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make -C yacc  all
make[5]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/yacc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/yacc'
make -C lex all
make[5]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/lex'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/lex'
make -C tools all
make[5]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/tools'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/tools'
make -C stdlib  all
make[5]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/stdlib'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/stdlib'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make ocaml
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make[2]: 'ocaml' is up to date.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make opt-core
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2'
make -C runtime  allopt
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ocaml-4.11.2/runtime'
/usr/bin/gcc -c -O2 -fno-strict-aliasing -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wall -Wdeclaration-after-statement -fno-common -fexcess-precision=standard -fno-tree-vrp -ffunction-sections -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE   -DNATIVE_CODE -DTARGET_amd64 -DMODEL_default -DSYS_linux   -o signals_nat_n.o signals_nat.c
signals_nat.c:198:13: error: variably modified ‘sig_alt_stack’ at file scope
  198 | static char sig_alt_stack[SIGSTKSZ];
      |             ^~~~~~~~~~~~~
make[3]: *** [Makefile:344: signals_nat_n.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions