[parisc-linux] Re:[parisc-linux-cvs] linux-2.6 willy
Joel Soete
soete.joel at tiscali.be
Wed Jan 18 10:15:43 MST 2006
> On Tue, Jan 17, 2006 at 06:25:55PM +0100, Joel Soete wrote:
>
> Both problems fixed in current CVS, I think ...
>
>
Sorry I got a new very weird pb with this new .kernelrelease:
rm -f .kernelrelease
echo 2.6.16-rc1-pa1 .LEVEL2.0 .ident
"GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)"-b2k32 > .kernelrelease
if test ! /CAD/linux-2.6.16-rc1-pa1 -ef /CAD/linux-2.6.16-rc1-pa1; then \
/bin/sh /CAD/linux-2.6.16-rc1-pa1/scripts/mkmakefile \
/CAD/linux-2.6.16-rc1-pa1 /CAD/linux-2.6.16-rc1-pa1 2 6 \
> /CAD/linux-2.6.16-rc1-pa1/Makefile;
\
echo ' GEN /CAD/linux-2.6.16-rc1-pa1/Makefile';
\
fi
set -e; echo ' CHK include/linux/version.h'; mkdir -p include/linux/;
if [ `echo -n "2.6.16-rc1-pa1 .LEVEL2.0 .ident GCC:(
GNU)4.0.320051201(prerelease)(Debian4.0.2-5)-b2k32" | wc -c ` -gt 64 ]; then
echo '"2.6.16-rc1-pa1 .LEVEL2.0 .ident GCC:(GNU)4.0.320
051201(prerelease)(Debian4.0.2-5)-b2k32" exceeds 64 characters' >&2; exit 1;
fi; (echo \#define UTS_RELEASE \"2.6.16-rc1-pa1 .LEVEL2
.0 .ident GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)-b2k32\"; echo
\#define LINUX_VERSION_CODE `expr 2 \\* 65536 + 6 \\* 256
+ 16`; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';
) < /CAD/linux-2.6.16-rc1-pa1/Makefile > include/linux
/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s
include/linux/version.h include/linux/version.h.tmp; then rm -f include/
linux/version.h.tmp; else echo ' UPD include/linux/version.h'; mv -f
include/linux/version.h.tmp include/linux/version.h; fi
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `set -e; echo ' CHK include/linux/version.h'; mkdir
-p include/linux/; if [ `echo -n "2.6.16-rc1-pa
1 .LEVEL2.0 .ident GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)-b2k32" |
wc -c ` -gt 64 ]; then echo '"2.6.16-rc1-pa1 .LEVEL2.0
.ident GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)-b2k32" exceeds 64
characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE
\"2.6.16-rc1-pa1 .LEVEL2.0 .ident
GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)-b2k32\"; echo \#define
LINUX_VERSION_CODE `expr
2 \\* 65536 + 6 \\* 256 + 16`; echo '#define KERNEL_VERSION(a,b,c) (((a) <<
16) + ((b) << 8) + (c))'; ) < /CAD/linux-2.6.16-rc1-pa1/
Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] &&
cmp -s include/linux/version.h include/linux/version.h.
tmp; then rm -f include/linux/version.h.tmp; else echo ' UPD
include/linux/version.h'; mv -f include/linux/version.h.tmp includ
make: *** [include/linux/version.h] Error 2
what ever I did, build into the src tree or into separate builddir ;<(
actualy:
# more .kernelrelease
2.6.16-rc1-pa0 .LEVEL1.1 .ident
GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)-b2k32
(only one line in the file)
Sorry but I am so bad with make that it takes me the day to figureout that pb
came from:
localver = $(subst $(space),, \
$(shell cat /dev/null $(_localver)) \
$(patsubst "%",%,$(CONFIG_LOCALVERSION)))
as temporary work-around I get rid of the midle:
localver = $(subst $(space),, \
$(patsubst "%",%,$(CONFIG_LOCALVERSION)))
(sorry no time to patch ;-( )
Any idea where this chunk $(shell cat /dev/null $(_localver)) \ found
".LEVEL1.1 .ident GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)"?
"GCC:(GNU)4.0.320051201(prerelease)(Debian4.0.2-5)" is certainly something
like gcc -v:
# gcc -v
Using built-in specs.
Target: hppa-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release hppa-linux-gnu
Thread model: posix
gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
eventhought not exactely?
TIA,
Joel
PS: btw
gcc -Wp,-MD,arch/parisc/kernel/.pci.o.d -nostdinc -isystem
/usr/lib/gcc/hppa-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -Iinc
lude2 -I/CAD/linux-2.6.16-rc1-pa1/include -include include/linux/autoconf.h
-I/CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel -Iarch/pa
risc/kernel -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointe
r -pipe -mno-space-regs -mfast-indirect-calls -mdisable-fpregs
-ffunction-sections -march=2.0 -mschedule=8000 -Wdeclaration-after-st
atement -Wno-pointer-sign -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(pci)" -D"KBUILD_MODNAME=KBUILD_STR(pci)" -c -o
arch/p
arisc/kernel/.tmp_pci.o /CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel/pci.c
/CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel/pci.c:56: error: static
declaration of \xe2\x80\x98pci_hba_count\xe2\x80\x99 follows no
n-static declaration
include2/asm/pci.h:206: error: previous declaration of
\xe2\x80\x98pci_hba_count\xe2\x80\x99 was here
imho into include/asm-parisc/pci.h
as, at a first glance, it doesn't seems to be refered elsewhere, i get rid of
/* extern int pci_hba_count; */
Just allow me to continue the build,...
PS2: Sorry Kyle I didn't have time to try your patch (chassis_power_off)
---------------------------------------------------------------
A free anti-spam and anti-virus filter on all Scarlet mailboxes
More info on http://www.scarlet.be/
More information about the parisc-linux
mailing list