NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.94k stars 13.96k forks source link

Build failure: OpenROAD - upgrade attempt #331075

Open widlarizer opened 2 months ago

widlarizer commented 2 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix shell nixpkgs#openroad
  2. or rather nix shell -L github:widlarizer/nixpkgs/emil/openroad-update-fail#openroad

Build log

The first problem is swig 4.2 with -external-runtime breaking with Tcl 8.6. This manifests as ‘Tcl_Size’ was not declared in this scope. Working around this with a patch like in FreeBSD fixes this problem. Then we get to the next problem which is an instance of https://github.com/The-OpenROAD-Project/OpenROAD/pull/3643

Running phase: installCheckPhase
ERROR: Something is wrong with flag 'flagfile' in file 'build/source/absl/flags/parse.cc'. One possibility: file 'build/source/absl/flags/parse.cc' is being linked both statically and dynamically into this executable. e.g. some files listed as srcs to a test and also listed as srcs of some shared lib deps of the same test

As originally reported by a macOS user, this can be mitigated with brew install or-tools upfront. I don't know how to interpret that in the nix world. That is the core of this issue.

Notify maintainers

@trepetti

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.41, NixOS, 24.11 (Vicuna), 24.11pre655874.68c9ed8bbed9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos, nixos-23.05-23.05"`
 - channels(emil): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

fedeinthemix commented 1 day ago

The OpenROAD repo includes a default.nix from which we should be able to learn how to propeerly build it.