0

While I'm building LLVM using the CCR implementation. I'm getting the following error.

/usr/include/x86_64-linux-gnu/bits/getopt_core.h:91:12: error: declaration of ‘int getopt(int, char* const*, const char*) noexcept’ has a different exception specifier
 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)

Below the build.sh code is given.

function compile_binutils {
   cd $1
   ./configure 
   sudo make -j$2
}

function compile_gold {
   cd $1
   ./configure --enable-gold --enable-plugins=yes
   sudo make -j$2
} 
echo "D. Compiling the binutils and gold linker..."
echo =============================================
echo
compile_binutils $BINUTILS_DIR $NO_CPUS

# Deploy the shared object for gold
cp $PROTODEF_DIR/$CC_HDR $NEWGOLD_DIR/$CC_HDR
cp $PROTODEF_DIR/$SHUFFLEINFO $NEWGOLD_DIR/lib$SHUFFLEINFO
compile_gold $NEWGOLD_DIR $NO_CPUS

NobinPegasus
  • 545
  • 2
  • 16

0 Answers0