Skip to content

error: cannot check for file existence when cross compiling #378

@autra

Description

@autra

Description

When cross-compiling, the following error is shown during configuration:

> checking for .git... configure: error: cannot check for file existence when cross compiling

And indeed, the configure step has this line:

AC_CHECK_FILE([.git], [DOTGITDIR=yes], [DOTGITDIR=no])

Which is apparently not supported when cross-compiling.

Possible solution

The test command does work in a cross-compiling context, so I suggest to actually test the file existence in the following if. I can submit a MR if this is ok.

Steps

I'm using the nix builtin support for cross-compilation, so my steps are:

  • clone https://github.com/autra/nixpkgs
  • checkout branch postgresql_pgpointcloud
  • run nix build -L .#pkgsCross.aarch64-multiplatform.postgresqlPackages.pointcloud --cores 8

I don't really know how to do it directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions