[PATCH] Fix the --enable-shared build

Will Schmidt will_schmidt at vnet.ibm.com
Tue Aug 19 08:26:54 PDT 2014


On Wed, 2014-06-25 at 20:22 -0700, Sanjoy Das wrote:
> Hi Rafael,
> 
> I get the build failure when building with g++ 4.9.0.  This is how I
> build:
> 
> "CXX=g++  ../configure --enable-optimized --enable-shared
> --enable-targets=host && make -j60"
> 
> I haven't tried building with clang yet -- if you can successfully
> build with clang then it could be an issue specific to gcc.  This is
> the failure I get:
> 

I'm seeing similar/the same with gcc 4.9.* builds.  This snippet is from
gcc 4.9.2 on an x86_64 box, with the same errors also seen on
ppc64/ppc64le.   
Each configured with " --enable-shared --enable-optimized ".

The patch from Sanjoy does allow the build to complete, etc.

/home/willschm/build/tools/opt/Release+Asserts/opt.o: In function `llvm::cl::list<llvm::PassInfo const*, bool, llvm::PassNameParser>::getExtraOptionNames(llvm::SmallVectorImpl<char const*>&)':
opt.cpp:(.text._ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE[_ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE]+0x56): undefined reference to `llvm::cl::parser<llvm::PassInfo const*>::getOption(unsigned int) const'
collect2: error: ld returned 1 exit status






More information about the llvm-commits mailing list