Bug 63381 - cpumask.h error
Summary: cpumask.h error
Status: CLOSED OBSOLETE
Alias: None
Product: Backports project
Classification: Unclassified
Component: Backports (show other bugs)
Hardware: All Linux
: P1 high
Assignee: Backports Project Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 05:32 UTC by DarinV
Modified: 2017-02-09 16:32 UTC (History)
2 users (show)

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


Attachments
attachment-31464-0.html (1.79 KB, text/html)
2013-10-22 19:23 UTC, DarinV
Details

Description DarinV 2013-10-21 05:32:47 UTC
e/linux/kernel.h:3,
                 from /home/supervl/Desktop/2/backports-3.10.4-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 f unction
include/linux/cpumask.h:276: error: variable-size type declared outside of any f unction
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/2/backports-3.10.4-1/backport-includ e/asm/atomic.h:3,
                 from /home/supervl/Desktop/2/backports-3.10.4-1/backport-includ e/linux/types.h:47,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/2/backports-3.10.4-1/backport-includ e/linux/kernel.h:3,
                 from /home/supervl/Desktop/2/backports-3.10.4-1/compat/kstrtox. c:14:
/home/supervl/Desktop/2/backports-3.10.4-1/backport-include/linux/cpumask.h:7: e rror: 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/2/backports-3.10.4-1/backport-includ e/asm/atomic.h:3,
                 from /home/supervl/Desktop/2/backports-3.10.4-1/backport-includ e/linux/types.h:47,
                 from include/linux/kernel.h:13,
                 from /home/supervl/Desktop/2/backports-3.10.4-1/backport-includ e/linux/kernel.h:3,
                 from /home/supervl/Desktop/2/backports-3.10.4-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/2/backports-3.10.4-1/compat/kstrtox.o] Error  1
make[5]: *** [/home/supervl/Desktop/2/backports-3.10.4-1/compat] Error 2
make[4]: *** [_module_/home/supervl/Desktop/2/backports-3.10.4-1] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2

Driver build error from 3.9 version upwards

  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtl818x/rtl8180/rtl8180.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtl8192de/rtl8192de.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/drivers/net/wireless/rtlwifi/rtlwifi.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/net/rfkill/rfkill_backport.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/net/wireless/lib80211.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/net/wireless/lib80211_crypt_ccmp.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/net/wireless/lib80211_crypt_tkip.ko
  INSTALL /home/supervl/Desktop/1/compat-drivers-3.8.3-2-snpu/net/wireless/lib80211_crypt_wep.ko
  DEPMOD  2.6.27.57-SG
make[1]: Leaving directory `/usr/src/linux-2.6.27.57'


Drivers build normally with 3.8.3 with same kernel and same stripped sources aka crippled sources.
Comment 1 Hauke Mehrtens 2013-10-21 10:46:54 UTC
What kernel are you compiling against? We only test this with mainline kernels, but when you have a patched kernel like one provided by distributions like RedHat, they contain many patches which are conflicting with backports.

Are you compiling for x86 or for some other arch?
Comment 2 DarinV 2013-10-22 19:23:07 UTC
Created attachment 112001 [details]
attachment-31464-0.html

2.6.27.57 patches for bootsplash and squashfs 3. No issues building with
the 3.8.3 version and it is for x86. Mainline with only those 2 patches as
I built my own kernel for the SuperGamer Distro. What changed going from
the 3.8.3 to the 3.9 versions? I may have to build the the drivers with
stock kernel then build the kernel last with patches but was hoping I
didn't have to.


On Mon, Oct 21, 2013 at 10:46 AM, <bugzilla-daemon@bugzilla.kernel.org>wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=63381
>
> Hauke Mehrtens <hauke@hauke-m.de> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |hauke@hauke-m.de
>
> --- Comment #1 from Hauke Mehrtens <hauke@hauke-m.de> ---
> What kernel are you compiling against? We only test this with mainline
> kernels,
> but when you have a patched kernel like one provided by distributions like
> RedHat, they contain many patches which are conflicting with backports.
>
> Are you compiling for x86 or for some other arch?
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Hauke Mehrtens 2013-10-23 18:32:57 UTC
Could please post the full error message, you cut of some parts on the top.
Comment 4 Hauke Mehrtens 2013-11-24 21:35:48 UTC
This was probably fixed in backports-20131122-2, please try that version and report back.
Comment 5 DarinV 2013-11-25 23:01:45 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 6 xerofoify 2014-07-28 03:33:05 UTC
This bug seems old dated. Please can we close it update it's status.
Regards Nick
Comment 7 Johannes Berg 2017-02-09 16:32:50 UTC
closing ancient bug as obsolete

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