All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [uapi:uapi-split 44/75] include/linux/projid.h:17:30: error: storage class specified for paramet
Date: Wed, 03 Oct 2012 14:12:27 +0000	[thread overview]
Message-ID: <20121003141227.GA9009@localhost> (raw)
In-Reply-To: <20121003132913.GA4731@localhost>

On Wed, Oct 03, 2012 at 03:00:27PM +0100, David Howells wrote:
> Fengguang Wu <fengguang.wu@intel.com> 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¿in-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¿in-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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2012-10-03 14:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03 13:29 [uapi:uapi-split 44/75] include/linux/projid.h:17:30: error: storage class specified for parameter ' Fengguang Wu
2012-10-03 14:00 ` [uapi:uapi-split 44/75] include/linux/projid.h:17:30: error: storage class specified for paramet David Howells
2012-10-03 14:12 ` Fengguang Wu [this message]
2012-10-03 14:43 ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121003141227.GA9009@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.