Trouble building kernel

Sergey Tikhonov tsv at solvo.ru
Fri Jul 22 14:20:00 UTC 2005



Samad, Alex wrote:

> Hi
>
>  
>
> Yep gcc 4, that's the only one I found at the repository...
>
>  
>
> Do you know what was used to make kernel-smp-2.6.11-1.1180axp_FC3 ? or 
> which version of gcc do yo use 3.?
>
The main compiler for AC 1.0 is gcc 3.4. gcc 4.x is the main compiler 
for "devel" (aka AC 2.0 or what ever it will be) repository. You should 
you gcc from AC1.0 distribution and it was used to build the kernel.

I got new kernel (2.6.12-something) from FC4 compiled by gcc 4.x, but 
like I said - I've never tried to boot it. :)
I tried to build vanila kernel (from kernel.org) with gcc 4.x, but I had 
problems with new version of udev during boot.
So far I didn't have time to figure out what the problem is.

Regards,

>  
>
> thanks
>
>  
>
> ------------------------------------------------------------------------
>
> From: axp-list-bounces at redhat.com [mailto:axp-list-bounces at redhat.com] 
> On Behalf Of Sergey Tikhonov
> Sent: Friday, 22 July 2005 4:32 AM
> To: Linux on Alpha processors
> Subject: Re: Trouble building kernel
>
>  
>
> Hi,
>
> What compiler do you use? I guess gcc 4.x?
> There were issues with include/asm/system.h and gcc 4.x. As far as I 
> understood - it is optimiser that doesn't remove "dead" code (which in 
> its turn would be activated if passed pointer in not properly aligned 
> or points to correct data with allowed size). In my test kernel I just 
> commented out that statement in the header. Frankly speaking, I have 
> not tried to run a kernel compiled with gcc 4.x.
>
> Regards,
>
> Samad, Alex wrote:
>
> Hi
>
> Seem to be having some problem rebuilding the kernel from source, 
> doing this because of the ipv6 and the netfilter module issues!
>
> I have this package installed
>
> kernel-smp-devel-2.6.11-1.1180axp_FC3
>
> and I get this error
>
>  
>
> fs/ext3/acl.c: In function 'ext3_set_acl':
>
> fs/ext3/acl.c:229: warning: 'size' may be used uninitialized in this 
> function
>
> fs/isofs/namei.c: In function 'isofs_lookup':
>
> fs/isofs/namei.c:171: warning: 'offset' may be used uninitialized in 
> this function
>
> fs/isofs/namei.c:171: warning: 'block' may be used uninitialized in 
> this function
>
> lib/zlib_inflate/inftrees.c: In function 'huft_build':
>
> lib/zlib_inflate/inftrees.c:121: warning: 'r.base' may be used 
> uninitialized in this function
>
> net/ipv4/netfilter/ip_conntrack_core.c: In function 'ip_conntrack_in':
>
> net/ipv4/netfilter/ip_conntrack_core.c:612: warning: 'set_reply' may 
> be used uninitialized in this function
>
> drivers/scsi/aic7xxx/aic7xxx_osm.c: In function 'ahc_linux_register_host':
>
> drivers/scsi/aic7xxx/aic7xxx_osm.c:1732: warning: ignoring return 
> value of 'scsi_add_host', declared with attribute warn_unused_result
>
>   CHK     include/linux/compile.h
>
>   UPD     include/linux/compile.h
>
> kernel/built-in.o(.text+0x9e50): In function `__xchg':
>
> include/asm/system.h:459: undefined reference to 
> `__xchg_called_with_bad_pointer'
>
> kernel/built-in.o(.text+0x9e54):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> kernel/built-in.o(.text+0x2374c):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> kernel/built-in.o(.text+0x23750):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> fs/built-in.o(.text+0x22374): In function `__xchg':
>
> include/asm/system.h:459: undefined reference to 
> `__xchg_called_with_bad_pointer'
>
> fs/built-in.o(.text+0x22378):include/asm/system.h:459: more undefined 
> references to `__xchg_called_with_bad_pointer' follow
>
> drivers/built-in.o(.text+0x44210): In function `__cmpxchg':
>
> include/asm/system.h:610: undefined reference to 
> `__cmpxchg_called_with_bad_pointer'
>
> drivers/built-in.o(.text+0x44214):include/asm/system.h:610: undefined 
> reference to `__cmpxchg_called_with_bad_pointer'
>
> net/built-in.o(.text+0x310c): In function `__xchg':
>
> include/asm/system.h:459: undefined reference to 
> `__xchg_called_with_bad_pointer'
>
> net/built-in.o(.text+0x3110):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> net/built-in.o(.text+0x28c08):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> net/built-in.o(.text+0x28c0c):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> net/built-in.o(.text+0x8272c):include/asm/system.h:459: undefined 
> reference to `__xchg_called_with_bad_pointer'
>
> net/built-in.o(.text+0x82730):include/asm/system.h:459: more undefined 
> references to `__xchg_called_with_bad_pointer' follow
>
> make: *** [.tmp_vmlinux1] Error 1
>
> error: Bad exit status from /var/tmp/rpm-tmp.89997 (%build)
>
>  
>
> Thought I would hit the list before I tried to confuse myself intrying 
> to decipher.
>
> Thanks
>
> 
>
>
>
>------------------------------------------------------------------------
>
>
> 
>
>_______________________________________________
>
>axp-list mailing list
>
>axp-list at redhat.com <mailto:axp-list at redhat.com>
>
>https://www.redhat.com/mailman/listinfo/axp-list
>
>
>
>-- 
>
>---
>
>Sergey Tikhonov
>
>Solvo Ltd.
>
>tsv at solvo.ru <mailto:tsv at solvo.ru>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>axp-list mailing list
>axp-list at redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list
>

-- 
---
Sergey Tikhonov
Solvo Ltd.
tsv at solvo.ru

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/axp-list/attachments/20050722/201d44f4/attachment.htm>


More information about the axp-list mailing list