Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Error #56

Open
zzlw opened this issue Sep 23, 2020 · 13 comments
Open

Error #56

zzlw opened this issue Sep 23, 2020 · 13 comments

Comments

@zzlw
Copy link

zzlw commented Sep 23, 2020

touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
Updating Homebrew...
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/andy/Library/Caches/Homebrew/universal-ctags--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 86bdb84c Merge pull request universal-ctags/ctags#2650 from hirooih/sv-units-args.ctags
==> ./autogen.sh
Last 15 lines from /Users/andy/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
optlib/passwd.ctags
optlib/pod.ctags
optlib/qemuhx.ctags
optlib/puppetManifest.ctags
optlib/scss.ctags
optlib/systemtap.ctags'
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
aclocal: error: aclocal: file '/usr/local/share/aclocal/progtest.m4' does not exist
autoreconf: aclocal failed with exit status: 1
+ echo 'failed in running autoreconf'
failed in running autoreconf
+ exit 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/universal-ctags/homebrew-universal-ctags/issues

These open issues may also help:
universal-ctags: Fix build for Linux https://github.com/universal-ctags/homebrew-universal-ctags/pull/52
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC.
@k-takata
Copy link
Member

aclocal: error: aclocal: file '/usr/local/share/aclocal/progtest.m4' does not exist

Please make sure that autoconf and automake are correctly installed.

@zzlw
Copy link
Author

zzlw commented Sep 23, 2020

I'm sure Autoconf and automake are installed, but they still don't work

touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
Updating Homebrew...
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/andy/Library/Caches/Homebrew/universal-ctags--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 86bdb84c Merge pull request universal-ctags/ctags#2650 from hirooih/sv-units-args.ctags
==> ./autogen.sh
Last 15 lines from /Users/andy/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
optlib/passwd.ctags
optlib/pod.ctags
optlib/qemuhx.ctags
optlib/puppetManifest.ctags
optlib/scss.ctags
optlib/systemtap.ctags'
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
aclocal: error: aclocal: file '/usr/local/share/aclocal/progtest.m4' does not exist
autoreconf: aclocal failed with exit status: 1
+ echo 'failed in running autoreconf'
failed in running autoreconf
+ exit 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/universal-ctags/homebrew-universal-ctags/issues

These open issues may also help:
universal-ctags: Fix build for Linux https://github.com/universal-ctags/homebrew-universal-ctags/pull/52
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC.

@k-takata
Copy link
Member

How did you install them? What does type -a aclocal show?

@masatake masatake transferred this issue from universal-ctags/ctags Sep 23, 2020
@masatake
Copy link
Member

@KazuakiM, I have two requests.

A. longer (complete?) reference log taken at Travis-ci

To inspect issues like this issue, we need a "reference log" that is recorded in the environment where ctags is successfully built. So we can compare the reference log and the log shown by the issue reporter.

At Travis-ci, you run a test for building ctags. Therefore, we can take a reference log at Travis-ci.
We can access the log at Travis-ci now. However, many lines of log recorded at Travis-ci looks omitted. So, we cannot use it
as a reference log now. Let's see an example:
(https://travis-ci.org/github/universal-ctags/homebrew-universal-ctags/jobs/705821620)

...
477 ==> ./autogen.sh
478 ==> ./configure --prefix=/usr/local/Cellar/universal-ctags/HEAD-b4574f0
...

We cannot see the output of autogen.sh and configure.

Is it possible to record and show all the output of commands as a log?
So I, a person who doesn't have a Machintosh, can study how ctags is built successfully within the Homebrew environment.

B. command line instruction for users to show all output of building

Please, look at the output in the initial comment of this issue:

...
==> ./autogen.sh
Last 15 lines from /Users/andy/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
...

The output is limited to the last 15 lines. For shooting troubles, in some cases, we need whole the log.
This is just an example. We need to let users who have troubles in building ctags take a more detailed log.

By comparing the reference log with the detailed log taken by the user, I expect we can analyze the issue even if we don't have a Machintosh.

@zzlw
Copy link
Author

zzlw commented Sep 24, 2020

截屏2020-09-24 上午10 46 20

@zzlw
Copy link
Author

zzlw commented Sep 24, 2020

截屏2020-09-24 上午10 53 16

@zzlw
Copy link
Author

zzlw commented Sep 24, 2020

截屏2020-09-24 上午10 55 18

@zzlw
Copy link
Author

zzlw commented Sep 24, 2020

brew install autoconf automake

@k-takata
Copy link
Member

Similar issue here: https://stackoverflow.com/questions/25151658/xcode-build-failure-aclocal-share-files-missing
How about running brew doctor and brew prune?

@zzlw
Copy link
Author

zzlw commented Sep 24, 2020

截屏2020-09-24 上午11 43 22

@k-takata
Copy link
Member

So, does brew doctor detect anything?
BTW, text log is enough. A screenshot is not so useful in this case.

@KazuakiM
Copy link
Member

@masatake
Hi, I add debug code for TravisCI, passed test.
https://travis-ci.org/github/universal-ctags/homebrew-universal-ctags/builds/730504378

@masatake
Copy link
Member

@KazuakiM, thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants