bugGNU nano - Bugs: bug #54265, running 'make' errors out with:...

 
 

bug #54265: running 'make' errors out with: recipe for target 'bg.gmo' failed

Submitted by:  None
Submitted on:  Sun 08 Jul 2018 01:03:55 AM UTC  
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Mon 10 Sep 2018 05:46:42 PM UTC, comment #9:

Released in 3.0. Thanks again for reporting, and for testing.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Jul 2018 12:59:53 PM UTC, comment #8:

I uninstalled gettext, and got:

configure: error:

      • The msgfmt program is missing. ***
      • The gettext package needs to be installed when building from git. ***

So that is nice. After reinstalling gettext, it builds fine again. Thanks!

Peter Passchier <pepa65>
Sun 08 Jul 2018 12:26:19 PM UTC, comment #7:

With "fixed" I mean: configure will now fail when msgfmt is missing (*when* building from a git repo).

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Jul 2018 12:15:11 PM UTC, comment #6:

Fixed in git, commit fa454abb.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Jul 2018 11:06:49 AM UTC, comment #5:

Hrrrm... I seem to remember that configure.ac used to check for the availability of gettext, but in the history of the file I cannot find anything of the sort. But... thinking a bit more, this makes sense: gettext would never be required for a normal build (from a tarball) -- it is only required when building from svn/git.

So indeed, when building from git, we need an additional check on gettext being available. Working on it...

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Jul 2018 10:07:12 AM UTC, comment #4:

Hmmm... Configure used to give a warning when gettext was not installed. But I've removed the gettext package from my system, and ./configure does not complain, but does the same as for you: it finds the colon as the msgfmt and msgmerge commands. :| When I touch nano.pot and vi.po and then run make, I get:

: --update --lang=vi vi.po nano.pot
rm -f vi.gmo && : -c --statistics --verbose -o vi.gmo vi.po
mv: cannot stat 't-vi.gmo': No such file or directory

Grepping the config.log for msgfmt:

configure:32128: checking for msgfmt
configure:32169: checking for gmsgfmt
ac_cv_path_GMSGFMT=:
ac_cv_path_MSGFMT=:
GMSGFMT=':'
GMSGFMT_015=':'
MSGFMT=':'
MSGFMT_015=':'

Crap. How can it ever see a colon as a valid command? In bash, the colon is the do-nothing command. How could it ever be seen as a msgfmt or msgmerge command? What is wrong with ./configure?

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Jul 2018 08:26:35 AM UTC, comment #3:

grep -i msgfmt config.log

configure:32128: checking for msgfmt
configure:32169: checking for gmsgfmt
ac_cv_path_GMSGFMT=:
ac_cv_path_MSGFMT=:
GMSGFMT=':'
GMSGFMT_015=':'
MSGFMT=':'
MSGFMT_015=':'

But since you mentioned that gettext needs to be installed, I installed it, and make runs fine now. Which changes the output of the command above to:

configure:32128: checking for msgfmt
configure: trying /usr/bin/msgfmt...
configure:32160: result: /usr/bin/msgfmt
configure:32169: checking for gmsgfmt
configure:32200: result: /usr/bin/msgfmt
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGFMT=/usr/bin/msgfmt
GMSGFMT='/usr/bin/msgfmt'
GMSGFMT_015='/usr/bin/msgfmt'
MSGFMT='/usr/bin/msgfmt'
MSGFMT_015='/usr/bin/msgfmt'

I think we can close it -- but maybe a "Mission gettext" message in configure would be helpful for future usage..!
Thank you for your help!

Peter Passchier <pepa65>
Sun 08 Jul 2018 08:01:26 AM UTC, comment #2:

Instead of semicolons it is better to use &&. So please run:

./autogen.sh && ./configure && make

and see how far that gets.

The thing about groff is just a warning (as it says), not a fatal error. Groff is only needed to produce some doc files. It is not related to gettext.

Please run 'grep -i msgfmt config.log' and paste its output.

