Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 2.6.25 compile error "-m64" ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
afrycze
n00b
n00b


Joined: 12 Oct 2007
Posts: 6

PostPosted: Fri Jun 13, 2008 7:39 am    Post subject: Kernel 2.6.25 compile error "-m64" ? Reply with quote

Hello.

I'm trying to compile kernel 2.6.25 and i get the folowing error:

Code:
ariadna linux # make
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CC      arch/sparc64/kernel/asm-offsets.s
arch/sparc64/kernel/asm-offsets.c:1: error: -m64 is not supported by this configuration
arch/sparc64/kernel/asm-offsets.c:1: error: -mlong-double-64 not allowed with -m64
arch/sparc64/kernel/asm-offsets.c:1: error: -mcmodel= is not supported on 32 bit systems
make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


i tried linux-2.6.25-gentoo-r4 and linux-2.6.25-gentoo-r3 - problem is the same.

Till now i had no problems compiling kernels.

At the moment i'm running 2.6.24-gentoo-r5 (it still compiles without problems)

Code:
ariadna linux # uname -a
Linux ariadna 2.6.24-gentoo-r5 #2 SMP Fri Apr 18 14:44:21 CEST 2008 sparc64 sun4u TI UltraSparc IIi (Sabre) GNU/Linux


here's the image i'm running:
Code:
ariadna linux # file /boot/image-2.6.24-gentoo-r5
/boot/image-2.6.24-gentoo-r5: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), statically linked, not stripped


i didn't changed anything in make conf. (2.6.24 compiles, 2.6.25 don't)

here is some info from my system:
Code:
ariadna linux # emerge --info
Portage 2.1.5.5 (default-linux/sparc/sparc64/2007.0/server, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r5 sparc64)
=================================================================
System uname: 2.6.24-gentoo-r5 sparc64 sun4u
Timestamp of tree: Fri, 13 Jun 2008 07:00:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.62
sys-devel/automake:  1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="sparc ~sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.easynet.nl/mirror/gentoo/"
LDFLAGS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa apache2 bzlib cli cracklib crypt cups dri fortran gdbm gpm iconv imap isdnlog maildir mailwrapper midi mudflap ncurses nptl nptlonly offensive openmp pcre ppds pppd readline reflection session sparc spl ssl unicode 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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 glint mach64 mga r128 radeon sunbw2 suncg14 suncg3         suncg6 sunffb sunleo tdfx v4l voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

ariadna linux #


Code:
ariadna linux # gcc -v
Using built-in specs.
Target: sparc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/configure --prefix=/usr --bindir=/usr/sparc-unknown-linux-gnu/gcc-bin/4.2.4 --includedir=/usr/lib/gcc/sparc-unknown-linux-gnu/4.2.4/include --datadir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.2.4 --mandir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.2.4/man --infodir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.2.4/info --with-gxx-include-dir=/usr/lib/gcc/sparc-unknown-linux-gnu/4.2.4/include/g++-v4 --host=sparc-unknown-linux-gnu --build=sparc-unknown-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.2.4 (Gentoo 4.2.4 p1.0)
ariadna linux #


Code:
ariadna linux # cat /etc/make.conf
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"

ACCEPT_KEYWORDS="~sparc"

USE="-X -kde -gnome -gtk -gtk2 -sdl -pam acpi alsa apache2 bzlib crypt imap maildir ncurses offensive readline ssl zlib -ldap -mysql -snmp -truetype"

GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.easynet.nl/mirror/gentoo/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"

MAKEOPTS="-j1"
AUTOCLEAN="yes"
CCACHE_SIZE="512M"


Can anyone help me get new kernel working please? :)
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 605
Location: Munich, Germany

PostPosted: Fri Jun 13, 2008 8:16 am    Post subject: Reply with quote

Hi,

instead
Code:
make
you need to do
Code:
make CROSS_COMPILE=sparc64-unknown-linux-gnu-


For more information see: http://bugs.gentoo.org/show_bug.cgi?id=214765
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
afrycze
n00b
n00b


Joined: 12 Oct 2007
Posts: 6

PostPosted: Fri Jun 13, 2008 10:36 am    Post subject: Reply with quote

Thank you very much.
It helped.
(i never had to use any options for make before)
Back to top
View user's profile Send private message
jonathanross
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2005
Posts: 77
Location: Planet Earth

PostPosted: Sun Sep 07, 2008 3:39 pm    Post subject: Reply with quote

Hi all,

Sorry for being dim.

I can't get the bootable image working for newer kernels. The SPARC handbook hasn't been updated it seems.

I've tried:
Code:

make CROSS_COMPILE=sparc64-unknown-linux-gnu-

and
Code:
make CROSS_COMPILE=sparc64-unknown-linux-gnu- && make image modules_install


but I'm not getting my familiar image file so that I can copy it to /boot/ as usual with:
Code:

cp arch/sparc64/boot/image /boot/<kernel-version


Do I need a holiday ? Is it still really easy with the CROSS_COMPILE option ?

Many thanks,

JR :wink:
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 605
Location: Munich, Germany

PostPosted: Sun Sep 07, 2008 5:10 pm    Post subject: Reply with quote

jonathanross wrote:
Code:
make CROSS_COMPILE=sparc64-unknown-linux-gnu- && make image modules_install

You also need to specify CROSS_COMPILE when making tragets other than all, eg:
Code:
make CROSS_COMPILE=sparc64-unknown-linux-gnu- && make CROSS_COMPILE=sparc64-unknown-linux-gnu- image modules_install

_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
jonathanross
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2005
Posts: 77
Location: Planet Earth

PostPosted: Sun Sep 07, 2008 6:10 pm    Post subject: Reply with quote

Thanks very much :D

That's greatly appreciated. I'll give it a go.

JR
Back to top
View user's profile Send private message
fizik
n00b
n00b


Joined: 16 Apr 2008
Posts: 6

PostPosted: Thu Nov 27, 2008 4:08 pm    Post subject: CROSS_COMPILE parameter is not working for me Reply with quote

after copying new 2.6.25-r8 kernel to /boot and booting I'm getting message - unknown e2fs error. Kernel 2.6.24-r7 from LiveCD booting fine (I copied it from LiveCD and described in SILO)
Back to top
View user's profile Send private message
JCampy
n00b
n00b


Joined: 26 Feb 2006
Posts: 16

PostPosted: Thu Nov 27, 2008 5:47 pm    Post subject: Reply with quote

Have you run e2fsck on the device? E.g., e2fsck /dev/sda1
Back to top
View user's profile Send private message
fizik
n00b
n00b


Joined: 16 Apr 2008
Posts: 6

PostPosted: Thu Nov 27, 2008 9:15 pm    Post subject: Reply with quote

really my / is sda1 with ext3. /boot is not separate partition. It's freshly installed Gentoo, no disk errors. AND other kernel from the same /boot is working. I compiled kernel several times. The same size, I overwrite old file to a new one. No result...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum