Skip to content

Instantly share code, notes, and snippets.

@jneira
Created March 9, 2022 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jneira/297747c026bb03320c96dfb0c61b6413 to your computer and use it in GitHub Desktop.
Save jneira/297747c026bb03320c96dfb0c61b6413 to your computer and use it in GitHub Desktop.
PS D:\dev\ws\haskell\cabal> cabal run --builddir .\dist-val-ghc-8.10.7\ cabal-testsuite:exe:cabal-tests -- .\cabal-testsuite\PackageTests\CustomPreProcess\setup.test.hs --with-cabal $CABAL_CMD
Up to date
"D:\ghcup\bin\runghc.exe" "--" "--ghc-arg=-i" "--ghc-arg=-no-user-package-db" "--ghc-arg=-package-db" "--ghc-arg=D:\cabal\store\ghc-8.10.7\package.db" "--ghc-arg=-package-db" "--ghc-arg=D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "--ghc-arg=-package-id" "--ghc-arg=Cabal-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=Cabal-syntax-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=async-2.2.4-95020977405be35391cd1ff29177d0d573277564" "--ghc-arg=-package-id" "--ghc-arg=base-4.14.3.0" "--ghc-arg=-package-id" "--ghc-arg=cabal-testsuite-3-inplace" "--ghc-arg=-package-id" "--ghc-arg=clock-0.8.3-dabe425044590505b9f094b194448f133b7ed57b" "--ghc-arg=-package-id" "--ghc-arg=exceptions-0.10.4" "--ghc-arg=-package-id" "--ghc-arg=filepath-1.4.2.1" "--ghc-arg=-package-id" "--ghc-arg=optparse-appl_-0.16.1.0-813724a1d3af6b24a540852a3af873e78b9167ed" "--ghc-arg=-package-id" "--ghc-arg=process-1.6.13.2-a8144ea6110e94670332906231ac68c8b3c33f88" "--ghc-arg=-package-id" "--ghc-arg=transformers-0.5.6.2" ".\cabal-testsuite\PackageTests\CustomPreProcess\setup.test.hs" "--builddir" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\build\x86_64-windows\ghc-8.10.7\cabal-testsuite-3" ".\cabal-testsuite\PackageTests\CustomPreProcess\setup.test.hs" "--with-cabal" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\build\x86_64-windows\ghc-8.10.7\cabal-install-3.7.0.0\x\cabal\build\cabal\cabal.exe"
# Setup configure
+ "D:\ghcup\bin\runghc.exe" "--" "--ghc-arg=-i" "--ghc-arg=-no-user-package-db" "--ghc-arg=-package-db" "--ghc-arg=D:\cabal\store\ghc-8.10.7\package.db" "--ghc-arg=-package-db" "--ghc-arg=D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "--ghc-arg=-package-id" "--ghc-arg=Cabal-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=Cabal-syntax-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=async-2.2.4-95020977405be35391cd1ff29177d0d573277564" "--ghc-arg=-package-id" "--ghc-arg=base-4.14.3.0" "--ghc-arg=-package-id" "--ghc-arg=cabal-testsuite-3-inplace" "--ghc-arg=-package-id" "--ghc-arg=clock-0.8.3-dabe425044590505b9f094b194448f133b7ed57b" "--ghc-arg=-package-id" "--ghc-arg=exceptions-0.10.4" "--ghc-arg=-package-id" "--ghc-arg=filepath-1.4.2.1" "--ghc-arg=-package-id" "--ghc-arg=optparse-appl_-0.16.1.0-813724a1d3af6b24a540852a3af873e78b9167ed" "--ghc-arg=-package-id" "--ghc-arg=process-1.6.13.2-a8144ea6110e94670332906231ac68c8b3c33f88" "--ghc-arg=-package-id" "--ghc-arg=transformers-0.5.6.2" "D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\.\.\Setup.hs" "configure" "-vverbose +markoutput +nowrap" "--distdir" "setup.dist\work\dist" "--global" "--with-ghc" "D:\ghcup\bin\ghc.exe" "--with-haddock" "D:\ghcup\bin\haddock.exe" "--enable-deterministic" "--prefix=D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr" "--package-db=clear" "--package-db=global" "--package-db=D:\cabal\store\ghc-8.10.7\package.db" "--package-db=D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7"
Using Parsec parser
-----BEGIN CABAL OUTPUT-----
Configuring internal-preprocessor-test-0.1.0.0...
-----END CABAL OUTPUT-----
Dependency base: using base-4.14.3.0
Dependency base: using base-4.14.3.0
Dependency directory: using directory-1.3.7.0
Dependency base: using base-4.14.3.0
Dependency internal-preprocessor-test: using internal-preprocessor-test-0.1.0.0
Source component graph:
component exe:my-custom-preprocessor
component lib dependency exe:my-custom-preprocessor
component exe:hello-world dependency lib
Configured component graph:
component internal-preprocessor-test-0.1.0.0-my-custom-preprocessor
include base-4.14.3.0
include directory-1.3.7.0-696e15460c1090eb44a3fe8b372925de6ed6df2c
component internal-preprocessor-test-0.1.0.0 include base-4.14.3.0
component internal-preprocessor-test-0.1.0.0-hello-world
include base-4.14.3.0
include internal-preprocessor-test-0.1.0.0
Linked component graph:
unit internal-preprocessor-test-0.1.0.0-my-custom-preprocessor
include base-4.14.3.0
include directory-1.3.7.0-696e15460c1090eb44a3fe8b372925de6ed6df2c
unit internal-preprocessor-test-0.1.0.0
include base-4.14.3.0
A=internal-preprocessor-test-0.1.0.0:A
unit internal-preprocessor-test-0.1.0.0-hello-world
include base-4.14.3.0
include internal-preprocessor-test-0.1.0.0
Ready component graph:
definite internal-preprocessor-test-0.1.0.0-my-custom-preprocessor
depends base-4.14.3.0
depends directory-1.3.7.0-696e15460c1090eb44a3fe8b372925de6ed6df2c
definite internal-preprocessor-test-0.1.0.0
depends base-4.14.3.0
depends internal-preprocessor-test-0.1.0.0-my-custom-preprocessor
definite internal-preprocessor-test-0.1.0.0-hello-world
depends base-4.14.3.0
depends internal-preprocessor-test-0.1.0.0
Using Cabal-3.7.0.0 compiled by ghc-8.10
Using compiler: ghc-8.10.7
Using install prefix: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr
Executables installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\bin
Libraries installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\x86_64-windows-ghc-8.10.7\internal-preprocessor-test-0.1.0.0
Dynamic Libraries installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\x86_64-windows-ghc-8.10.7
Private executables installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\internal-preprocessor-test-0.1.0.0\x86_64-windows-ghc-8.10.7\internal-preprocessor-test-0.1.0.0
Data files installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\x86_64-windows-ghc-8.10.7\internal-preprocessor-test-0.1.0.0
Documentation installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\doc\x86_64-windows-ghc-8.10.7\internal-preprocessor-test-0.1.0.0
Configuration files installed in: D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\usr\etc
No alex found
Using ar found on system at: D:\ghcup\ghc\8.10.7\lib\../mingw/bin\ar.exe
No c2hs found
Using cpphs version 1.20.8 found on system at: D:\bin\cpphs.exe
No doctest found
Using gcc version 9.2.0 found on system at: D:\ghcup\ghc\8.10.7\lib\../mingw/bin\gcc.exe
Using ghc version 8.10.7 given by user at: D:\ghcup\bin\ghc.exe
Using ghc-pkg version 8.10.7 found on system at: D:\ghcup\bin\ghc-pkg.exe
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.2 given by user at: D:\ghcup\bin\haddock.exe
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at: D:\ghcup\bin\hpc.exe
Using hsc2hs version 0.68.7 found on system at: D:\ghcup\bin\hsc2hs.exe
Using hscolour version 1.24 found on system at: D:\bin\HsColour.exe
No jhc found
Using ld found on system at: D:\ghcup\ghc\8.10.7\lib\../mingw/bin\ld.exe
Using pkg-config version 1.8.0 found on system at: D:\ghcup\msys64\mingw64\bin\pkg-config.exe
Using runghc version 8.10.7 found on system at: D:\ghcup\bin\runghc.exe
Using strip version 2.37 found on system at: D:\ghcup\msys64\mingw64\bin\strip.exe
Using tar found on system at: C:\WINDOWS\SYSTEM32\tar.exe
No uhc found
# Setup build
+ "D:\ghcup\bin\runghc.exe" "--" "--ghc-arg=-i" "--ghc-arg=-no-user-package-db" "--ghc-arg=-package-db" "--ghc-arg=D:\cabal\store\ghc-8.10.7\package.db" "--ghc-arg=-package-db" "--ghc-arg=D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "--ghc-arg=-package-id" "--ghc-arg=Cabal-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=Cabal-syntax-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=async-2.2.4-95020977405be35391cd1ff29177d0d573277564" "--ghc-arg=-package-id" "--ghc-arg=base-4.14.3.0" "--ghc-arg=-package-id" "--ghc-arg=cabal-testsuite-3-inplace" "--ghc-arg=-package-id" "--ghc-arg=clock-0.8.3-dabe425044590505b9f094b194448f133b7ed57b" "--ghc-arg=-package-id" "--ghc-arg=exceptions-0.10.4" "--ghc-arg=-package-id" "--ghc-arg=filepath-1.4.2.1" "--ghc-arg=-package-id" "--ghc-arg=optparse-appl_-0.16.1.0-813724a1d3af6b24a540852a3af873e78b9167ed" "--ghc-arg=-package-id" "--ghc-arg=process-1.6.13.2-a8144ea6110e94670332906231ac68c8b3c33f88" "--ghc-arg=-package-id" "--ghc-arg=transformers-0.5.6.2" "D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\.\.\Setup.hs" "build" "-vverbose +markoutput +nowrap" "--distdir" "setup.dist\work\dist"
Component build order: executable 'my-custom-preprocessor', library, executable 'hello-world'
Running: "D:\ghcup\bin\ghc-pkg.exe" "init" "setup.dist\work\dist\package.conf.inplace"
creating setup.dist\work\dist\build\my-custom-preprocessor
creating setup.dist\work\dist\build\my-custom-preprocessor\autogen
creating setup.dist\work\dist\build\my-custom-preprocessor\autogen
-----BEGIN CABAL OUTPUT-----
Preprocessing executable 'my-custom-preprocessor' for internal-preprocessor-test-0.1.0.0..
-----END CABAL OUTPUT-----
-----BEGIN CABAL OUTPUT-----
Building executable 'my-custom-preprocessor' for internal-preprocessor-test-0.1.0.0..
-----END CABAL OUTPUT-----
creating setup.dist\work\dist\build\my-custom-preprocessor
creating setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp
Running: "D:\ghcup\bin\ghc.exe" "--make" "-no-link" "-fbuilding-cabal-package" "-O" "-static" "-outputdir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-odir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-hidir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-stubdir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-i" "-isetup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-i." "-isetup.dist\work\dist\build\my-custom-preprocessor\autogen" "-isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\my-custom-preprocessor\autogen" "-Isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-optP-include" "-optPsetup.dist\work\dist\build\my-custom-preprocessor\autogen\cabal_macros.h" "-hide-all-packages" "-Wmissing-home-modules" "-no-user-package-db" "-package-db" "D:\cabal\store\ghc-8.10.7\package.db" "-package-db" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "-package-db" "setup.dist\work\dist\package.conf.inplace" "-package-id" "base-4.14.3.0" "-package-id" "directory-1.3.7.0-696e15460c1090eb44a3fe8b372925de6ed6df2c" "-XHaskell2010" ".\MyCustomPreprocessor.hs"
[1 of 1] Compiling Main ( MyCustomPreprocessor.hs, setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp\Main.o )
Linking...
Running: "D:\ghcup\bin\ghc.exe" "--make" "-fbuilding-cabal-package" "-O" "-static" "-outputdir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-odir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-hidir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-stubdir" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-i" "-isetup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-i." "-isetup.dist\work\dist\build\my-custom-preprocessor\autogen" "-isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\my-custom-preprocessor\autogen" "-Isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor-tmp" "-optP-include" "-optPsetup.dist\work\dist\build\my-custom-preprocessor\autogen\cabal_macros.h" "-hide-all-packages" "-Wmissing-home-modules" "-no-user-package-db" "-package-db" "D:\cabal\store\ghc-8.10.7\package.db" "-package-db" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "-package-db" "setup.dist\work\dist\package.conf.inplace" "-package-id" "base-4.14.3.0" "-package-id" "directory-1.3.7.0-696e15460c1090eb44a3fe8b372925de6ed6df2c" "-XHaskell2010" ".\MyCustomPreprocessor.hs" "-o" "setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor.exe"
Linking setup.dist\work\dist\build\my-custom-preprocessor\my-custom-preprocessor.exe ...
creating setup.dist\work\dist\build
creating setup.dist\work\dist\build\autogen
creating setup.dist\work\dist\build\autogen
-----BEGIN CABAL OUTPUT-----
Preprocessing library for internal-preprocessor-test-0.1.0.0..
-----END CABAL OUTPUT-----
creating setup.dist\work\dist\build
Preprocessing A.pre to setup.dist\work\dist\build\A.hs
-----BEGIN CABAL OUTPUT-----
Building library for internal-preprocessor-test-0.1.0.0..
-----END CABAL OUTPUT-----
creating setup.dist\work\dist\build
Running: "D:\ghcup\bin\ghc.exe" "--make" "-fbuilding-cabal-package" "-O" "-outputdir" "setup.dist\work\dist\build" "-odir" "setup.dist\work\dist\build" "-hidir" "setup.dist\work\dist\build" "-stubdir" "setup.dist\work\dist\build" "-i" "-isetup.dist\work\dist\build" "-i." "-isetup.dist\work\dist\build\autogen" "-isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\autogen" "-Isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build" "-optP-include" "-optPsetup.dist\work\dist\build\autogen\cabal_macros.h" "-this-unit-id" "internal-preprocessor-test-0.1.0.0" "-hide-all-packages" "-Wmissing-home-modules" "-no-user-package-db" "-package-db" "D:\cabal\store\ghc-8.10.7\package.db" "-package-db" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "-package-db" "setup.dist\work\dist\package.conf.inplace" "-package-id" "base-4.14.3.0" "-XHaskell2010" "A"
[1 of 1] Compiling A ( setup.dist\work\dist\build\A.hs, setup.dist\work\dist\build\A.o )
Linking...
[(DefiniteUnitId (DefUnitId {unDefUnitId = UnitId "base-4.14.3.0"}),DefaultRenaming)]
Running: "D:\ghcup\ghc\8.10.7\lib\../mingw/bin\ar.exe" "-r" "setup.dist\work\dist\build\objs-3432\libHSinternal-preprocessor-test-0.1.0.0.a" "@setup.dist\work\dist\build\objs-3432\arA9F3.rsp"
D:\ghcup\ghc\8.10.7\lib\../mingw/bin\ar.exe: creating setup.dist\work\dist\build\objs-3432\libHSinternal-preprocessor-test-0.1.0.0.a
Running: "D:\ghcup\ghc\8.10.7\lib\../mingw/bin\ld.exe" "-x" "-r" "-o" "setup.dist\work\dist\build\HSinternal-preprocessor-test-0.1.0.0.o" "@setup.dist\work\dist\build\ldAC17.rsp"
Running: "D:\ghcup\bin\ghc-pkg.exe" "recache" "--package-db=setup.dist\work\dist\package.conf.inplace"
creating setup.dist\work\dist\build\hello-world
creating setup.dist\work\dist\build\hello-world\autogen
creating setup.dist\work\dist\build\hello-world\autogen
-----BEGIN CABAL OUTPUT-----
Preprocessing executable 'hello-world' for internal-preprocessor-test-0.1.0.0..
-----END CABAL OUTPUT-----
-----BEGIN CABAL OUTPUT-----
Building executable 'hello-world' for internal-preprocessor-test-0.1.0.0..
-----END CABAL OUTPUT-----
creating setup.dist\work\dist\build\hello-world
creating setup.dist\work\dist\build\hello-world\hello-world-tmp
Running: "D:\ghcup\bin\ghc.exe" "--make" "-no-link" "-fbuilding-cabal-package" "-O" "-static" "-outputdir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-odir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-hidir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-stubdir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-i" "-isetup.dist\work\dist\build\hello-world\hello-world-tmp" "-i." "-isetup.dist\work\dist\build\hello-world\autogen" "-isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\hello-world\autogen" "-Isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\hello-world\hello-world-tmp" "-optP-include" "-optPsetup.dist\work\dist\build\hello-world\autogen\cabal_macros.h" "-hide-all-packages" "-Wmissing-home-modules" "-no-user-package-db" "-package-db" "D:\cabal\store\ghc-8.10.7\package.db" "-package-db" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "-package-db" "setup.dist\work\dist\package.conf.inplace" "-package-id" "base-4.14.3.0" "-package-id" "internal-preprocessor-test-0.1.0.0" "-XHaskell2010" ".\Hello.hs"
[1 of 1] Compiling Main ( Hello.hs, setup.dist\work\dist\build\hello-world\hello-world-tmp\Main.o )
Linking...
Running: "D:\ghcup\bin\ghc.exe" "--make" "-fbuilding-cabal-package" "-O" "-static" "-outputdir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-odir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-hidir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-stubdir" "setup.dist\work\dist\build\hello-world\hello-world-tmp" "-i" "-isetup.dist\work\dist\build\hello-world\hello-world-tmp" "-i." "-isetup.dist\work\dist\build\hello-world\autogen" "-isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\hello-world\autogen" "-Isetup.dist\work\dist\build\global-autogen" "-Isetup.dist\work\dist\build\hello-world\hello-world-tmp" "-optP-include" "-optPsetup.dist\work\dist\build\hello-world\autogen\cabal_macros.h" "-hide-all-packages" "-Wmissing-home-modules" "-no-user-package-db" "-package-db" "D:\cabal\store\ghc-8.10.7\package.db" "-package-db" "D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "-package-db" "setup.dist\work\dist\package.conf.inplace" "-package-id" "base-4.14.3.0" "-package-id" "internal-preprocessor-test-0.1.0.0" "-XHaskell2010" ".\Hello.hs" "-o" "setup.dist\work\dist\build\hello-world\hello-world.exe"
Linking setup.dist\work\dist\build\hello-world\hello-world.exe ...
# hello-world
+ "D:\dev\ws\haskell\cabal\cabal-testsuite\PackageTests\CustomPreProcess\setup.dist\work\.\dist\build\hello-world\hello-world"
hello from A
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment