Skip to content

nodejs Linux clang libc++ no joy? #8973

Closed

Description

I was trying to build nodejs 4.6 on Debian squeeze using clang 381
x64. From reading at glance in common.gypi file needs some little hack to adjust ccflags ,ldflags and Icu-generic.gypi also need -frtti ccflags. Unfortunately, configure script need also to be adjusted as well. My temporarily workaround was to tell configure script to generate cmake project file instead of raw makefile. I've tried this and the build stopped at v8 deps. This looked like will happen in freebsd clang as well but I havent tried yet. I 'll diagnosed the problems and post the progress when the time permits.

  • Version: node 4.6.0
  • Platform: Linux Debian 6
  • Subsystem:

Activity

  1. bnoordhuis commented on Oct 7, 2016

    @bnoordhuis
    Member

    Can you do a clean build and post the verbatim output? If you get RTTI errors, try applying #8886.

  2. added
    build
    on Oct 7, 2016
  3. added
    i18n-api
    on Oct 7, 2016
  4. bnoordhuis commented on Oct 7, 2016

    @bnoordhuis
    Member

    Try building with make CC.host=clang CC.target=clang CXX.host=clang++ CXX.target=clang++ LINK.host=clang++ LINK.target=clang++.

  5. bnoordhuis commented on Oct 8, 2016

    @bnoordhuis
    Member

    Okay, so this is a V8 4.5 build issue that seems to be specific to your combination of compiler/libc++/etc.

    If you want to see this fixed, you could try filing a pull request against the v4.x-staging branch. If you are happy with your current workaround, can you close the issue? Thanks.

  6. bnoordhuis commented on Oct 10, 2016

    @bnoordhuis
    Member

    We'd have to thoroughly research what the ramifications of statically linking libc++ et al. would be.

    For example, a node binary linked against one libc++ version trying to interact with a native module linked against another libc++ version could end catastrophically because of incompatible memory allocators and such.

  7. ghost closed this as completedon Oct 12, 2016
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

    buildi18n-api

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions