public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Nish Aravamudan <nish.aravamudan@gmail.com>,
	Len Brown <lenb@kernel.org>,
	Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	Andy Whitcroft <apw@shadowen.org>
Subject: Re: [BUILD_FAILURE] 2.6.25-rc2-mm1 - Build Failure at acpi_os
Date: Fri, 22 Feb 2008 10:13:44 -0800	[thread overview]
Message-ID: <20080222101344.821ea02a.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20080222180815.GB6434@uranus.ravnborg.org>

On Fri, 22 Feb 2008 19:08:15 +0100 Sam Ravnborg wrote:

> On Thu, Feb 21, 2008 at 05:38:52PM -0800, Nish Aravamudan wrote:
> > On 2/21/08, Sam Ravnborg <sam@ravnborg.org> wrote:
> > > On Thu, Feb 21, 2008 at 10:54:40AM -0800, Nish Aravamudan wrote:
> > >  > On 2/20/08, Len Brown <lenb@kernel.org> wrote:
> > >  > > On Saturday 16 February 2008 14:47, Kamalesh Babulal wrote:
> > >  > >  > Hi Andrew,
> > >  > >  >
> > >  > >  > The 2.6.25-rc2-mm1 kernel with randconfig build option, fails
> > >  > >  > to build on x86_64 machine
> > >  > >  >
> > >  > >  >   CC      drivers/acpi/osl.o
> > >  > >  > drivers/acpi/osl.c:60:38: error: empty filename in #include
> > >  > >  > drivers/acpi/osl.c: In function 'acpi_os_table_override':
> > >  > >  > drivers/acpi/osl.c:399: error: 'AmlCode' undeclared (first use in this function)
> > >  > >  > drivers/acpi/osl.c:399: error: (Each undeclared identifier is reported only once
> > >  > >  > drivers/acpi/osl.c:399: error: for each function it appears in.)
> > >  > >  > make[2]: *** [drivers/acpi/osl.o] Error 1
> > >  > >  > make[1]: *** [drivers/acpi] Error 2
> > >  > >  > make: *** [drivers] Error 2
> > >  > >  >
> > >  > >  > #
> > >  > >  > # Automatically generated make config: don't edit
> > >  > >  > # Linux kernel version: 2.6.25-rc2-mm1
> > >  > >  > # Sun Feb 17 08:07:17 2008
> > >  > >  > #
> > >  > >
> > >  > >
> > >  > > > CONFIG_ACPI_CUSTOM_DSDT=y
> > >  > >  > CONFIG_ACPI_CUSTOM_DSDT_FILE=""
> > >  > >
> > >  > >
> > >  > > garbage in, garbage out.
> > >  >
> > >  > garbage explicitly *allowed* by Kconfig in this case, though.
> > >  >
> > >  > >  If you don't give this build option a file name where AmlCode lives,
> > >  > >  then the build will be unable to find AmlCode[].
> > >  > >
> > >  > >  http://www.lesswatts.org/projects/acpi/overridingDSDT.php
> > >  >
> > >  > So we have a .config option whose sole purpose is to use another
> > >  > .config option? That seems ... less than ideal. Is there not some
> > >  > Kconfig voodoo we can do to only require the one option? Maybe
> > >  > something like how CONFIG_INITRAMFS_SOURCE is done? Adding Sam to the
> > >  > Cc, in case he has any ideas.
> > >
> > >
> > > Make sure STANDALONE is y for your randconfig builds.
> > >  See README for examples.
> > 
> > Hrm, if this is needed for randconfig to work, perhaps randconfig
> > itself should somehow be specifying it?
> > 
> > >  STANALONE is there exactly to prevent the above but we cannot
> > >  control randconfig.
> > 
> > While setting STANDALONE does fix the above, it doesn't answer the
> > more basic question I had -- do we really need both .config options in
> > this case? If it's simply a case of "That's how it is, won't be fixed,
> > there are higher priorities", that's good enough by me. Just seems a
> > shame that we have an option to enable another option, which is
> > required for the first option to be sensible -- seems like we should
> > only need the second option...
> 
> I really do not see what problem you are trying to address.
> 
> STANDALONE is there as an easy way to turn of the options that requires
> sensible input to make a kernel compile.
> 
> And that makes _perfect_ sense when you do randconfig builds.


> CONFIG_ACPI_CUSTOM_DSDT=y
> CONFIG_ACPI_CUSTOM_DSDT_FILE=""

Is there a way to generate (in Kconfig language) the boolean
CONFIG_ACPI_CUSTOM_DSDT based on whether CONFIG_ACPI_CUSTOM_DSDT_FILE
== "" or != "" ?  I tried to muck around with that last night but
couldn't get it to work.  I.e., just present the ACPI_CUSTOM_DSDT_FILE
config symbol to the user and then generate the ACPI_CUSTOM_DSDT bool
based on the string value.


---
~Randy

  parent reply	other threads:[~2008-02-22 18:16 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080216002522.9c4bd0fb.akpm@linux-foundation.org>
2008-02-16 19:47 ` [BUILD_FAILURE] 2.6.25-rc2-mm1 - Build Failure at acpi_os Kamalesh Babulal
2008-02-16 20:01   ` Laura Garcia
2008-02-21  7:08   ` Len Brown
2008-02-21 18:54     ` Nish Aravamudan
2008-02-21 22:22       ` Sam Ravnborg
2008-02-22  1:38         ` Nish Aravamudan
2008-02-22 18:08           ` Sam Ravnborg
2008-02-22 18:12             ` Nish Aravamudan
2008-02-22 18:13             ` Randy Dunlap [this message]
2008-02-22 18:21               ` Nish Aravamudan
2008-02-22 18:27               ` Sam Ravnborg
2008-02-22 18:29                 ` Randy Dunlap
2008-02-22 18:56                   ` Sam Ravnborg
2008-02-22 19:25                     ` [PATCH] " Randy Dunlap
2008-02-23  5:41                       ` Len Brown
2008-02-23 15:33                       ` Kamalesh Babulal
2008-02-17  5:16 ` 2.6.25-rc2-mm1 (x64 thermal build failure) Randy Dunlap
2008-02-17  5:44   ` Andrew Morton
2008-02-18 10:15     ` Thomas Petazzoni
2008-02-18 12:13       ` Andrew Morton
2008-02-19 15:55         ` Thomas Petazzoni
2008-02-19 17:41           ` Randy Dunlap
2008-02-19 22:00             ` Thomas Petazzoni
2008-02-19 22:05               ` Randy Dunlap
2008-02-19 23:21           ` Andrew Morton
2008-02-20  7:21             ` Thomas Petazzoni
2008-02-20  9:55               ` Andrew Morton

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=20080222101344.821ea02a.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=apw@shadowen.org \
    --cc=kamalesh@linux.vnet.ibm.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nish.aravamudan@gmail.com \
    --cc=sam@ravnborg.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox