Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 192973

Summary: gentoo-sources-2.6.22-r5 does not produce a static kernel on sparc
Product: Gentoo Linux Reporter: Konstantin Agouros <elwood>
Component: [OLD] Core systemAssignee: Sparc Porters <sparc>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Kernel .config file for this

Description Konstantin Agouros 2007-09-18 21:06:04 UTC
I tried moving from sparc-sources to gentoo-sources however the kernel that results is not static, and thus elftoaout can not convert it.

Reproducible: Always

Steps to Reproduce:
1.build kernel
2.
3.

Actual Results:  
# file vmlinux
vmlinux: ELF 32-bit MSB relocatable, SPARC, version 1 (SYSV), not stripped

instead of  statically linked, not stripped

Is this a problem on sparc32 or am I doing something wrong here?
Comment 1 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-10-19 10:38:49 UTC
I wasn't able to reproduce it in sparc64 using gentoo-sources-2.6.22-r5 (the image is statically linked). I will build a sparc32 chroot and see what happen there.

@Konstantin:
Can you provide your emerge --info, version of gentoo-sources you are using and steps you did to compile the kernel?

Thanks
Comment 2 Konstantin Agouros 2007-10-19 10:47:21 UTC
Portage 2.1.2.12 (default-linux/sparc/sparc32/2006.1, gcc-3.4.6, glibc-2.3.6-r5, 2.4.34-sparc-grsec sparc)
=================================================================
System uname: 2.4.34-sparc-grsec sparc sun4m
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 18 Oct 2007 16:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="sparc"
CBUILD="sparc-sun4m-linux-gnu"
CFLAGS="-mcpu=v8 -O3 -pipe"
CHOST="sparc-sun4m-linux-gnu"
CONFIG_PROTECT="/etc /etc/tomcat"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb bitmap-fonts cli cracklib crypt cups dri emboss fbcon gdbm gif gstreamer iconv ipv6 isdnlog jpeg libwww midi mudflap ncurses nls openmp oss pam pcre perl png pppd python readline reflection session sparc spell spl ssl tcpd xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev sunbw2 suncg14 suncg3 suncg6 sunffb sunleo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Konstantin Agouros 2007-10-19 10:49:46 UTC
Created attachment 133888 [details]
Kernel .config file for this

This is the .config I am using to build the kernel in this way.
Comment 4 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-10-19 11:38:00 UTC
@Konstantin:

BTW, 32-bits systems are no longer supported by Gentoo/Sparc (as you can read in the faq[1]), so I'm going to close the bug as INVALID. Anyway, I will end my test in the chroot and give it a look. After that I'll mail you with my results.

You can reach me at yoswink@g.o. Good luck.

[1] http://www.gentoo.org/doc/en/gentoo-sparc-faq.xml