Re: Kernel serie 2.6 compilation error on sparc64

2004-08-10 Thread Antonio Luiz Pacifico



Antonio Luiz Pacifico [EMAIL PROTECTED] wrote:

 

Some days ago I related that kernel source 2.6.7 was with erros during 
the compilation.

David S. Miller answered to try 2.6.8-rc3.
I did. But the compilation failled again.
   



How did it fail with 2.6.8-rc3?  With arch/sparc64/defconfig
it compiles perfectly for me.

Please don't say it failed again, show us exactly how.

I use current 2.6.x kernels on all of my machines here
for kernel development, and they work just fine.  Build
failures are usually from deviations from arch/sparc64/defconfig
or similar, so you have to show the exact failure and
(as you happily did) list your configuration as well.
 


OK, I tried... What I did was:
1. Download kernel 2.6.7 source;
2. Download patch-2.6.8-rc4;
3. Unzip the kernel;
4. Applied the patch doing: bzip2 -dc /usr/src/patch... | patch -p1;
5. put my .config file in the /usr/src/linux-2.6.7 directory;
6. run make menuconfig and saw that everthing was OK;
8. run make.

The error messages during the processes were:
drivers/char/rtc.c:882: warning: `rtc_int_handler_ptr' defined but not used
drivers/char/drm/ffb_drv.c:225: warning: `ffb_count_card_instances' 
defined but not used

drivers/serial/sunsab.c: In function `receive_chars':
drivers/serial/sunsab.c:150: warning: statement with no effect
drivers/usb/gadget/net2280.c:478:2: warning: #warning Using 
dma_alloc_coherent even with buffers smaller than a page.

drivers/usb/gadget/net2280.c: In function `net2280_alloc_buffer':
drivers/usb/gadget/net2280.c:479: warning: implicit declaration of 
function `dma_alloc_coherent'
drivers/usb/gadget/net2280.c:480: warning: assignment makes pointer from 
integer without a cast

drivers/usb/gadget/net2280.c: In function `net2280_free_buffer':
drivers/usb/gadget/net2280.c:502: warning: implicit declaration of 
function `dma_free_coherent'

drivers/usb/gadget/net2280.c: In function `net2280_probe':
drivers/usb/gadget/net2280.c:2727: warning: unused variable `buf'
drivers/usb/gadget/net2280.c:478:2: warning: #warning Using 
dma_alloc_coherent even with buffers smaller than a page.

net/sctp/sm_make_chunk.c: In function `sctp_process_init':
net/sctp/sm_make_chunk.c:1857: warning: cast to pointer from integer of 
different size

net/sctp/socket.c: In function `sctp_id2assoc':
net/sctp/socket.c:199: warning: cast from pointer to integer of 
different size

drivers/built-in.o(.text+0x813f4): In function `net2280_alloc_buffer':
: undefined reference to `dma_alloc_coherent'
drivers/built-in.o(.text+0x81454): In function `net2280_free_buffer':
: undefined reference to `dma_free_coherent'
make: ** [.tmp_vmlinux1] Erro 1

Attached I sent my .config file named config-2.6.7

So... What am I setting up that it was not supposed to do? Please, let 
me know.


Also I would like to aknowledge your help.

Best regards,

Antonio Luiz Pacifico

PS: Of course, I looked at arch/sparc64/defconfig. I saw there are lots 
of things different from my .config...
#
# Automatically generated make config: don't edit
#
CONFIG_64BIT=y
CONFIG_MMU=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_STANDALONE=y
CONFIG_BROKEN_ON_SMP=y

#
# General setup
#
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_HOTPLUG is not set
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# General setup
#
# CONFIG_BBC_I2C is not set
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_CPU_FREQ is not set
CONFIG_SPARC64=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_SBUS=y
CONFIG_SBUSCHAR=y
CONFIG_SUN_AUXIO=y
CONFIG_SUN_IO=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_RTC=y
# CONFIG_PCI_LEGACY_PROC is not set
CONFIG_PCI_NAMES=y
CONFIG_SUN_OPENPROMFS=m
CONFIG_SPARC32_COMPAT=y
CONFIG_COMPAT=y
CONFIG_UID16=y
CONFIG_BINFMT_ELF32=y
# CONFIG_BINFMT_AOUT32 is not set
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
# CONFIG_SUNOS_EMUL is not set
# CONFIG_SOLARIS_EMUL is not set

#
# Parallel port support
#
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_SUNBPP is not set
# CONFIG_PARPORT_OTHER is not set
# CONFIG_PARPORT_1284 is not set
CONFIG_PRINTER=y
# CONFIG_ENVCTRL is not set
# CONFIG_DISPLAY7SEG is not set
# CONFIG_CMDLINE_BOOL is not set

#
# Generic Driver Options
#

#
# Graphics support
#
CONFIG_FB=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_BW2 is not set
# 

Re: Kernel serie 2.6 compilation error on sparc64

2004-08-10 Thread David S. Miller
On Tue, 10 Aug 2004 11:30:24 -0300
Antonio Luiz Pacifico [EMAIL PROTECTED] wrote:

 drivers/usb/gadget/net2280.c: In function `net2280_alloc_buffer':
 drivers/usb/gadget/net2280.c:479: warning: implicit declaration of 
 function `dma_alloc_coherent'

The USB gadget layer is not supported currently, simply remove
it from your configuration.



Kernel serie 2.6 compilation error on sparc64

2004-08-09 Thread Antonio Luiz Pacifico
Some days ago I related that kernel source 2.6.7 was with erros during 
the compilation.

David S. Miller answered to try 2.6.8-rc3.
I did. But the compilation failled again.
So I decided to come back to kernel 2.6.6. In fact this kernel and his 
predecesor, 2.6.5, fail on the following item (at the end of the make 
process):


dirvers/built-in.o(.text+0x7c634): In function 'net2280_alloc_buffer':
:undefined reference to 'dma_alloc_coherent'
dirvers/built-in.o(.text+0x7c694): In function 'net2280_alloc_buffer':
:undefined reference to 'dma_alloc_coherent'
make: **[.tmp_vmlinux1] Erro 1

Considering these problems, I ask: Is the kernel 2.6 serie well mature 
to sparc64? Is it better to use the Debian kernel source with its 
patchs? Had someone had these problems I am describing here? Am I doing 
something wrong? (please, see the .config file)


Follow my .config file:

#
# Automatically generated make config: don't edit
#
CONFIG_64BIT=y
CONFIG_MMU=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_STANDALONE=y
CONFIG_BROKEN_ON_SMP=y

#
# General setup
#
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_HOTPLUG is not set
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# General setup
#
# CONFIG_BBC_I2C is not set
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_CPU_FREQ is not set
CONFIG_SPARC64=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_SBUS=y
CONFIG_SBUSCHAR=y
CONFIG_SUN_AUXIO=y
CONFIG_SUN_IO=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_RTC=y
# CONFIG_PCI_LEGACY_PROC is not set
CONFIG_PCI_NAMES=y
CONFIG_SUN_OPENPROMFS=m
CONFIG_SPARC32_COMPAT=y
CONFIG_COMPAT=y
CONFIG_UID16=y
CONFIG_BINFMT_ELF32=y
# CONFIG_BINFMT_AOUT32 is not set
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
# CONFIG_SUNOS_EMUL is not set
# CONFIG_SOLARIS_EMUL is not set

#
# Parallel port support
#
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_SUNBPP is not set
# CONFIG_PARPORT_OTHER is not set
# CONFIG_PARPORT_1284 is not set
CONFIG_PRINTER=y
# CONFIG_ENVCTRL is not set
# CONFIG_DISPLAY7SEG is not set
# CONFIG_CMDLINE_BOOL is not set

#
# Generic Driver Options
#

#
# Graphics support
#
CONFIG_FB=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_BW2 is not set
# CONFIG_FB_CG3 is not set
# CONFIG_FB_CG6 is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON_OLD is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
CONFIG_FB_SBUS=y
CONFIG_FB_FFB=y
# CONFIG_FB_TCX is not set
# CONFIG_FB_CG14 is not set
# CONFIG_FB_P9100 is not set
# CONFIG_FB_LEO is not set
# CONFIG_FB_PCI is not set
# CONFIG_FB_VIRTUAL is not set

#
# Console display driver support
#
# CONFIG_MDA_CONSOLE is not set
CONFIG_PROM_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_PCI_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_SUN8x16=y
# CONFIG_FONT_SUN12x22 is not set

#
# Logo configuration
#
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
# CONFIG_LOGO_LINUX_CLUT224 is not set
CONFIG_LOGO_SUN_CLUT224=y

#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_SUNCORE=y
# CONFIG_SERIAL_SUNZILOG is not set
# CONFIG_SERIAL_SUNSU is not set
CONFIG_SERIAL_SUNSAB=y
CONFIG_SERIAL_SUNSAB_CONSOLE=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y

#
# Misc Linux/SPARC drivers
#
CONFIG_SUN_OPENPROMIO=m
CONFIG_SUN_MOSTEK_RTC=y
CONFIG_OBP_FLASH=m
# CONFIG_SUN_BPP is not set
# CONFIG_SUN_VIDEOPIX is not set
# CONFIG_SUN_AURORA is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_CARMEL is not set
# CONFIG_BLK_DEV_RAM is not set

#
# ATA/ATAPI/MFM/RLL support
#
# CONFIG_IDE is not set

#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, 

Re: Kernel serie 2.6 compilation error on sparc64

2004-08-09 Thread David S. Miller
On Mon, 09 Aug 2004 19:23:59 -0300
Antonio Luiz Pacifico [EMAIL PROTECTED] wrote:

 Some days ago I related that kernel source 2.6.7 was with erros during 
 the compilation.
 David S. Miller answered to try 2.6.8-rc3.
 I did. But the compilation failled again.

How did it fail with 2.6.8-rc3?  With arch/sparc64/defconfig
it compiles perfectly for me.

Please don't say it failed again, show us exactly how.

I use current 2.6.x kernels on all of my machines here
for kernel development, and they work just fine.  Build
failures are usually from deviations from arch/sparc64/defconfig
or similar, so you have to show the exact failure and
(as you happily did) list your configuration as well.

Thanks.