bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot cross-compile groff-1.20.1


From: Werner LEMBERG
Subject: Re: Cannot cross-compile groff-1.20.1
Date: Tue, 11 Aug 2009 17:08:36 +0200 (CEST)

> I can't cross-compile groff-1.20.1 with gcc-4.4.1.  [...]
>
> /bin/sh: /mnt/clfs/sources/groff-build/src/roff/groff/groff: cannot
> execute binary file
> 
> I think this is because the host machine is 32-bit, while the target
> machine is 64-bit, so the groff command cannot be executed. The
> build process should use the groff command from the host system, not
> the newly generated one.

Basically, this is a chicken-and-egg problem: It is expected that the
just built groff binaries get used to compile the documentation.
However, if you've compiled and installed the groff bundle already for
your build platform, saying

  GROFF_BIN_PATH=/usr/local/bin \
  GROFFBIN=groff \
  make

should do the trick.  Admittedly, this is not documented well (and hopefully
it is not broken :-)

Ideally, the configure scripts disables the build process of the
documentation if it can't find a recent enough groff binary on the
build platform in case of cross compiling.

Any volunteer to fix this?


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]