Re: [uapi:uapi-split 44/75] include/linux/projid.h:17:30: error: storage class specified for parameter 'init_user_ns'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 03, 2012 at 03:00:27PM +0100, David Howells wrote:
> Fengguang Wu <fengguang.wu@xxxxxxxxx> wrote:
> 
> > FYI, kernel build failed on
> > 
> > tree:   git://git.infradead.org/users/dhowells/linux-headers.git uapi-split
> > head:   72541c7f48c3dcd7b9cbc3c56a804f7901c2c3dc
> > commit: 81be833cfcaa1b0186bc21f97ee9e65dc71506d5 [44/75] UAPI: (Scripted) Disintegrate include/asm-generic
> > config: openrisc-or1ksim_defconfig
> 
> I don't have a compiler for that.  Where did you get yours from?

https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/

I downloaded all of them (*/*.tar.xz), extracted to /usr/local, and
used the below script to simplify things. You may also try ktest.

setup:

        cd linux
        mkdir obj-compiletest
        cd obj-compiletest
        ln -s .. source

Usage:

        cd linux
        git checkout uapi-split

        cd obj-compiletest
        export ARCH=openrisc
        make distclean
        make or1ksim_defconfig
        make prepare
        make

Thanks,
Fengguang

$ cat ~/bin/make
#!/bin/bash

# compile the kernel?
[[ -f kernel/spinlock.c || -f source/kernel/spinlock.c ]] || exec /usr/bin/make "$@"

if [[ ${PWD##*-} =~ ^(i386|x86_64|alpha|arm|avr32|blackfin|c6x|cris|frv|h8300|hexagon|ia64|m32r|m68k|microblaze|mips|mn10300|openrisc|parisc|powerpc|s390|score|sh|sparc|sparc64|tile|um|unicore32|xtensa)$ ]]; then
	export ARCH=${PWD##*-}
fi

setup_cross_env_kernel_org()
{
	case $ARCH in
		i386|x86_64)
			CROSS=
			;;
		um)
			CROSS=
			subarch=SUBARCH=x86_64
			;;
		arm)
			CROSS=arm-unknown-linux-gnueabi
			;;
		powerpc)
			CROSS=powerpc64-linux
			;;
		blackfin)
			CROSS=bfin-uclinux
			;;
		sh)
			CROSS=sh4-linux
			;;
		parisc)
			CROSS=hppa-linux
			;;
		openrisc)
			CROSS=or32-linux
			;;
		s390)
			CROSS=s390x-linux
			;;
		tile)
			CROSS=tilegx-linux
			;;
		*)
			CROSS=$ARCH-linux
			;;
	esac
	if [[ $CROSS ]]; then
		gcc=(/usr/local/gcc-*-nolibc/${CROSS}/bin/${CROSS}-gcc)
		[[ -x $gcc ]] || {
			notice "No cross compiler for $ARCH"
			exit
		}
		cross=CROSS_COMPILE=${gcc%gcc}
	else
		cross=
	fi
}

setup_cross_env_local_itanium()
{
	case $ARCH in
		ia64)
			CROSS=
			;;
		parisc)
			CROSS=hppa-linux
			;;
		sh)
			CROSS=sh3-linux
			;;
		blackfin)
			CROSS=bfin-uclinux
			;;
		avr32)
			CROSS=avr-linux
			;;
		mn10300)
			CROSS=am33_2.0-linux
			;;
		h8300)
			CROSS=h8300-elf
			;;
		arm|score|m68k)
			# failed to build gcc cross compiler
			notice error $ARCH not supported
			exit
			;;
		*)
			CROSS=$ARCH-linux
			;;
	esac
	if [[ $CROSS ]]; then
		[[ -x /opt/cross/bin/$CROSS-gcc ]] || {
			notice "No cross compiler for $ARCH"
			exit
		}
		cross=CROSS_COMPILE=/opt/cross/bin/$CROSS-
	else
		cross=
	fi
}

if [ -x /opt/cross/bin/x86_64-linux-gcc ]; then
	: ${ARCH:=ia64}
	setup_cross_env_local_itanium
else
	: ${ARCH:=x86_64}
	setup_cross_env_kernel_org
fi

# export CROSS_COMPILE=$ARCH-linux-gnu-
if [ -d obj-$ARCH ]; then
	export KBUILD_OUTPUT=obj-$ARCH
	O=KBUILD_OUTPUT=obj-$ARCH
fi

export INSTALL_PATH=$HOME/public_html/$ARCH
export INSTALL_MOD_PATH=/nfsroot/$USER-$ARCH

[ -f .make-env ] && source ./.make-env

if [[ -d source && -L source ]]; then
	echo /usr/bin/make -C source O=$PWD ARCH=$ARCH $cross $subarch "$@"
	exec /usr/bin/make -C source O=$PWD ARCH=$ARCH $cross $subarch "$@"
else
	echo /usr/bin/make $O ARCH=$ARCH $cross $subarch "$@"
	exec /usr/bin/make $O ARCH=$ARCH $cross $subarch "$@"
fi
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux