Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems building Julia 1.6.2 Linux #41718

Closed
PhillHS opened this issue Jul 28, 2021 · 3 comments
Closed

Problems building Julia 1.6.2 Linux #41718

PhillHS opened this issue Jul 28, 2021 · 3 comments

Comments

@PhillHS
Copy link

PhillHS commented Jul 28, 2021

Hi there,

I'm having problems building julia 1.6.2 on our Centos 7.9 HPC.

We are using the modules system so that we can have different versions of the software installed which can be selected at runtime.
I'm attempting to build with gcc 11.1. This is installed in our standard modules directory : /usr/local/packages/gcc-11.1.0 this is added to the path. The libraries directory within gcc is added to both the LIBRARY_PATH and LD_LIBRARY_PATH

Make.user contains :

prefix=/usr/local/packages/julia-1.6.2

running make in the top level directory produces :

Warning: git information unavailable; versioning information limited
Warning: git information unavailable; versioning information limited
Warning: git information unavailable; versioning information limited
Warning: git information unavailable; versioning information limited
    �[35mPERL�[0m �[37;1mbase/pcre_h.jl�[0m
    �[35mPERL�[0m �[37;1mbase/errno_h.jl�[0m
    �[35mPERL�[0m �[37;1mbase/build_h.jl.phony�[0m
    �[35mPERL�[0m �[37;1mbase/features_h.jl�[0m
    �[35mPERL�[0m �[37;1mbase/features_h.jl�[0m
    �[35mPERL�[0m �[37;1mbase/features_h.jl�[0m
    �[35mPERL�[0m �[37;1mbase/file_constants.jl�[0m
    �[35mPERL�[0m �[37;1mbase/uv_constants.jl�[0m
Makefile:123: "WARNING: Generating boilerplate git version info"
Warning: git information unavailable; versioning information limited
    �[34mCC�[0m �[33mcli/loader_exe.o�[0m
    �[34mCC�[0m �[33mcli/loader_lib.o�[0m
    �[34mCC�[0m �[33mcli/loader_trampolines.o�[0m
    �[34;1mLINK�[0m �[37;1musr/lib/libjulia.so.1.6�[0m
    �[34;1mLINK�[0m �[37;1musr/bin/julia�[0m
Warning: git information unavailable; versioning information limited
    �[32mFLISP�[0m �[37;1msrc/julia_flisp.boot�[0m
    �[32mFLISP�[0m �[37;1msrc/julia_flisp.boot.inc�[0m
Warning: git information unavailable; versioning information limited
    �[34mCC�[0m �[33msrc/jloptions.o�[0m
    �[34mCC�[0m �[33msrc/runtime_ccall.o�[0m
    �[34mCC�[0m �[33msrc/rtutils.o�[0m
    �[34mCC�[0m �[33msrc/codegen.o�[0m
In file included from /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/codegen.cpp:57:
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/include/llvm/ADT/Statistic.h:38: warning: "LLVM_ENABLE_STATS" redefined
   38 | #define LLVM_ENABLE_STATS 1
      | 
In file included from /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/codegen.cpp:3:
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/llvm-version.h:24: note: this is the location of the previous definition
   24 | #define LLVM_ENABLE_STATS 0
      | 
    �[34mCC�[0m �[33msrc/llvm-ptls.o�[0m
    �[34mCC�[0m �[33msrc/jltypes.o�[0m
    �[34mCC�[0m �[33msrc/gf.o�[0m
    �[34mCC�[0m �[33msrc/typemap.o�[0m
    �[34mCC�[0m �[33msrc/smallintset.o�[0m
    �[34mCC�[0m �[33msrc/ast.o�[0m
    �[34mCC�[0m �[33msrc/builtins.o�[0m
    �[34mCC�[0m �[33msrc/module.o�[0m
    �[34mCC�[0m �[33msrc/interpreter.o�[0m
    �[34mCC�[0m �[33msrc/symbol.o�[0m
    �[34mCC�[0m �[33msrc/dlload.o�[0m
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/dlload.c: In function ‘jl_load_dynamic_library’:
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/dlload.c:225:49: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
  225 |                         snprintf(path, PATHBUF, "%s" PATHSEPSTRING "%s%s", relocated, modname, ext);
      |                                                 ^~~~
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/dlload.c:225:73: note: format string is defined here
  225 |                         snprintf(path, PATHBUF, "%s" PATHSEPSTRING "%s%s", relocated, modname, ext);
      |                                                                         ^
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/dlload.c:225:25: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
  225 |                         snprintf(path, PATHBUF, "%s" PATHSEPSTRING "%s%s", relocated, modname, ext);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    �[34mCC�[0m �[33msrc/sys.o�[0m
    �[34mCC�[0m �[33msrc/init.o�[0m
    �[34mCC�[0m �[33msrc/task.o�[0m
    �[34mCC�[0m �[33msrc/array.o�[0m
    �[34mCC�[0m �[33msrc/dump.o�[0m
    �[34mCC�[0m �[33msrc/staticdata.o�[0m
    �[34mCC�[0m �[33msrc/toplevel.o�[0m
    �[34mCC�[0m �[33msrc/jl_uv.o�[0m
    �[34mCC�[0m �[33msrc/datatype.o�[0m
    �[34mCC�[0m �[33msrc/simplevector.o�[0m
    �[34mCC�[0m �[33msrc/runtime_intrinsics.o�[0m
    �[34mCC�[0m �[33msrc/precompile.o�[0m
    �[34mCC�[0m �[33msrc/threading.o�[0m
/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/src/threading.c:187:32: warning: ‘jl_get_ptls_states_wrapper’ defined but not used [-Wunused-function]
  187 | static JL_CONST_FUNC jl_ptls_t jl_get_ptls_states_wrapper(void) JL_GLOBALLY_ROOTED JL_NOTSAFEPOINT
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
    �[34mCC�[0m �[33msrc/partr.o�[0m
    �[34mCC�[0m �[33msrc/stackwalk.o�[0m
    �[34mCC�[0m �[33msrc/gc.o�[0m
    �[34mCC�[0m �[33msrc/gc-debug.o�[0m
    �[34mCC�[0m �[33msrc/gc-pages.o�[0m
    �[34mCC�[0m �[33msrc/gc-stacks.o�[0m
    �[34mCC�[0m �[33msrc/method.o�[0m
    �[34mCC�[0m �[33msrc/jlapi.o�[0m
    �[34mCC�[0m �[33msrc/signal-handling.o�[0m
    �[34mCC�[0m �[33msrc/safepoint.o�[0m
    �[34mCC�[0m �[33msrc/timing.o�[0m
    �[34mCC�[0m �[33msrc/subtype.o�[0m
    �[34mCC�[0m �[33msrc/crc32c.o�[0m
    �[34mCC�[0m �[33msrc/APInt-C.o�[0m
    �[34mCC�[0m �[33msrc/processor.o�[0m
    �[34mCC�[0m �[33msrc/ircode.o�[0m
    �[34mCC�[0m �[33msrc/jitlayers.o�[0m
    �[34mCC�[0m �[33msrc/aotcompile.o�[0m
    �[34mCC�[0m �[33msrc/debuginfo.o�[0m
    �[34mCC�[0m �[33msrc/disasm.o�[0m
    �[34mCC�[0m �[33msrc/llvm-simdloop.o�[0m
    �[34mCC�[0m �[33msrc/llvm-muladd.o�[0m
    �[34mCC�[0m �[33msrc/llvm-final-gc-lowering.o�[0m
    �[34mCC�[0m �[33msrc/llvm-pass-helpers.o�[0m
    �[34mCC�[0m �[33msrc/llvm-late-gc-lowering.o�[0m
    �[34mCC�[0m �[33msrc/llvm-lower-handlers.o�[0m
    �[34mCC�[0m �[33msrc/llvm-gc-invariant-verifier.o�[0m
    �[34mCC�[0m �[33msrc/llvm-propagate-addrspaces.o�[0m
    �[34mCC�[0m �[33msrc/llvm-multiversioning.o�[0m
    �[34mCC�[0m �[33msrc/llvm-alloc-opt.o�[0m
    �[34mCC�[0m �[33msrc/cgmemmgr.o�[0m
    �[34mCC�[0m �[33msrc/llvm-api.o�[0m
    �[34mCC�[0m �[33msrc/llvm-remove-addrspaces.o�[0m
    �[34mCC�[0m �[33msrc/llvm-remove-ni.o�[0m
    �[34mCC�[0m �[33msrc/llvm-julia-licm.o�[0m
    �[34mCC�[0m �[33msrc/llvm-demote-float16.o�[0m
    �[34;1mLINK�[0m �[37;1musr/lib/libjulia-internal.so.1.6�[0m
Warning: git information unavailable; versioning information limited
    �[32;1mJULIA�[0m �[37;1musr/lib/julia/corecompiler.ji�[0m
ERROR: Unable to load dependent library /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/../lib/libjulia-internal.so.1
Message:/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/../lib/libjulia-internal.so.1)
make[1]: *** [/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/lib/julia/corecompiler.ji] Error 1
make: *** [julia-sysimg-ji] Error 2

running make VERBOSE=1 produces :

make[1]: Entering directory `/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2'
 cd /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/base && /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/julia -C "native" --output-ji /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/lib/julia/corecompiler.ji.tmp --startup-file=no --warn-overwrite=yes -g0 -O0 compiler/compiler.jl
ERROR: Unable to load dependent library /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/../lib/libjulia-internal.so.1
Message:/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/bin/../lib/libjulia-internal.so.1)
make[1]: *** [/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2/usr/lib/julia/corecompiler.ji] Error 1
make[1]: Leaving directory `/storage/stsxab/CentosBuild-2021/julia/julia-1.6.2'
make: *** [julia-sysimg-ji] Error 2

The odd thing is libstdc++.so.6 does exist in /usr/local/packages/gcc-11.1.0/lib64 which is on LIBRARY_PATH / LD_LIBRAY_PATH so not sure why it's not being found?

Cheers.

Phill.

@KristofferC
Copy link
Member

Dup of #40585 (comment) I believe. In that case, should be fixed by #41645 which should be included in 1.6.3. You can try to build the backports-release-1.6 branch to confirm.

@PhillHS
Copy link
Author

PhillHS commented Jul 28, 2021

Checking out the git archive and selecting the backports-release-1.6 branch has allowed me to compile successfully.

Cheers.

Phill.

@KristofferC
Copy link
Member

I think this can be closed then since there is nothing more to do than to wait for 1.6.3 to come out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants