Skip to content

devilutionx 1.4.0 - build failure - SDL2main #200022

@karolchmist

Description

@karolchmist

As part of ZHF for NixOS 22.11, I found that devilutionx no longer builds correctly.

Steps To Reproduce

Steps to reproduce the behavior:

  1. build devilutionx

Build log

The first time it started to fail on hydra, and here's the latest failure. I can reproduce it locally.

I think that this is the important part, where SDL2::SDL2main was not found:

...
-- Found Gettext: /nix/store/yzhdxmwvrcgc7i5kizfy45490169gzn5-gettext-0.21/bin/msgmerge (found version "0.21") 
-- Configuring done
CMake Error at CMakeLists.txt:243 (target_link_libraries):
  Target "devilutionx" links to:

    SDL2::SDL2main

  but the target was not found.  Possible reasons include:
    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

CMake Error at CMake/Dependencies.cmake:73 (target_link_libraries):
  The link interface of target "DevilutionX::SDL" contains:

    SDL2::SDL2main

  but the target was not found.  Possible reasons include:
    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  CMakeLists.txt:203 (include)

Notify maintainers

I'm the maintainer, but I'm not sure how to fix it...

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.5, NixOS, 22.11 (Raccoon), 22.11pre422009.fdebb81f45a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(karol): `""`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions