[BUG] Error in autogen on Mac #554

Open
opened 2026-01-29 16:47:29 +00:00 by claunia · 0 comments
Owner

Originally created by @vr8hub on GitHub (Feb 15, 2020).

Originally assigned to: @canihavesomecoffee on GitHub.

  • Is this a regression (i.e. did it work before)? {YES/NO} Yes
  • What platform did you use? {Window/Linux/Mac} Mac
  • What were the used arguments? {replace with the arguments} build error, not runtime error

There is an error when running autogen.sh in the Mac subdirectory.

Obtaining Git commit
date: illegal option -- -
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Storing variables in file
Commit: db646f50ac14a772de9f374b2b40e05dbc6c0da9
Date:
Stored all in compile_info_real.h
Done.

This is actually an error in pre-build.sh, which autogen.sh calls. Line 24 of the pre-build script is

builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`

But the Mac's date command has neither a --utc or a --date option. (The Mac's date command is BSD-based; I don't know about Linux.)

[Edit] Sorry, should have said: I'm on Mojave 10.14.6.

Originally created by @vr8hub on GitHub (Feb 15, 2020). Originally assigned to: @canihavesomecoffee on GitHub. - Is this a regression (i.e. did it work before)? {YES/NO} Yes - What platform did you use? {Window/Linux/Mac} Mac - What were the used arguments? `{replace with the arguments}` build error, not runtime error There is an error when running autogen.sh in the Mac subdirectory. ```` Obtaining Git commit date: illegal option -- - usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] Storing variables in file Commit: db646f50ac14a772de9f374b2b40e05dbc6c0da9 Date: Stored all in compile_info_real.h Done. ```` This is actually an error in pre-build.sh, which autogen.sh calls. Line 24 of the pre-build script is ```` builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d` ```` But the Mac's `date` command has neither a `--utc` or a `--date` option. (The Mac's `date` command is BSD-based; I don't know about Linux.) [Edit] Sorry, should have said: I'm on Mojave 10.14.6.
claunia added the difficulty: easy label 2026-01-29 16:47:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#554