All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: sparclinux@vger.kernel.org
Subject: Re: [patch 1/1] sparc32: convert to asm-generic/hardirq.h
Date: Fri, 25 Sep 2009 21:45:55 +0000	[thread overview]
Message-ID: <20090925214555.GA3529@merkur.ravnborg.org> (raw)
In-Reply-To: <200909181959.n8IJx3qh005792@imap1.linux-foundation.org>

On Fri, Sep 25, 2009 at 02:36:23PM -0700, Andrew Morton wrote:
> On Fri, 25 Sep 2009 23:26:50 +0200
> Sam Ravnborg <sam@ravnborg.org> wrote:
> 
> > On Fri, Sep 25, 2009 at 02:18:25PM -0700, David Miller wrote:
> > > From: Andrew Morton <akpm@linux-foundation.org>
> > > Date: Fri, 25 Sep 2009 14:15:38 -0700
> > > 
> > > > hm, I tried to fix this but my sparc32 cross-compiler broke.
> > > > 
> > > > ARCH=sparc:
> > > > 
> > > > scripts/mod/empty.c:1: error: -m64 is not supported by this configuration
> > > > scripts/mod/empty.c:1: error: -mlong-double-64 not allowed with -m64
> > > > scripts/mod/empty.c:1: error: -mcmodel= is not supported on 32 bit systems
> > >  ...
> > > > How'd that -m64 get in there?
> > > 
> > > That's really odd.
> > > 
> > > Sam, any idea?
> > 
> > It happens if you try to build sparc with a sparc64 config.
> > 
> 
> setenv ARCH sparc
> make mrproper
> make allmodconfig
> make init/main.o
> 
> scripts/mod/empty.c:1: error: -m64 is not supported by this configuration
> scripts/mod/empty.c:1: error: -mlong-double-64 not allowed with -m64
> scripts/mod/empty.c:1: error: -mcmodel= is not supported on 32 bit systems
> 
> akpm:/usr/src/25> grep SPARC .config 
> CONFIG_SPARC=y
> # CONFIG_SPARC32 is not set
> CONFIG_SPARC64=y
> CONFIG_SPARC64_SMP=y
> CONFIG_SPARC64_PAGE_SIZE_8KB=y
> # CONFIG_SPARC64_PAGE_SIZE_64KB is not set
> CONFIG_SPARC64_PCI=y
> CONFIG_INPUT_SPARCSPKR=m
> CONFIG_SND_SPARC=y
> # Misc Linux/SPARC drivers
> 
> wtf?  How'd sparc64 get set?

One of the open issues after merging sparc and sparc64.
I have never got around to find a proper solution so
we adjust the config based on the ARCH= setting.
So allmodconfig + allyesconfig will always be sparc64.
And allnoconfig will always be sparc.

Davem has rightfully complained about this before.

	Sam

  parent reply	other threads:[~2009-09-25 21:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-18 19:59 [patch 1/1] sparc32: convert to asm-generic/hardirq.h akpm
2009-09-25 21:07 ` David Miller
2009-09-25 21:15 ` Andrew Morton
2009-09-25 21:18 ` David Miller
2009-09-25 21:26 ` Sam Ravnborg
2009-09-25 21:36 ` Andrew Morton
2009-09-25 21:40 ` Andrew Morton
2009-09-25 21:42 ` Andrew Morton
2009-09-25 21:45 ` Sam Ravnborg [this message]
2009-09-25 21:50 ` Sam Ravnborg
2009-09-25 21:56 ` Andrew Morton
2009-09-25 21:59 ` David Miller
2009-09-25 22:19 ` Andrew Morton
2009-09-25 22:28 ` David Miller
2009-09-28 22:55 ` akpm
2009-10-01 21:32 ` David Miller

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=20090925214555.GA3529@merkur.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=sparclinux@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.