ryanglscott / code-page Goto Github PK
View Code? Open in Web Editor NEWWindows code page library for Haskell
License: BSD 3-Clause "New" or "Revised" License
Windows code page library for Haskell
License: BSD 3-Clause "New" or "Revised" License
It looks like criterion
wants code-page
now, even if the underlying system isn't a Windows system. The error I'm seeing upon a stack bench
is:
colin@yumi ~/c/s/s/haskell> stack bench
code-page-0.1.3: configure
code-page-0.1.3: build
Progress: 1/4
-- While building custom Setup.hs for package code-page-0.1.3 using:
/home/colin/.stack/setup-exe-cache/x86_64-linux-tinfo6-nopie/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/colin/code/scala/scalaz-vs-cats/haskell/.stack-work/logs/code-page-0.1.3.log
Configuring code-page-0.1.3...
Preprocessing library for code-page-0.1.3..
/bin/ld.gold: error: .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0/build/System/Win32/CodePage_hsc_make.o: requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/bin/ld.gold: error: .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0/build/System/Win32/CodePage_hsc_utils.o: requires dynamic R_X86_64_PC32 reloc against 'vprintf' which may overflow at runtime; recompile with -fPIC
collect2: error: ld returned 1 exit status
linking .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0/build/System/Win32/CodePage_hsc_make.o failed (exit code 1)
command was: /bin/gcc .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0/build/System/Win32/CodePage_hsc_make.o .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0/build/System/Win32/CodePage_hsc_utils.o -o .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0/build/System/Win32/CodePage_hsc_make -fuse-ld=gold -fno-PIE -fno-stack-protector -fuse-ld=gold -L/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/base-4.10.1.0 -Wl,-R,/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/base-4.10.1.0 -L/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0 -Wl,-R,/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0 -lgmp -L/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/ghc-prim-0.5.1.1 -Wl,-R,/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/ghc-prim-0.5.1.1 -L/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/rts -Wl,-R,/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/rts -lm -lrt -ldl -lpthread
or TLDR:
CodePage_hsc_utils.o: requires dynamic R_X86_64_PC32 reloc against 'vprintf' which may overflow at runtime; recompile with -fPIC
Ever seen this before?
(I'm experimenting with cabal build --prefer-oldest
)
$ cabal unpack code-page-0.1 && cd code-page-0.1 && cabal build
Resolving dependencies...
Build profile: -w ghc-9.2.5 -O1
In order, the following will be built (use -v for more details):
- code-page-0.1 (lib) (first run)
Configuring library for code-page-0.1..
Error: cabal: Missing dependency on a foreign library:
* Missing (or bad) header file: windows_cconv.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
Error: cabal: Failed to build code-page-0.1. The failure occurred during the
configure step.
Could you possibly revise code-page-0.1
with base < 0
or similar to make it unbuildable?
see https://github.com/cartazio/ralist/runs/1421746860?check_suite_focus=true
no clue why ...
Failed to build code-page-0.2.
Build log (
C:\Users\runneradmin\AppData\Roaming\cabal\logs\ghc-8.10.2\code-page-0.2-40b31d8410d325f256dc55ba2f1c5be0d24a6cd7.log
cabal.exe: Failed to build code-page-0.2 (which is required by
):
bench:benchmarking from ralist-0.3.0.0). See the build log above for details.
Preprocessing library for code-page-0.2..
Building library for code-page-0.2..
[1 of 3] Compiling System.Win32.CodePage ( dist\build\System\Win32\CodePage.hs, dist\build\System\Win32\CodePage.o )
ghc.exe: could not execute: C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/ld.exe
Error: Process completed with exit code 1.
Compiling code-page-0.2
fails on Windows with base-4.15.0.0
(bundled with GHC 9.0.1):
[1 of 3] Compiling System.Win32.CodePage ( dist\build\System\Win32\CodePage.hs, dist\build\System\Win32\CodePage.o )
src\System\Win32\CodePage.hsc:74:27: error:
Ambiguous occurrence `CodePage'
It could refer to
either `GHC.IO.Encoding.CodePage.CodePage',
imported from `GHC.IO.Encoding.CodePage' at src\System\Win32\CodePage.hsc:49:1-31
or `System.Win32.NLS.CodePage',
imported from `System.Win32.NLS' at src\System\Win32\CodePage.hsc:52:1-23
|
74 | installedCodePages :: IO [CodePage]
| ^^^^^^^^
src\System\Win32\CodePage.hsc:78:27: error:
Ambiguous occurrence `CodePage'
It could refer to
either `GHC.IO.Encoding.CodePage.CodePage',
imported from `GHC.IO.Encoding.CodePage' at src\System\Win32\CodePage.hsc:49:1-31
or `System.Win32.NLS.CodePage',
imported from `System.Win32.NLS' at src\System\Win32\CodePage.hsc:52:1-23
|
78 | supportedCodePages :: IO [CodePage]
| ^^^^^^^^
src\System\Win32\CodePage.hsc:81:33: error:
Ambiguous occurrence `CodePage'
It could refer to
either `GHC.IO.Encoding.CodePage.CodePage',
imported from `GHC.IO.Encoding.CodePage' at src\System\Win32\CodePage.hsc:49:1-31
or `System.Win32.NLS.CodePage',
imported from `System.Win32.NLS' at src\System\Win32\CodePage.hsc:52:1-23
|
81 | systemCodePages :: DWORD -> IO [CodePage]
| ^^^^^^^^
Previously, only the System.Win32.NLS
module from Win32
defined a type synonym named CodePage
, but now the GHC.IO.Encoding.CodePage
module from base
defines a duplicate version of CodePage
. We should change System.Win32.CodePage
such that it only imports the former.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.