Skip to content

On CubieBoard (ARMv7 Ubuntu) with BWM GC present build fails unless I pass LIBS=-lgc #82

Closed

Description

@7c6f434c

I configure with --enable-gc, I have GC library installed via apt-get and build fails. It succeeds if I pass LIBS=-lgc to make. Shouldn't -lgc be added to LDFLAGS automatically when --enable-gc is specified?

Activity

  1. edolstra commented on Jan 1, 2013

    @edolstra
    Member

    Nix gets the necessary flag using pkgconfig.

  2. 7c6f434c commented on Jan 1, 2013

    @7c6f434c
    MemberAuthor

    Nix gets the necessary flag using pkgconfig.

    Now that I look at it, in Makefile it says

    BDW_GC_LIBS = -lgc
    LIBS = 
    

    And without passing LIBS=-lgc, build fails

  3. edolstra commented on Jan 1, 2013

    @edolstra
    Member

    BDW_GC_LIBS is used in two places:

    src/libexpr/Makefile.am: ../boost/format/libformat.la @BDW_GC_LIBS@
    src/libmain/Makefile.am:libmain_la_LIBADD = ../libstore/libstore.la @BDW_GC_LIBS@
    
  4. 7c6f434c commented on Jan 1, 2013

    @7c6f434c
    MemberAuthor

    BDW_GC_LIBS is used in two places:

    src/libexpr/Makefile.am: ../boost/format/libformat.la @BDW_GC_LIBS@
    src/libmain/Makefile.am:libmain_la_LIBADD = ../libstore/libstore.la @BDW_GC_LIBS@
    

    For some reason, nix-instantiate build fails without -lgc.

    It uses libmain.so, by the way.

  5. viric commented on Jan 8, 2013

    @viric
    Member

    Do you use binutils >=2.22? Isn't it a case of dt-needed not propagating?

  6. edolstra commented on Feb 26, 2014

    @edolstra
    Member

    Closing since we're not using Automake anymore.

  7. added 3 commits that reference this issue on May 16, 2019
  8. added a commit that references this issue on Jan 1, 2024
  9. added a commit that references this issue on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions