GithubHelp home page GithubHelp logo

clang-builder's Introduction

Clang Compiler build scripts

The repository is part of the Compiler Explorer project. It builds the docker images used to build the various clang compilers used on the site.

To Test

This assumes you have set up your user account to be able to run docker without being root; if you haven't done so, you'll need to prefix these commands with sudo.

  • docker build --build-arg image=22.04 -t clangbuilder .
  • docker run clangbuilder ./build.sh trunk

Alternative to run (for better debugging)

  • docker run -t -i clangbuilder bash
  • ./build.sh trunk

clang-builder's People

Contributors

alcaro avatar apmorton avatar bcardosolopes avatar bogner avatar cgmb avatar cor3ntin avatar damageboy avatar dancrn avatar darkarc avatar davidspickett avatar dkm avatar ethanhs avatar gnzlbg avatar johanengelen avatar junlarsen avatar lancern avatar lenary avatar llvm-beanz avatar mattgodbolt avatar mizvekov avatar partouf avatar poyaoc97 avatar quuxplusone avatar ricejasonf avatar sameeranjoshi avatar sdgoodrick avatar thephd avatar widberg avatar yxsamliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clang-builder's Issues

Failed to build clangbuild docker

When I run:

sudo docker build -t clangbuilder .

in the source tree. The output shows error report:

Sending build context to Docker daemon    255kB
Step 1 : ARG image
Please provide a source image with `from` prior to commit

It looks like that I need to pass an image argument to it but I don't know how should I pass it.

My docker version is 20.10.6


And if I change the DockerFile to

# ARG image
FROM ubuntu:22.04
...

I received:

manifest unknown: OCI index found, but accept header does not support OCI indexes

I am on CentOS7.

clang-embed is failing to build

2021-11-01T15:27:20.8683239Z In file included from /root/llvm-project/clang/include/clang/Lex/PreprocessingRecord.h:20:0,
2021-11-01T15:27:20.8685411Z                  from /root/llvm-project/clang/include/clang/Frontend/ASTUnit.h:27,
2021-11-01T15:27:20.8716795Z                  from /root/llvm-project/clang/include/clang/Frontend/FrontendAction.h:23,
2021-11-01T15:27:20.8718834Z                  from /root/llvm-project/clang/include/clang/ARCMigrate/ARCMTActions.h:13,
2021-11-01T15:27:20.8721150Z                  from /root/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:14:
2021-11-01T15:27:20.8725461Z /root/llvm-project/clang/include/clang/Lex/PPCallbacks.h:603:8: error: 'void clang::PPChainedCallbacks::HasEmbed(clang::SourceLocation, llvm::StringRef, bool, llvm::Optional<clang::FileEntryRef>)' marked 'override', but does not override
2021-11-01T15:27:20.8953022Z    void HasEmbed(SourceLocation Loc, StringRef FileName, bool IsAngled,
2021-11-01T15:27:20.8954273Z         ^~~~~~~~
2021-11-01T15:27:20.8958557Z /root/llvm-project/clang/include/clang/Lex/PPCallbacks.h:379:16: warning: 'virtual void clang::PPCallbacks::HasEmbed(clang::SourceLocation, llvm::StringRef, bool, llvm::Optional<clang::FileEntryRef>, clang::SrcMgr::CharacteristicKind)' was hidden [-Woverloaded-virtual]

SpirV failes to build:

CMake Error at CMakeLists.txt:76 (MESSAGE):
    llvm-spirv isn't a known project:
    clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;polly;pstl;flang

Building a tagged llvm version of an already built commit hash skips

When trying to build llvm 10.0.1

REVISION="llvmorg-${LLVMORG_REVISION}-gcc-${BINUTILS_GCC_VERSION}"

 VERSION=10.0.1                                                                                                                 [76/1807]
+ [[ 10.0.1 == \t\r\u\n\k ]]                                                                                                              
+ TAG=llvmorg-10.0.1                                                                                                                      
+ URL=https://github.com/llvm/llvm-project.git                                                                                            
+ BRANCH=llvmorg-10.0.1                                                                                                                   
+ REF=refs/heads/llvmorg-10.0.1                                                                                                           
+ [[ ! -z llvmorg-10.0.1 ]]                                                                                                               
+ REF=refs/tags/llvmorg-10.0.1                                                                                                            
++ git ls-remote https://github.com/llvm/llvm-project.git refs/tags/llvmorg-10.0.1                                                        
++ cut -f 1                                                                                                                               
ce-build-revision:llvmorg-69f2239b412aa92f3b857e50945b5dd4c8823ba1-gcc-9.2.0                                                              
ce-build-status:SKIPPED                                                                                                                   
+ LLVMORG_REVISION=69f2239b412aa92f3b857e50945b5dd4c8823ba1                                                                               
+ REVISION=llvmorg-69f2239b412aa92f3b857e50945b5dd4c8823ba1-gcc-9.2.0                                                                     
+ LAST_REVISION=llvmorg-69f2239b412aa92f3b857e50945b5dd4c8823ba1-gcc-9.2.0                                                                
+ echo ce-build-revision:llvmorg-69f2239b412aa92f3b857e50945b5dd4c8823ba1-gcc-9.2.0                                                       
+ [[ llvmorg-69f2239b412aa92f3b857e50945b5dd4c8823ba1-gcc-9.2.0 == \l\l\v\m\o\r\g\-\6\9\f\2\2\3\9\b\4\1\2\a\a\9\2\f\3\b\8\5\7\e\5\0\9\4\5$
b\5\d\d\4\c\8\8\2\3\b\a\1\-\g\c\c\-\9\.\2\.\0 ]]                                                                                          
+ echo ce-build-status:SKIPPED                                                                                                            
+ exit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.