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

Bug 245576

Summary: sys-kernel/gentoo-sources-2.6.25-r9 - scripts/mod/empty.c:1: error: -m64 is not supported by this configuration
Product: Gentoo Linux Reporter: Lee Chen <lee.chen>
Component: [OLD] Core systemAssignee: Sparc Porters <sparc>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: Sparc64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lee Chen 2008-11-04 19:27:04 UTC
Gentoo-Sources 2.6.25-r9 build failure

scripts/mod/empty.c:1: error: -m64 is not supported by this configuration
scripts/mod/empty.c:1: error: -mlong-double-64 not allowed with -m64
scripts/mod/empty.c:1: error: -mcmodel= is not supported on 32 bit systems
make[2]: *** [scripts/mod/empty.o] Error 1

apparent configuration error

gcc + gcc64 4.1.2 / 4.2.4 / 4.3.1 / 4.3.2 all result in the same error at compile time

CFLAGS="-pipe" & CFLAGS="" also attempted -> same error

Reproducible: Always

Steps to Reproduce:
1.make oldconfig (or make menuconfig)
2.make image
3.note failure messages on empty.c

os-headers 2.6.26 (linux-headers) along with glibc recompile results in same error
Actual Results:  
scripts/mod/empty.c:1: error: -m64 is not supported by this configuration
scripts/mod/empty.c:1: error: -mlong-double-64 not allowed with -m64
scripts/mod/empty.c:1: error: -mcmodel= is not supported on 32 bit systems
make[2]: *** [scripts/mod/empty.o] Error 1

Expected Results:  
kernel build success

Portage 2.1.5.6 (default-linux/sparc/sparc64/2007.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.23-gentoo-r9 sparc64)
=================================================================
System uname: 2.6.23-gentoo-r9 sparc64 sun4u
Timestamp of tree: Tue, 04 Nov 2008 18:30:16 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
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.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="sparc ~sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-Os -mcpu=ultrasparc -mtune=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /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="-Os -mcpu=ultrasparc -mtune=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j13"
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="7zip apache2 bzip2 cli cracklib cups dbm dri fortran ftp fuse gdbm gpm hash iconv jpeg kde mudflap mysql mysqli nntp nptl nptlonly openmp pam pcre php png ppds pppd procmail qt qt4 reflection samba session sockets sparc spl ssl syslog tcpd threads truetype unicode vhosts virtual-users xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 r128 suncg6 suncg14 sunffb v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2008-11-05 01:28:46 UTC
Unfortunately, you have to build with:
CROSS_COMPILE=sparc64-unknown-linux-gnu-
(make CROSS_COMPILE=sparc64-unknown-linux-gnu- ....)
Did you try that?
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2008-11-06 09:35:43 UTC
Yeah, its a dupe.

*** This bug has been marked as a duplicate of bug 214765 ***