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

Gradle build fails with /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found #25428

Open
VDovidaytis-HORIS opened this issue Feb 16, 2024 · 0 comments
Labels

Comments

@VDovidaytis-HORIS
Copy link

Bug:

Hello!

I am trying to contribute the Lets-Plot package to conda-forge:

https://github.com/JetBrains/lets-plot

That project is based on Kotlin Native with Python API and builds with Gradle.
After running local build for Linux python build-locally.py linux64, I got the following error:

Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.                                                                                                                       
                                                                                                                                                                                                                                                      
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (0/101793914).                                                                               
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (56724351/101793914).                                                                        
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (101793914/101793914). Done.                                                                 
Extracting dependency: /home/conda/.konan/dependencies/cache/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz into /home/conda/.konan/dependencies                                                                                   
                                                                                                                                                                                                                                                      
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-4-linux.tar.gz (0/52150087).                                                                                                                              
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-4-linux.tar.gz (52150087/52150087). Done.                                                                                                                 
Extracting dependency: /home/conda/.konan/dependencies/cache/lldb-4-linux.tar.gz into /home/conda/.konan/dependencies                                                                                                                                 
                                                                                                                                                                                                                                                      
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/llvm-11.1.0-linux-x64-essentials.tar.gz (0/109668457).                                                                                                         
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/llvm-11.1.0-linux-x64-essentials.tar.gz (68668276/109668457).                                                                                                  
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/llvm-11.1.0-linux-x64-essentials.tar.gz (109668457/109668457). Done.                                                                                           
Extracting dependency: /home/conda/.konan/dependencies/cache/llvm-11.1.0-linux-x64-essentials.tar.gz into /home/conda/.konan/dependencies                                                                                                             
                                                                                                                                                                                                                                                      
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (0/56412).                                                                                                                  
(KonanProperties) Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (56412/56412). Done.                                                                                                        
Extracting dependency: /home/conda/.konan/dependencies/cache/libffi-3.2.1-2-linux-x86-64.tar.gz into /home/conda/.konan/dependencies                                                                                                                  
Exception in thread "main" org.jetbrains.kotlin.konan.KonanExternalToolFailure: The /home/conda/.konan/dependencies/llvm-11.1.0-linux-x64-essentials/bin/clang command returned non-zero exit code: 1.                                                
output:                                                      
/home/conda/.konan/dependencies/llvm-11.1.0-linux-x64-essentials/bin/clang: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/conda/.konan/dependencies/llvm-11.1.0-linux-x64-essentials/bin/clang)                        
/home/conda/.konan/dependencies/llvm-11.1.0-linux-x64-essentials/bin/clang: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/conda/.konan/dependencies/llvm-11.1.0-linux-x64-essentials/bin/clang)                        
        at org.jetbrains.kotlin.konan.exec.Command.handleExitCode(ExecuteCommand.kt:123)                                   
        at org.jetbrains.kotlin.konan.exec.Command.getResult(ExecuteCommand.kt:112)                                        
        at org.jetbrains.kotlin.konan.exec.Command.getOutputLines(ExecuteCommand.kt:87)                                    
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.runCmd(main.kt:134)                                          
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:419)                                     
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:243)                                 
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.access$processCLibSafe(main.kt:1)                            
        at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)                                        
        at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:47)                       
        at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:23)                                                  
        at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:45)                                                      

> Task :python-extension:cinteropPythonNative FAILED         

FAILURE: Build failed with an exception.  

Conda recipe:

https://github.com/VDovidaytis-HORIS/staged-recipes/blob/lets-plot/recipes/lets-plot/meta.yaml

Build script:

https://github.com/VDovidaytis-HORIS/staged-recipes/blob/lets-plot/recipes/lets-plot/build.sh

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

No branches or pull requests

1 participant