Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,865
    • Issues 4,865
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 461
    • Merge requests 461
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #21317
Closed
Open
Created Mar 30, 2022 by Sebastian Graf@sgraf812Developer

configure.ac needs to be updated, warns about HAVE_SYS_TIME_H

I updated my ghc.nix checkout to include https://github.com/alpmestan/ghc.nix/commit/c1c3dc2c4cba5d842c9f2262d597f5c4f0687626. Now I'm getting a thousand warnings of the form

configure.ac:34: warning: The macro `AC_FOREACH' is obsolete.
configure.ac:34: You should run autoupdate.
./lib/autoconf/general.m4:191: AC_FOREACH is expanded from...
aclocal.m4:43: FP_CHECK_CONSTS is expanded from...
configure.ac:34: the top level
configure.ac:34: warning: The macro `_AC_COMPUTE_INT' is obsolete.
configure.ac:34: You should run autoupdate.
./lib/autoconf/general.m4:3376: _AC_COMPUTE_INT is expanded from...
aclocal.m4:10: FP_COMPUTE_INT is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:19: FP_CHECK_CONST is expanded from...
aclocal.m4:43: FP_CHECK_CONSTS is expanded from...
configure.ac:34: the top level
configure.ac:24: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:24: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
aclocal.m4:6: FP_DECL_ALTZONE is expanded from...
configure.ac:24: the top level
configure.ac:111: warning: The macro `AC_FOREACH' is obsolete.
configure.ac:111: You should run autoupdate.
./lib/autoconf/general.m4:191: AC_FOREACH is expanded from...
aclocal.m4:43: FP_CHECK_CONSTS is expanded from...
configure.ac:111: the top level
configure.ac:111: warning: The macro `_AC_COMPUTE_INT' is obsolete.
configure.ac:111: You should run autoupdate.
./lib/autoconf/general.m4:3376: _AC_COMPUTE_INT is expanded from...
aclocal.m4:10: FP_COMPUTE_INT is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:19: FP_CHECK_CONST is expanded from...
aclocal.m4:43: FP_CHECK_CONSTS is expanded from...
configure.ac:111: the top level
...

It suggests to run autoupdate (first time I hear of that). If I do, I get

$ autoupdate
configure.ac:985: warning: Update your code to rely only on HAVE_SYS_TIME_H,
then remove this warning and the obsolete code below it.
All current systems provide time.h; it need not be checked for.
Not all systems provide sys/time.h, but those that do, all allow
you to include it and time.h simultaneously.

and I don't know whether we already "rely only on HAVE_SYS_TIME_H".

But maybe someone else knows and can fix the script.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking