Menu

#743 Cannot do out-of-tree build from git

5.3-fixed
open
nobody
None
5
2023-04-28
2023-04-28
Ross Burton
No

If I do an out-of-tree build from a clean git tree, the build fails:

make[3]: *** No rule to make target '../../git/src/xml/xmli18n-tmp.h', needed by 'gutenprint.pot-update'. Stop.

xmli18n-tmp.h has been written into src/xml in the build directory not the source directory.

Discussion

  • Solomon Peachy

    Solomon Peachy - 2023-04-28

    I don't deny there are major issues with cross-compiling, but you need to start from a distribution tarball (via 'make dist' from git) which pre-generates all of the i18n-related stuff, including the above xml file.

     
    • Ross Burton

      Ross Burton - 2023-04-28

      Yes, but:
      1) The last release was in 2019, there are non-trivial changes in git since.
      2) We tend to re-autogen from scratch anyway, older tarballs tends to have older autoconf/libtool/etc which are buggy or missing support for some architectures.

      This and 742 are the only issue with cross. Currently we build a host gutenprint to just build that header and then copy it into a target build, but that also means patching the makefile.

       
      • Solomon Peachy

        Solomon Peachy - 2023-04-28

        I meant that a new tarball can be generated from git, and that tarball will have that header obviating the need to generate it during a cross-compile.

        Granted it's still awkward but it should prevent the need to patch anything/

         

Log in to post a comment.

MongoDB Logo MongoDB