FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-19-2010, 04:11 AM
Geert Stappers
 
Default 2.6.35-rc5 build on MIPSEL macro "get_current" passed 2 arguments, but takes just 0

Hello Debian kernel people,

This E-mail is to report a kernel build failure that I encountered.

On a MIPSEL system I do get this output

| CC [M] drivers/power/power_supply_core.o
| CC [M] drivers/power/power_supply_sysfs.o
| CC [M] drivers/power/power_supply_leds.o
| LD [M] drivers/power/power_supply.o
| CC [M] drivers/power/ds2782_battery.o
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:216:48: error: macro "get_current" passed 2 arguments, but takes just 0
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:
| In function 'ds278x_get_status':
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:216: warning: assignment makes integer from pointer without a cast
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:257:50: error: macro "get_current" passed 2 arguments, but takes just 0
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:
| In function 'ds278x_battery_get_property':
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:257: warning: assignment makes integer from pointer without a cast
| make[7]: *** [drivers/power/ds2782_battery.o] Error 1
| make[6]: *** [drivers/power] Error 2
| make[5]: *** [drivers] Error 2
| make[4]: *** [sub-make] Error 2
| make[3]: *** [all] Error 2
| make[3]: Leaving directory
| `/usr/src/Linux/debian-svn/debian/build/build_mipsel_none_4kc-malta'
| make[2]: *** [debian/stamps/build_mipsel_none_4kc-malta_plain] Error 2

What I did to get there comes mostly from the kernel-handbook.
This is what I exactly ( # comment added afterwars ) did:

| svn co svn://svn.debian.org/svn/kernel/dists/trunk/linux-2.6 debian-svn
| cd debian-svn
| svn log # checked that work for http://bugs.debian.org/583689 is included
| cd ..
| apt-get source -d linux-2.6
| cd debian-svn/
| debian/rules orig # failed, it asked for 2.6.32~rc5
| cd ..
| wget http://ftp.debian.org/pool/main/l/linux-2.6/linux-2.6_2.6.35~rc5.orig.tar.gz
| cd -
| debian/rules orig
| debian/rules debian/control
| fakeroot debian/rules binary


Information about the "build host"

| stappers@fulong:/usr/src/Linux/debian-svn
| $ pwd
| /usr/src/Linux/debian-svn
| stappers@fulong:/usr/src/Linux/debian-svn
| $ uname -a
| Linux fulong 2.6.27.7 #1 Fri Mar 6 15:20:56 CST 2009 mips64 GNU/Linux
| stappers@fulong:/usr/src/Linux/debian-svn
| $ uname -m
| mips64
| stappers@fulong:/usr/src/Linux/debian-svn
| $ dpkg-architecture
| DEB_BUILD_ARCH=mipsel
| DEB_BUILD_ARCH_OS=linux
| DEB_BUILD_ARCH_CPU=mipsel
| DEB_BUILD_GNU_CPU=mipsel
| DEB_BUILD_GNU_SYSTEM=linux-gnu
| DEB_BUILD_GNU_TYPE=mipsel-linux-gnu
| DEB_HOST_ARCH=mipsel
| DEB_HOST_ARCH_OS=linux
| DEB_HOST_ARCH_CPU=mipsel
| DEB_HOST_GNU_CPU=mipsel
| DEB_HOST_GNU_SYSTEM=linux-gnu
| DEB_HOST_GNU_TYPE=mipsel-linux-gnu
| stappers@fulong:/usr/src/Linux/debian-svn
| $ svn info
| Path: .
| URL: svn://svn.debian.org/svn/kernel/dists/trunk/linux-2.6
| Repository Root: svn://svn.debian.org/svn/kernel
| Repository UUID: 510b9475-24dd-0310-9b6c-e0eefe99d49f
| Revision: 15990
| Node Kind: directory
| Schedule: normal
| Last Changed Author: benh
| Last Changed Rev: 15985
| Last Changed Date: 2010-07-14 07:26:01 +0800 (Wed, 14 Jul 2010)
|
| stappers@fulong:/usr/src/Linux/debian-svn
| $ svn update
| At revision 15992.
| stappers@fulong:/usr/src/Linux/debian-svn
| $


What can I do to get beyond
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:216:48: error: macro "get_current" passed 2 arguments, but takes just 0
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:257:50: error: macro "get_current" passed 2 arguments, but takes just 0
???


Groeten
Geert Stappers
 

Thread Tools




All times are GMT. The time now is 07:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org