Giter VIP home page Giter VIP logo

Comments (4)

deech avatar deech commented on May 31, 2024

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.

ethercrow avatar ethercrow commented on May 31, 2024

This made stack install of fltkhs itself work, but now I have a problem while stack installing 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.

deech avatar deech commented on May 31, 2024

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.

ethercrow avatar ethercrow commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.