(To have msgfmt, you need gettext itself, not just gettext-base.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Jul 2018 03:26:33 AM UTC, comment #1:

But yes, I only started make after I thought configure was completing without errors. But, looking again, it seemed (to me) to complete without errors, because nothing at the end of the output indicated anything wrong. But scrolling up, there was a fatal error that groff wasn't installed:

checking for HTML support in groff... groff: can't find `DESC' file
groff:fatal error: invalid device `html' (try installing the `groff' package?)
no
configure: WARNING: *** Will not generate HTML version of man pages ***

      • Consider installing a newer version of groff with HTML support ***

But after installing groff the make ran into the same error...

Peter Passchier <pepa65>
Sun 08 Jul 2018 01:03:55 AM UTC, original submission:

Reposting from http://savannah.gnu.org/patch/?9661
Sorry, I wasn't aware I was posting in the wrong place, I still find Savannah hard to navigate.

Version from git: 9a7ba5db7949e441dcdfa7f445aa2a132d41428a (20180604)

Did: ./autogen.sh; ./configure; make

Output:
make all-recursive
make[1]: Entering directory '/home/pp/git/nano'
Making all in doc
make[2]: Entering directory '/home/pp/git/nano/doc'
make all-recursive
make[3]: Entering directory '/home/pp/git/nano/doc'
make[4]: Entering directory '/home/pp/git/nano/doc'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/pp/git/nano/doc'
make[3]: Leaving directory '/home/pp/git/nano/doc'
make[2]: Leaving directory '/home/pp/git/nano/doc'
Making all in lib
make[2]: Entering directory '/home/pp/git/nano/lib'
make all-recursive
make[3]: Entering directory '/home/pp/git/nano/lib'
make[4]: Entering directory '/home/pp/git/nano/lib'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/pp/git/nano/lib'
make[3]: Leaving directory '/home/pp/git/nano/lib'
make[2]: Leaving directory '/home/pp/git/nano/lib'
Making all in m4
make[2]: Entering directory '/home/pp/git/nano/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pp/git/nano/m4'
Making all in po
make[2]: Entering directory '/home/pp/git/nano/po'
test ! -f ./nano.pot || \
test -z "bg.gmo ca.gmo cs.gmo da.gmo de.gmo eo.gmo es.gmo eu.gmo fi.gmo fr.gmo ga.gmo gl.gmo hr.gmo hu.gmo id.gmo it.gmo ja.gmo ms.gmo nb.gmo nl.gmo nn.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo ru.gmo sl.gmo sr.gmo sv.gmo tr.gmo uk.gmo vi.gmo zh_CN.gmo zh_TW.gmo" || make bg.gmo ca.gmo cs.gmo da.gmo de.gmo eo.gmo es.gmo eu.gmo fi.gmo fr.gmo ga.gmo gl.gmo hr.gmo hu.gmo id.gmo it.gmo ja.gmo ms.gmo nb.gmo nl.gmo nn.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo ru.gmo sl.gmo sr.gmo sv.gmo tr.gmo uk.gmo vi.gmo zh_CN.gmo zh_TW.gmo
make[3]: Entering directory '/home/pp/git/nano/po'
: --update --lang=bg bg.po nano.pot
rm -f bg.gmo && : -c --statistics --verbose -o bg.gmo bg.po
mv: cannot stat 't-bg.gmo': No such file or directory
Makefile:128: recipe for target 'bg.gmo' failed
make[3]: *** [bg.gmo] Error 1
make[3]: Leaving directory '/home/pp/git/nano/po'
Makefile:165: recipe for target 'stamp-po' failed
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory '/home/pp/git/nano/po'
Makefile:1545: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pp/git/nano'
Makefile:1484: recipe for target 'all' failed
make: *** [all] Error 2

----------------------------------------------------------
This was on an install of Ubuntu 16.04.4 on a headless server.
Gettext related packages installed: autopoint gettext-base liblocale-gettext-perl. So I tried installing: libgettextpo-dev libgettextpo0 libunistring0

But that didn't do anything, it failed in exactly the same way.

Any other suggestion of packages I may need to install? From the output nothing jumps out at me.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by pepa65 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-10 bens Open/ClosedOpen => Closed
    2018-07-08 bens StatusIn Progress => Fixed
    2018-07-08 bens StatusNone => In Progress
    2018-07-08 bens Assigned toNone => bens
        Summary[patch #9661] running make errors out with: recipe for target 'bg.gmo' failed => running 'make' errors out with: recipe for target 'bg.gmo' failed

    Back to the top


    Powered by Savane 3.3