Bug 64091 - backports build error
Summary: backports build error
Status: CLOSED OBSOLETE
Alias: None
Product: Backports project
Classification: Unclassified
Component: Backports (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Backports Project Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-30 22:52 UTC by DarinV
Modified: 2017-02-09 16:35 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.27.57
Subsystem:
Regression: No
Bisected commit-id:


Attachments
config used. This config works with backport 3.8 version. (82.44 KB, application/octet-stream)
2013-10-30 22:52 UTC, DarinV
Details

Description DarinV 2013-10-30 22:52:41 UTC
Created attachment 112831 [details]
config used. This config works with backport 3.8 version.

root:# make menuconfig
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o mconf.o mconf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o zconf.tab.o zconf.tab.c
menu.c: In function `get_symbol_str':
menu.c:515: warning: 'jump' might be used uninitialized in this function
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/checklist.o lxdialog/checklist.ccc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/inputbox.o lxdialog/inputbox.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/menubox.o lxdialog/menubox.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/textbox.o lxdialog/textbox.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/util.o lxdialog/util.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/yesno.o lxdialog/yesno.c
cc -Wl,--no-as-needed -lncursesw  mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o   -o mconf


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

supergamer://home/supervl/Desktop/1/backports-3.11.6-1
root:# make
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
cc   conf.o zconf.tab.o   -o conf
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.

  WARNING: Symbol version dump /usr/src/linux-2.6.27.57/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/main.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.28.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.29.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.32.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.33.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.34.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.35.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.36.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.37.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/compat-2.6.39.o
  CC [M]  /home/supervl/Desktop/1/backports-3.11.6-1/compat/kstrtox.o
In file included from include/linux/cpumask.h:139,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/cpumask.h:3,
                 from include/asm/processor.h:25,
                 from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/types.h:47,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/compat/kstrtox.c:14:
include/linux/bitmap.h: In function `bitmap_zero':
include/linux/bitmap.h:145: error: implicit declaration of function `DIV_ROUND_UP'
In file included from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/cpumask.h:3,
                 from include/asm/processor.h:25,
                 from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/types.h:47,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/compat/kstrtox.c:14:
include/linux/cpumask.h: At top level:
include/linux/cpumask.h:141: error: variable-size type declared outside of any function
include/linux/cpumask.h:276: error: variable-size type declared outside of any function
In file included from include/asm/processor.h:25,
                 from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/types.h:47,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/compat/kstrtox.c:14:
/home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/cpumask.h:7: error: variable-size type declared outside of any function
In file included from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/types.h:47,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/1/backports-3.11.6-1/compat/kstrtox.c:14:
include/asm/processor.h: In function `native_get_debugreg':
include/asm/processor.h:443: error: implicit declaration of function `BUG'
make[6]: *** [/home/supervl/Desktop/1/backports-3.11.6-1/compat/kstrtox.o] Error 1
make[5]: *** [/home/supervl/Desktop/1/backports-3.11.6-1/compat] Error 2
make[4]: *** [_module_/home/supervl/Desktop/1/backports-3.11.6-1] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2
supergamer://home/supervl/Desktop/1/backports-3.11.6-1
root:#
Comment 1 DarinV 2013-10-30 22:56:08 UTC
Retried with standard kernel and no patches and the same results from stock kernel. Did you up the GCC version to build as that would explain a few things as my kernel runs on a Slackware 11 base.
Comment 2 Hauke Mehrtens 2013-10-31 10:21:28 UTC
I looked into these error messages and I do not know my you get them. On our test build with kernel 2.6.27.62 we haven't seen such an error, but this was done with gcc-4.7.3.

Is it correct that you have a 2.6.27.57 kernel? What gcc version are you using?

For the first error in bitmap.h:145:

bitmap.h:
#include <linux/bitops.h>
#include <linux/kernel.h>
...
int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);

bitops.h
#define BITS_TO_LONGS(nr)	DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))

kernel.h:
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))


You kernel.h is modified for me the include for types.h is in line 3, in your error message it is in line 13.

Please post the first 25 lines of your kernel.h

You haven't installed the Module.symvers which is needed, this is probably provided by some kernel development package.
Comment 3 DarinV 2013-10-31 12:50:37 UTC
#ifndef _LINUX_KERNEL_H
#define _LINUX_KERNEL_H

/*
 * 'kernel.h' contains some often-used function prototypes etc
 */

#ifdef __KERNEL__

#include <stdarg.h>
#include <linux/linkage.h>
#include <linux/stddef.h>
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/bitops.h>
#include <linux/log2.h>
#include <linux/typecheck.h>
#include <linux/ratelimit.h>
#include <asm/byteorder.h>
#include <asm/bug.h>

extern const char linux_banner[];
extern const char linux_proc_banner[];

#define USHORT_MAX	((u16)(~0U))
Comment 4 DarinV 2013-11-02 03:50:22 UTC
I am so sorry I read quickly before I had to go out of town. I am using GCC 3.4.6 on standard Slackware 11 base.
Comment 5 Hauke Mehrtens 2013-11-24 21:35:03 UTC
Please try backports-20131122-2, it could have fixed your problem.
Comment 6 DarinV 2013-11-26 06:38:06 UTC
Well I still get an error. I am attaching the whole terminal output so you guys can see all of it.

supergamer://home/supervl/Desktop/backports-20131122-2
root:# make menuconfig
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o mconf.o mconf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o zconf.tab.o zconf.tab.c
menu.c: In function `get_symbol_str':
menu.c:515: warning: 'jump' might be used uninitialized in this function
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/checklist.o lxdialog/checklist.ccc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/inputbox.o lxdialog/inputbox.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/menubox.o lxdialog/menubox.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/textbox.o lxdialog/textbox.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/util.o lxdialog/util.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o lxdialog/yesno.o lxdialog/yesno.c
cc -Wl,--no-as-needed -lncursesw  mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o   -o mconf


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

supergamer://home/supervl/Desktop/backports-20131122-2
root:# make
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
cc   conf.o zconf.tab.o   -o conf
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.

  WARNING: Symbol version dump /usr/src/linux-2.6.27.57/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/main.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.28.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.29.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.32.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.33.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.34.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.35.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.36.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.37.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/compat-2.6.39.o
  CC [M]  /home/supervl/Desktop/backports-20131122-2/compat/kstrtox.o
In file included from include/linux/cpumask.h:139,
                 from include/asm/processor.h:25,
                 from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/linux/types.h:37,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/backports-20131122-2/compat/kstrtox.c:14:
include/linux/bitmap.h: In function `bitmap_zero':
include/linux/bitmap.h:145: error: implicit declaration of function `DIV_ROUND_UP'
In file included from include/asm/processor.h:25,
                 from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/linux/types.h:37,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/backports-20131122-2/compat/kstrtox.c:14:
include/linux/cpumask.h: At top level:
include/linux/cpumask.h:141: error: variable-size type declared outside of any function
include/linux/cpumask.h:276: error: variable-size type declared outside of any function
In file included from include/asm/atomic_32.h:5,
                 from include/asm/atomic.h:2,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/asm/atomic.h:3,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/linux/types.h:37,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/backports-20131122-2/backport-include/linux/kernel.h:3,
                 from /home/supervl/Desktop/backports-20131122-2/compat/kstrtox.c:14:
include/asm/processor.h: In function `native_get_debugreg':
include/asm/processor.h:443: error: implicit declaration of function `BUG'
make[6]: *** [/home/supervl/Desktop/backports-20131122-2/compat/kstrtox.o] Error 1
make[5]: *** [/home/supervl/Desktop/backports-20131122-2/compat] Error 2
make[4]: *** [_module_/home/supervl/Desktop/backports-20131122-2] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2
supergamer://home/supervl/Desktop/backports-20131122-2
root:#
Comment 7 xerofoify 2014-07-28 03:32:24 UTC
Is this bug still open on newest rc kernel , if not can we close it now.
Nick
Comment 8 DarinV 2014-07-29 04:46:04 UTC
Well if you consider that the backports will not build on gcc 3.4.6 acceptable then I guess it is. I am still wondering why you would build backports to only work with newer gcc versions which in my opinion defeats the goal of backports, but like I am saying if you feel the need to close this then go ahead.
Comment 9 Johannes Berg 2017-02-09 16:34:11 UTC
closing bugs changed >1year ago as obsolete

Note You need to log in before you can comment on or make changes to this bug.