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

Error during build: "warning: non-portable path to file" #74

Closed
austinbutler opened this issue Oct 16, 2020 · 2 comments
Closed

Error during build: "warning: non-portable path to file" #74

austinbutler opened this issue Oct 16, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed low-prio Fixing this is not a goal/priority right now

Comments

@austinbutler
Copy link
Member

Still seems to work fine, and in fact it seems it's really a warning, but Nix shows it as an error so it looks more concerning than it probably is.

Preprocessing executable 'nixfmt' for nixfmt-0.4.0..
Building executable 'nixfmt' for nixfmt-0.4.0..

<built-in>:16:10: error:
     warning: non-portable path to file '"dist/build/Nixfmt/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "dist/build/nixfmt/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "dist/build/Nixfmt/autogen/cabal_macros.h"
1 warning generated.
[1 of 4] Compiling Paths_nixfmt     ( dist/build/nixfmt/autogen/Paths_nixfmt.hs, dist/build/nixfmt/nixfmt-tmp/Paths_nixfmt.o )
[2 of 4] Compiling System.IO.Atomic ( main/System/IO/Atomic.hs, dist/build/nixfmt/nixfmt-tmp/System/IO/Atomic.o )
[3 of 4] Compiling System.IO.Utf8   ( main/System/IO/Utf8.hs, dist/build/nixfmt/nixfmt-tmp/System/IO/Utf8.o )
[4 of 4] Compiling Main             ( main/Main.hs, dist/build/nixfmt/nixfmt-tmp/Main.o )

<built-in>:16:10: error:
     warning: non-portable path to file '"dist/build/Nixfmt/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "dist/build/nixfmt/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "dist/build/Nixfmt/autogen/cabal_macros.h"
1 warning generated.
Linking dist/build/nixfmt/nixfmt ...
running tests
Package has no test suites.
haddockPhase
installing
Installing library in /nix/store/dz2azpxx2p4gr1ib95vc2myyl2284lib-nixfmt-0.4.0/lib/ghc-8.8.4/x86_64-osx-ghc-8.8.4/nixfmt-0.4.0-GcDvt8PY2Bn9nuCLZaF9x0
Installing executable nixfmt in /nix/store/dz2azpxx2p4gr1ib95vc2myyl2284lib-nixfmt-0.4.0/bin
Warning: The directory
/nix/store/dz2azpxx2p4gr1ib95vc2myyl2284lib-nixfmt-0.4.0/bin is not in the
system search path.
Registering library for nixfmt-0.4.0..
post-installation fixup
strip is /nix/store/qmxmk9l5ldy8zp50qaxmyv2r1sdfw7az-cctools-binutils-darwin-927.0.2/bin/strip
stripping (with command strip and flags -S) in /nix/store/dz2azpxx2p4gr1ib95vc2myyl2284lib-nixfmt-0.4.0/lib  /nix/store/dz2azpxx2p4gr1ib95vc2myyl2284lib-nixfmt-0.4.0/bin
patching script interpreter paths in /nix/store/dz2azpxx2p4gr1ib95vc2myyl2284lib-nixfmt-0.4.0

On macOS Catalina.

❯ nix-channel --list
home-manager https://github.com/rycee/home-manager/archive/master.tar.gz
nixpkgs https://nixos.org/channels/nixpkgs-unstable
@yorickvP yorickvP added bug Something isn't working help wanted Extra attention is needed low-prio Fixing this is not a goal/priority right now labels Feb 25, 2022
@Lucus16
Copy link
Contributor

Lucus16 commented Mar 8, 2022

This is probably a bug in cabal. Nothing we can do about it.

mengwong added a commit to smucclaw/baby-l4 that referenced this issue Dec 1, 2022
…te SmtSBV and some LSP

We switch from manually-maintained baby-l4.cabal to package.yaml

We delete SmtSBV.hs because it was commented out in baby-l4.cabal; we
can always retrieve it from a previous commit if we want to bring it
back. But even now it was out of sync with the rest of the build tree.

You can expect a build error-cum-warning re cabal_macros.h

NixOS/nixfmt#74 says to ignore that error
@infinisil
Copy link
Member

Doesn't seem worth keeping this open. If this causes any real problems, please let us know

@infinisil infinisil closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed low-prio Fixing this is not a goal/priority right now
Projects
Status: Done
Development

No branches or pull requests

4 participants