[cfe-dev] svn update then make gives cc1 error: unrecognized command line option '-Wcovered-switch-default'

Larry Evans cppljevans at suddenlink.net
Sat Oct 6 08:38:28 PDT 2012


On 10/06/12 08:14, Larry Evans wrote:
[snip]
> 
> I just re-configured and re-made:
I also removed the symlink to clang++ in my ~/bin directory.
> 
> /home/evansl/download/llvm/svn/build $ cat my-configure.sh
> #!/bin/bash
> this_dir=`pwd`
> $this_dir/../llvm/configure \
>   --prefix=$this_dir/../install
> /home/evansl/download/llvm/svn/build $ ./my-configure.sh
> checking for clang... no
> checking for llvm-gcc... no
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> .
> .
> .
> make[4]: Leaving directory
> `/home/evansl/download/llvm/svn/build/bindings/ocaml/transforms/ipo'
> make[3]: Leaving directory
> `/home/evansl/download/llvm/svn/build/bindings/ocaml/transforms'
> make[2]: Leaving directory
> `/home/evansl/download/llvm/svn/build/bindings/ocaml'
> make[1]: Leaving directory `/home/evansl/download/llvm/svn/build/bindings'
> llvm[0]: ***** Completed Debug+Asserts Build
> llvm[0]: ***** Note: Debug build can be 10 times slower than an
> llvm[0]: ***** optimized build. Use make ENABLE_OPTIMIZED=1 to
> llvm[0]: ***** make an optimized build. Alternatively you can
> llvm[0]: ***** configure with --enable-optimized.
> /home/evansl/download/llvm/svn/build $
> 
> However, when I tried `make install`, got:
> 
> /home/evansl/download/llvm/svn/build $ make install
> llvm[0]: Installing include files
> llvm[0]: Making install directory
> /home/evansl/download/llvm/svn/build/../install/include/./llvm-c
> llvm[0]: Making install directory
> /home/evansl/download/llvm/svn/build/../install/include/./llvm-c/Transforms
> llvm[0]: Making install directory
> /home/evansl/download/llvm/svn/build/../install/include/./llvm
> .
> .
> .
> llvm[4]: Installing compiler runtime library: linux/asan-i386
> make[4]: Leaving directory
> `/home/evansl/download/llvm/svn/build/tools/clang/runtime/compiler-rt'
> make[4]: Entering directory
> `/home/evansl/download/llvm/svn/build/tools/clang/runtime/libcxx'
> /usr/bin/make -C /home/evansl/download/llvm/svn/llvm/projects/libcxx \
> 	  HEADER_DIR=/home/evansl/download/llvm/svn/build/../install/lib
> installheaders
> make[5]: Entering directory
> `/home/evansl/download/llvm/svn/llvm/projects/libcxx'
> mkdir -p /home/evansl/download/llvm/svn/build/../install/lib/c++/v1/ext
> rsync -r --exclude=".*" --exclude="support" ./include/* \
> 	  /home/evansl/download/llvm/svn/build/../install/lib/c++/v1/
> chown -R root:wheel /home/evansl/download/llvm/svn/build/../install/lib/c++
> chown: invalid group: `root:wheel'
> make[5]: *** [do-installhdrs] Error 1
> make[5]: Leaving directory
> `/home/evansl/download/llvm/svn/llvm/projects/libcxx'
> make[4]: *** [install-local] Error 2
> make[4]: Leaving directory
> `/home/evansl/download/llvm/svn/build/tools/clang/runtime/libcxx'
> make[3]: *** [libcxx/.makeinstall] Error 2
> make[3]: Leaving directory
> `/home/evansl/download/llvm/svn/build/tools/clang/runtime'
> make[2]: *** [install] Error 1
> make[2]: Leaving directory
> `/home/evansl/download/llvm/svn/build/tools/clang'
> make[1]: *** [clang/.makeinstall] Error 2
> make[1]: Leaving directory `/home/evansl/download/llvm/svn/build/tools'
> make: *** [install] Error 1
> /home/evansl/download/llvm/svn/build $
> 
> 
> There's no group `root:wheel' on my system.
> What should be done to fix this?
> 
> TIA.
> 
> -regards,
> Larry
In the Makefile:

llvm/projects/libcxx/Makefile, there was this line:

# The do-installhdrs target is also used by clang's runtime/libcxx makefile.
do-installhdrs:
	mkdir -p $(HEADER_DIR)/c++/v1/ext
	rsync -r --exclude=".*" --exclude="support" $(SRCDIRS)/include/* \
	  $(HEADER_DIR)/c++/v1/
	chown -R root:wheel $(HEADER_DIR)/c++
	chmod 755 $(HEADER_DIR)/c++/v1
	chmod 644 $(HEADER_DIR)/c++/v1/*
	chmod 755 $(HEADER_DIR)/c++/v1/ext
	chmod 644 $(HEADER_DIR)/c++/v1/ext/*

After removing the chown comand, `make install` worked.
This looks like a bug to me.

-regards,
Larry






More information about the cfe-dev mailing list