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

Bug#712103: marked as done (linux-3.2.46-1 does not compile (rcupdate.h))



Your message dated Thu, 13 Jun 2013 22:41:22 +0100
with message-id <1371159682.10688.48.camel@deadeye.wl.decadent.org.uk>
and subject line Re: Bug#712103: linux-3.2.46-1 does not compile (rcupdate.h)
has caused the Debian Bug report #712103,
regarding linux-3.2.46-1 does not compile (rcupdate.h)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
712103: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712103
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: linux-source-3.2
Version: 3.2.46-1
Severity: important

Dear Maintainer,

   * What led up to the situation?

  Compiling error:

In file included from include/linux/mm_types.h:15:0,
                 from include/linux/sched.h:64,
                 from arch/x86/kernel/asm-offsets.c:9:
include/linux/rcupdate.h: In function '__kfree_rcu':
include/linux/rcupdate.h:834:2: error: size of unnamed array is negative
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

  Line 834 is BUILD_BUG_ON... in

static __always_inline
void __kfree_rcu(struct rcu_head *head, unsigned long offset)
{
	typedef void (*rcu_callback)(struct rcu_head *);

	BUILD_BUG_ON(!__builtin_constant_p(offset));


  "offset" is declared as an "unsigned long" so can't be negative!

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i586)

Kernel: Linux 2.6.32-47
Locale: LANG=is_IS, LC_CTYPE=is_IS (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-source-3.2 depends on:
ii  binutils  2.22-8
ii  bzip2     1.0.6-4

Versions of packages linux-source-3.2 recommends:
ii  gcc                   4:4.7.2-1
ii  libc6-dev [libc-dev]  2.13-38
ii  make                  3.81-8.2

Versions of packages linux-source-3.2 suggests:
ii  libncurses5-dev [ncurses-dev]  5.9-10
pn  libqt4-dev                     <none>
ii  pkg-config                     0.26-1

-- no debconf information

-- 
Bjarni I. Gislason

--- End Message ---
--- Begin Message ---
On Thu, 2013-06-13 at 21:10 +0000, Bjarni Ingi Gislason wrote:
> On Thu, Jun 13, 2013 at 03:07:26AM +0100, Ben Hutchings wrote:
> > Control: tag -1 moreinfo
> > 
> > On Wed, 2013-06-12 at 23:46 +0000, Bjarni Ingi Gislason wrote:
> > > Package: linux-source-3.2
> > > Version: 3.2.46-1
> > > Severity: important
> > > 
> > > Dear Maintainer,
> > > 
> > >    * What led up to the situation?
> > > 
> > >   Compiling error:
> > > 
> > > In file included from include/linux/mm_types.h:15:0,
> > >                  from include/linux/sched.h:64,
> > >                  from arch/x86/kernel/asm-offsets.c:9:
> > > include/linux/rcupdate.h: In function '__kfree_rcu':
> > > include/linux/rcupdate.h:834:2: error: size of unnamed array is negative
> > > make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
> > > make: *** [prepare0] Error 2
> > > 
> > >   Line 834 is BUILD_BUG_ON... in
> > > 
> > > static __always_inline
> > > void __kfree_rcu(struct rcu_head *head, unsigned long offset)
> > > {
> > > 	typedef void (*rcu_callback)(struct rcu_head *);
> > > 
> > > 	BUILD_BUG_ON(!__builtin_constant_p(offset));
> > > 
> > > 
> > >   "offset" is declared as an "unsigned long" so can't be negative!
> > 
> > This is a build-time assertion that the caller is passing a compile-time
> > constant for offset.  If the assertion fails it triggers this weird
> > 'size of unnamed array is negative' error.
> > 
> > But nothing in asm-offsets.c will be calling it, so this doesn't make
> > sense to me.
> > 
> > You forgot to attach your .config.
> > 
> 
>   In the main Makefile I changed "-O2" to "-O0":
[...]

So you introduced the bug yourself.

Ben.

-- 
Ben Hutchings
friends: People who know you well, but like you anyway.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: