Skip to content

Problems building Julia with multiple stdc++ versions on same system #48040

Open
@smartalecH

Description

@smartalecH

I'm having trouble building Julia 1.8.4 on a (Centos 7) system with multiple stdc++ versions.

I have my system libstdc++.so.6, which includes up to GLIBCXX_3.4.19, and an additional version (which my internal infra requires me to load in order to use a compiler) which includes up to GLIBCXX_3.4.29. Incidentally, the glibcxxin <build-directory>/usr/lib/libstdc++.so.6 matches my default system versions (i.e. GLIBCXX_3.4.19).

Unfortunately, all of the compiled tooling (e.g. vm-config, llvm-config) appears to be built with the newer version of libstdc++ than what it tries to reference in <julia-build-directory>/usr/lib/libstdc++.so.6.

I'll note that the new version of libstdc++ is properly addressed in my linker flags... the issue seems to be that the packaged Julia libstdc++ is older than the loaded system one (which does the compiling). I thought there was a recent fix to address this (#46976), but something is not quite right.

Is this expected? Does anyone know of an easy way I can go about debugging this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions