public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: can't compile 2.6.11-rc2 on sparc64
  2005-01-23  1:38 can't compile 2.6.11-rc2 on sparc64 Grzegorz Piotr Jaskiewicz
@ 2005-01-23  1:36 ` Randy.Dunlap
  2005-01-23  1:45   ` Grzegorz Piotr Jaskiewicz
  2005-01-23  1:48   ` Grzegorz Piotr Jaskiewicz
  0 siblings, 2 replies; 7+ messages in thread
From: Randy.Dunlap @ 2005-01-23  1:36 UTC (permalink / raw)
  To: Grzegorz Piotr Jaskiewicz; +Cc: lkml

Grzegorz Piotr Jaskiewicz wrote:
> I get this error :
>  
>  CC      arch/sparc64/kernel/ioctl32.o
> include/asm/uaccess.h: In function `siocdevprivate_ioctl':
> fs/compat_ioctl.c:648: warning: ignoring return value of `copy_to_user', 
> declared with attribute warn_unused_result
> fs/compat_ioctl.c: In function `put_dirent32':
> fs/compat_ioctl.c:2346: warning: ignoring return value of `copy_to_user', 
> declared with attribute warn_unused_result
> fs/compat_ioctl.c: In function `serial_struct_ioctl':
> fs/compat_ioctl.c:2489: warning: ignoring return value of `copy_from_user', 
> declared with attribute warn_unused_result
> fs/compat_ioctl.c:2502: warning: ignoring return value of `copy_to_user', 
> declared with attribute warn_unused_result
> make[1]: *** [arch/sparc64/kernel/ioctl32.o] Error 1
> 
> 
> gcc is 3.4, 64bit. That's ultra5.

Please look for another error.  Run 'make' again.
Those are all just warnings and don't cause a build error.

-- 
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* can't compile 2.6.11-rc2 on sparc64
@ 2005-01-23  1:38 Grzegorz Piotr Jaskiewicz
  2005-01-23  1:36 ` Randy.Dunlap
  0 siblings, 1 reply; 7+ messages in thread
From: Grzegorz Piotr Jaskiewicz @ 2005-01-23  1:38 UTC (permalink / raw)
  To: lkml

I get this error :
 
 CC      arch/sparc64/kernel/ioctl32.o
include/asm/uaccess.h: In function `siocdevprivate_ioctl':
fs/compat_ioctl.c:648: warning: ignoring return value of `copy_to_user', 
declared with attribute warn_unused_result
fs/compat_ioctl.c: In function `put_dirent32':
fs/compat_ioctl.c:2346: warning: ignoring return value of `copy_to_user', 
declared with attribute warn_unused_result
fs/compat_ioctl.c: In function `serial_struct_ioctl':
fs/compat_ioctl.c:2489: warning: ignoring return value of `copy_from_user', 
declared with attribute warn_unused_result
fs/compat_ioctl.c:2502: warning: ignoring return value of `copy_to_user', 
declared with attribute warn_unused_result
make[1]: *** [arch/sparc64/kernel/ioctl32.o] Error 1


gcc is 3.4, 64bit. That's ultra5.

-- 
GJ

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile 2.6.11-rc2 on sparc64
  2005-01-23  1:36 ` Randy.Dunlap
@ 2005-01-23  1:45   ` Grzegorz Piotr Jaskiewicz
  2005-01-23  1:48   ` Grzegorz Piotr Jaskiewicz
  1 sibling, 0 replies; 7+ messages in thread
From: Grzegorz Piotr Jaskiewicz @ 2005-01-23  1:45 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml

On Sunday 23 January 2005 02:36, Randy.Dunlap wrote:

> Please look for another error.  Run 'make' again.
> Those are all just warnings and don't cause a build error.

That's just all I get on console.


-- 
GJ

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile 2.6.11-rc2 on sparc64
  2005-01-23  1:36 ` Randy.Dunlap
  2005-01-23  1:45   ` Grzegorz Piotr Jaskiewicz
@ 2005-01-23  1:48   ` Grzegorz Piotr Jaskiewicz
  2005-01-23  2:13     ` Randy.Dunlap
  1 sibling, 1 reply; 7+ messages in thread
From: Grzegorz Piotr Jaskiewicz @ 2005-01-23  1:48 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml

On Sunday 23 January 2005 02:36, Randy.Dunlap wrote:

> Please look for another error.  Run 'make' again.
> Those are all just warnings and don't cause a build error.

all output past make:

[root@gjsparc64 linux-2.6.11-rc2]# make V=1
if test ! /usr/src/linux-2.6.11-rc2 -ef /usr/src/linux-2.6.11-rc2; then \
/bin/bash /usr/src/linux-2.6.11-rc2/scripts/mkmakefile              \
    /usr/src/linux-2.6.11-rc2 /usr/src/linux-2.6.11-rc2 2 6         \
    > /usr/src/linux-2.6.11-rc2/Makefile;                                 \
    echo '  GEN    /usr/src/linux-2.6.11-rc2/Makefile';                   \
fi
  CHK     include/linux/version.h
rm -rf .tmp_versions
mkdir -p .tmp_versions
make -f scripts/Makefile.build obj=scripts/basic
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=scripts/genksyms
make -f scripts/Makefile.build obj=scripts/mod
make -f scripts/Makefile.build obj=init
  CHK     include/linux/compile.h
make -f scripts/Makefile.build obj=usr
set -e; echo '  CHK     usr/initramfs_list'; mkdir -p 
usr/; /bin/bash /usr/src/linux-2.6.11-rc2/scripts/gen_initramfs_list.sh    > 
usr/initramfs_list.tmp; if [ -r usr/initramfs_list ] && cmp -s 
usr/initramfs_list usr/initramfs_list.tmp; then rm -f usr/initramfs_list.tmp; 
else echo '  UPD     usr/initramfs_list'; mv -f usr/initramfs_list.tmp 
usr/initramfs_list; fi
  CHK     usr/initramfs_list
make -f scripts/Makefile.build obj=arch/sparc64/kernel
  /usr/bin/sparc64-pld-linux-gcc -Wp,-MD,arch/sparc64/kernel/.ioctl32.o.d 
-nostdinc -isystem /usr/lib/gcc/sparc64-pld-linux/3.4.2/include -D__KERNEL__ 
-Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
-fno-common -ffreestanding -O2     -fomit-frame-pointer -m64 -pipe -mno-fpu 
-mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 
-Wno-sign-compare -Wa,--undeclared-regs -finline-limit=100000 
-Wdeclaration-after-statement  -Werror -Ifs/  -DKBUILD_BASENAME=ioctl32 
-DKBUILD_MODNAME=ioctl32 -c -o arch/sparc64/kernel/.tmp_ioctl32.o 
arch/sparc64/kernel/ioctl32.c
include/asm/uaccess.h: In function `siocdevprivate_ioctl':
fs/compat_ioctl.c:648: warning: ignoring return value of `copy_to_user', 
declared with attribute warn_unused_result
fs/compat_ioctl.c: In function `put_dirent32':
fs/compat_ioctl.c:2346: warning: ignoring return value of `copy_to_user', 
declared with attribute warn_unused_result
fs/compat_ioctl.c: In function `serial_struct_ioctl':
fs/compat_ioctl.c:2489: warning: ignoring return value of `copy_from_user', 
declared with attribute warn_unused_result
fs/compat_ioctl.c:2502: warning: ignoring return value of `copy_to_user', 
declared with attribute warn_unused_result
make[1]: *** [arch/sparc64/kernel/ioctl32.o] Error 1
make: *** [arch/sparc64/kernel] Error 2
[root@gjsparc64 linux-2.6.11-rc2]#

I have no idea what causes error here. What shall I input to get more info 
about that error ?
                                       
-- 
GJ

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile 2.6.11-rc2 on sparc64
  2005-01-23  1:48   ` Grzegorz Piotr Jaskiewicz
@ 2005-01-23  2:13     ` Randy.Dunlap
  2005-01-23  8:09       ` Grzegorz Piotr Jaskiewicz
  0 siblings, 1 reply; 7+ messages in thread
From: Randy.Dunlap @ 2005-01-23  2:13 UTC (permalink / raw)
  To: Grzegorz Piotr Jaskiewicz; +Cc: lkml

Grzegorz Piotr Jaskiewicz wrote:
> On Sunday 23 January 2005 02:36, Randy.Dunlap wrote:
> 
> 
>>Please look for another error.  Run 'make' again.
>>Those are all just warnings and don't cause a build error.
> 
> 
> all output past make:
> 
> [root@gjsparc64 linux-2.6.11-rc2]# make V=1
> if test ! /usr/src/linux-2.6.11-rc2 -ef /usr/src/linux-2.6.11-rc2; then \
> /bin/bash /usr/src/linux-2.6.11-rc2/scripts/mkmakefile              \
>     /usr/src/linux-2.6.11-rc2 /usr/src/linux-2.6.11-rc2 2 6         \
>     > /usr/src/linux-2.6.11-rc2/Makefile;                                 \
>     echo '  GEN    /usr/src/linux-2.6.11-rc2/Makefile';                   \
> fi
>   CHK     include/linux/version.h
> rm -rf .tmp_versions
> mkdir -p .tmp_versions
> make -f scripts/Makefile.build obj=scripts/basic
> make -f scripts/Makefile.build obj=scripts
> make -f scripts/Makefile.build obj=scripts/genksyms
> make -f scripts/Makefile.build obj=scripts/mod
> make -f scripts/Makefile.build obj=init
>   CHK     include/linux/compile.h
> make -f scripts/Makefile.build obj=usr
> set -e; echo '  CHK     usr/initramfs_list'; mkdir -p 
> usr/; /bin/bash /usr/src/linux-2.6.11-rc2/scripts/gen_initramfs_list.sh    > 
> usr/initramfs_list.tmp; if [ -r usr/initramfs_list ] && cmp -s 
> usr/initramfs_list usr/initramfs_list.tmp; then rm -f usr/initramfs_list.tmp; 
> else echo '  UPD     usr/initramfs_list'; mv -f usr/initramfs_list.tmp 
> usr/initramfs_list; fi
>   CHK     usr/initramfs_list
> make -f scripts/Makefile.build obj=arch/sparc64/kernel
>   /usr/bin/sparc64-pld-linux-gcc -Wp,-MD,arch/sparc64/kernel/.ioctl32.o.d 
> -nostdinc -isystem /usr/lib/gcc/sparc64-pld-linux/3.4.2/include -D__KERNEL__ 
> -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
> -fno-common -ffreestanding -O2     -fomit-frame-pointer -m64 -pipe -mno-fpu 
> -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 
> -Wno-sign-compare -Wa,--undeclared-regs -finline-limit=100000 
> -Wdeclaration-after-statement  -Werror -Ifs/  -DKBUILD_BASENAME=ioctl32 
> -DKBUILD_MODNAME=ioctl32 -c -o arch/sparc64/kernel/.tmp_ioctl32.o 
> arch/sparc64/kernel/ioctl32.c
> include/asm/uaccess.h: In function `siocdevprivate_ioctl':
> fs/compat_ioctl.c:648: warning: ignoring return value of `copy_to_user', 
> declared with attribute warn_unused_result
> fs/compat_ioctl.c: In function `put_dirent32':
> fs/compat_ioctl.c:2346: warning: ignoring return value of `copy_to_user', 
> declared with attribute warn_unused_result
> fs/compat_ioctl.c: In function `serial_struct_ioctl':
> fs/compat_ioctl.c:2489: warning: ignoring return value of `copy_from_user', 
> declared with attribute warn_unused_result
> fs/compat_ioctl.c:2502: warning: ignoring return value of `copy_to_user', 
> declared with attribute warn_unused_result
> make[1]: *** [arch/sparc64/kernel/ioctl32.o] Error 1
> make: *** [arch/sparc64/kernel] Error 2
> [root@gjsparc64 linux-2.6.11-rc2]#
> 
> I have no idea what causes error here. What shall I input to get more info 
> about that error ?

It's the '-Werror' option that makes warnings become fatal
errors that is stopping you here.  You could edit
arch/sparc64/kernel/Makefile and remove/comment that for now.


-- 
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile 2.6.11-rc2 on sparc64
  2005-01-23  2:13     ` Randy.Dunlap
@ 2005-01-23  8:09       ` Grzegorz Piotr Jaskiewicz
  2005-01-23  9:08         ` Adrian Bunk
  0 siblings, 1 reply; 7+ messages in thread
From: Grzegorz Piotr Jaskiewicz @ 2005-01-23  8:09 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml

On Sunday 23 January 2005 03:13, Randy.Dunlap wrote:

> It's the '-Werror' option that makes warnings become fatal
> errors that is stopping you here.  You could edit
> arch/sparc64/kernel/Makefile and remove/comment that for now.

Thanks, I didn't noticed that.
Have built only x86_74 and i386 archs before, these don't use -Wall I guess. 
(too many warnings on different signess comparation, btw, IMO security 
problem - might be in the future).

-- 
GJ

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile 2.6.11-rc2 on sparc64
  2005-01-23  8:09       ` Grzegorz Piotr Jaskiewicz
@ 2005-01-23  9:08         ` Adrian Bunk
  0 siblings, 0 replies; 7+ messages in thread
From: Adrian Bunk @ 2005-01-23  9:08 UTC (permalink / raw)
  To: Grzegorz Piotr Jaskiewicz; +Cc: Randy.Dunlap, lkml

On Sun, Jan 23, 2005 at 09:09:16AM +0100, Grzegorz Piotr Jaskiewicz wrote:
> On Sunday 23 January 2005 03:13, Randy.Dunlap wrote:
> 
> > It's the '-Werror' option that makes warnings become fatal
> > errors that is stopping you here.  You could edit
> > arch/sparc64/kernel/Makefile and remove/comment that for now.
> 
> Thanks, I didn't noticed that.
> Have built only x86_74 and i386 archs before, these don't use -Wall I guess. 
>...

All architectures use -Wall.

> GJ

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-23  9:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23  1:38 can't compile 2.6.11-rc2 on sparc64 Grzegorz Piotr Jaskiewicz
2005-01-23  1:36 ` Randy.Dunlap
2005-01-23  1:45   ` Grzegorz Piotr Jaskiewicz
2005-01-23  1:48   ` Grzegorz Piotr Jaskiewicz
2005-01-23  2:13     ` Randy.Dunlap
2005-01-23  8:09       ` Grzegorz Piotr Jaskiewicz
2005-01-23  9:08         ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox