Comments (4)
I was able to reproduce and get around it by doing:
stack clean
first.
I also fixed the Cabal versioning issue in master
.
Does this work for you?
from fltkhs.
This made stack install
of fltkhs itself work, but now I have a problem while stack install
ing a project with fltkhs as a dependency:
$ stack install --extra-lib-dirs=/usr/local/opt/icu4c/lib --extra-include-dirs=/usr/local/opt/icu4c/include --extra-include-dirs=/usr/local/opt/fltk/include --extra-lib-dirs=/usr/local/opt/fltk/lib -j1
Cabal file warning in /Users/divanov/.config/yi/.stack-work/downloaded/d88bb8ad3fdcf2e28902e66d2733d9d066a4e8df893d35142c4fecb1a7457364/fltkhs.cabal: This package requires at least Cabal version 1.24
Cabal file warning in /Users/divanov/.config/yi/.stack-work/downloaded/d88bb8ad3fdcf2e28902e66d2733d9d066a4e8df893d35142c4fecb1a7457364/fltkhs.cabal: This package requires at least Cabal version 1.24
fltkhs-0.4.0.7: build
Progress: 0/6
-- While building package fltkhs-0.4.0.7 using:
/Users/divanov/.config/yi/.stack-work/downloaded/d88bb8ad3fdcf2e28902e66d2733d9d066a4e8df893d35142c4fecb1a7457364/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.0.0 build lib:fltkhs exe:fltkhs-buttons exe:fltkhs-fluidtohs --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /Users/divanov/.config/yi/.stack-work/logs/fltkhs-0.4.0.7.log
Preprocessing library fltkhs-0.4.0.7...
Preprocessing executable 'fltkhs-buttons' for fltkhs-0.4.0.7...
Linking .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/fltkhs-buttons/fltkhs-buttons ...
ld: file too small (length=8) file '/Users/divanov/.config/yi/.stack-work/downloaded/d88bb8ad3fdcf2e28902e66d2733d9d066a4e8df893d35142c4fecb1a7457364/c-lib/libfltkc.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`g++' failed in phase `Linker'. (Exit code: 1)
Progress: 1/6
~/.config/yi master* 9s
$ cat .stack-work/downloaded/d88bb8ad3fdcf2e28902e66d2733d9d066a4e8df893d35142c4fecb1a7457364/c-lib/libfltkc.a
!<arch>
from fltkhs.
This might take a little more time for me to debug because I don't have ready access to a Mac. Have you ever succeeded in building this on a Mac? If you haven't already can you try again with the master
branch?
from fltkhs.
I've noticed that stack clean
doesn't clean everything, so I deleted .stack-work
manually to force stack to re-clone fltkhs. After that compilation succeeded.
Thank you for the help.
from fltkhs.
Related Issues (20)
- Return function pointer from `openCallback` so it can be freed. HOT 1
- Crash in FL.eventKey on special key HOT 8
- GL causes c2hs error on Mac due to missing type HOT 4
- after using setIcon on window it doesn't display application HOT 4
- Adding a Scrolled via FLUID generates wrong "scrollNew" call instead of "scrolledNew" HOT 1
- How to enable modern OpenGL? HOT 11
- unable to run basic example under nix HOT 1
- Fltkhs as stack dependency linking error on Windows 10 HOT 1
- install gotchas
- Build error in Setup.hs HOT 2
- Error building bundled fltkhs in custom Setup.hs HOT 1
- fltkhs-fluidtohs generates incorrect module names for nested modules
- addAndGetMenuItem is suprisingly slow HOT 8
- How to call findClicked?
- GHC 8.10.3 linking issue HOT 1
- Syntax error while installing with bundled fltkhs HOT 1
- Build fails with autoconf 2.70 and up HOT 8
- New branch's build artifacts stored in /tmp get erased
- Updating for base-4.14 (ghc 8.10) HOT 2
- cabal-install 3.4.0.0 breaks installation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fltkhs.