Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atk fails to (cross-)compile #88959

Closed
nagisa opened this issue May 26, 2020 · 6 comments
Closed

atk fails to (cross-)compile #88959

nagisa opened this issue May 26, 2020 · 6 comments
Labels
0.kind: bug 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@nagisa
Copy link
Contributor

nagisa commented May 26, 2020

Describe the bug

$ nix build -L -f '<nixpkgs>' pkgsCross.aarch64-multiplatform.atk
<snip>
atk> Configuring config.h using configuration
atk> atk/meson.build:161: WARNING: Keyword argument "requires" defined multiple times.
atk> WARNING: This will be an error in future Meson releases.
atk> Configuring atkversion.h using configuration
atk> Found pkg-config: /nix/store/nc3ivxhlqyj2alck8p47srvwzzgkbh2i-pkg-config-0.29.2/bin/pkg-config (0.29.2)
atk> WARNING: Could not detect glib version, assuming 2.54. You may get build errors if your glib is older.
atk> atk/meson.build:138:2: ERROR: dependency gobject-introspection-1.0 not found:
atk> Package gobject-introspection-1.0 was not found in the pkg-config search path.
atk> Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
atk> to the PKG_CONFIG_PATH environment variable
atk> No package 'gobject-introspection-1.0' found
atk> A full log can be found at /build/atk-2.36.0/build/meson-logs/meson-log.txt
builder for '/nix/store/3ar1252miryga64ryy113axsnrlcaw1n-atk-2.36.0-aarch64-unknown-linux-gnu.drv' failed with exit code 1; last 10 log lines:
  WARNING: Could not detect glib version, assuming 2.54. You may get build errors if your glib is older.

  atk/meson.build:138:2: ERROR: dependency gobject-introspection-1.0 not found:
  Package gobject-introspection-1.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gobject-introspection-1.0' found


  A full log can be found at /build/atk-2.36.0/build/meson-logs/meson-log.txt
[0 built (1 failed), 0.0 MiB DL]
error: build of '/nix/store/3ar1252miryga64ryy113axsnrlcaw1n-atk-2.36.0-aarch64-unknown-linux-gnu.drv' failed

I think this issue may be stemming from the wrong buildInput vs nativeBuildInput usage.

To Reproduce
Steps to reproduce the behavior:

  1. nix build -L -f '<nixpkgs>' pkgsCross.aarch64-multiplatform.atk

Expected behavior

Running the command above should work and produce the output as if it was built on an aarch64 host.

Additional context

Notify maintainers
@7c6f434c

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.6.13, NixOS, 20.09pre225898.7319061eef4 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - channels(root): `"nixos-20.09pre225898.7319061eef4"`
 - channels(nagisa): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@nagisa
Copy link
Contributor Author

nagisa commented May 26, 2020

Have a fix for this, but cannot test its efficacy because another dependency does not build #88961

@veprbl veprbl added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label May 26, 2020
@matthewbauer
Copy link
Member

I think #88222 may fix part of this.

@stale
Copy link

stale bot commented Nov 23, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 23, 2020
@nagisa
Copy link
Contributor Author

nagisa commented Nov 23, 2020

Bad bot, go away.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 23, 2020
@adisbladis
Copy link
Member

I was just hit by this one too.

@Ericson2314 Do you think #88222 would fix this?

@Mindavi
Copy link
Contributor

Mindavi commented May 23, 2021

Fixed by #123923 (but that does disable introspection).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
Development

No branches or pull requests

5 participants