View previous topic :: View next topic |
Author |
Message |
mythdraug n00b
Joined: 17 Feb 2004 Posts: 3
|
Posted: Tue Oct 26, 2004 9:02 pm Post subject: GCC compile error installing on [b]32 bit only[/b] Ultra 1 |
|
|
Yes, that is right.. this is one of those few Ultra1's that is not capable of being 64bit.
I'm getting the following error attempting to emerge system
Code: | gcc /var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.S -c -I../include -I. -I/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu -I.. -I../libio -I/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere -I../sysdeps/sparc/sparc32/elf -I../linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32 -I../linuxthreads/sysdeps/unix/sysv/linux/sparc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/sparc/sparc32 -I../linuxthreads/sysdeps/sparc -I../sysdeps/unix/sysv/linux/sparc/sparc32 -I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32/fpu -I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/sparc/sparc32/soft-fp -I../sysdeps/sparc/fpu -I../sysdeps/sparc -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.4/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -D__ASSEMBLY__ -Wa,--noexecstack -g0 -fPIC -fPIC -o /var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.o
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.o
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crti.S: Assembler messages:
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crti.S:25: Error: Architecture mismatch on "be,pn %icc,.LL3".
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crti.S:25: (Requires v9|v9a|v9b; requested architecture is sparclite.)
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crti.S:31: Error: Architecture mismatch on "return".
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crti.S:31: (Requires v9|v9a|v9b; requested architecture is sparclite.)
make[2]: *** [/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crti.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.S: Assembler messages:
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.S:8: Error: Architecture mismatch on "return".
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.S:8: (Requires v9|v9a|v9b; requested architecture is sparclite.)
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.S:15: Error: Architecture mismatch on "return".
/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.S:15: (Requires v9|v9a|v9b; requested architecture is sparclite.)
make[2]: *** [/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/csu/crtn.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2'
make: *** [all] Error 2
!!! ERROR: sys-libs/glibc-2.3.3.20040420-r2 failed.
!!! Function src_compile, Line 592, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message |
My /etc/make.conf
Code: | # These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2"
CHOST="sparc-unknown-linux-gnu"
CXXFLAGS="-O2"
MAKEOPTS="-j2"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo"
USE="-gtk -gnome -qt -kde -dvd -cdr -java ultra1"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"
CXXFLAGS="${CFLAGS}" |
And for the curious... prtconf -pv
Code: |
System Configuration: Sun Microsystems sun4u
Memory size: 704 Megabytes
System Peripherals (PROM Nodes):
Node 0xf0029588
idprom: 01800800.207b833b.00000000.7b833ba9.00000000.00000000.00000000.00000000
reset-reason: 'B-POR'
breakpoint-trap: 0000007f
#size-cells: 00000002
energystar-v2:
model: 'SUNW,501-3082'
name: 'SUNW,Ultra-1'
clock-frequency: 04fa1be0
banner-name: 'Sun Ultra 1 SBus (UltraSPARC 167MHz)'
device_type: 'upa'
Node 0xf002c7a4
name: 'packages'
Node 0xf0035cb0
iso6429-1983-colors:
name: 'terminal-emulator'
Node 0xf0038a1c
disk-write-fix:
name: 'deblocker'
Node 0xf00390e0
name: 'obp-tftp'
Node 0xf0042d10
name: 'disk-label'
Node 0xf002c814
stdout: fffe8700
stdin: fffe8510
mmu: fffea438
memory: fffea638
bootargs: 00
bootpath: '/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@6,0:f'
gateway-ip: 00000000
server-ip: 00000000
client-ip: 00000000
stdout-#lines: ffffffff
name: 'chosen'
Node 0xf002c880
version: 'OBP 3.0.2 1995/11/26 17:52'
model: 'SUNW,3.0'
decode-complete:
aligned-allocator:
relative-addressing:
name: 'openprom'
Node 0xf002c910
name: 'client-services'
Node 0xf002c9b8
tpe-link-test?: 'true'
scsi-initiator-id: '7'
keyboard-click?: 'false'
keymap:
ttyb-rts-dtr-off: 'false'
ttyb-ignore-cd: 'true'
ttya-rts-dtr-off: 'false'
ttya-ignore-cd: 'true'
ttyb-mode: '9600,8,n,1,-'
ttya-mode: '9600,8,n,1,-'
sbus-probe-list: '012'
mfg-mode: 'off '
diag-level: 'max'
#power-cycles: '174'
system-board-serial#: '5013084024327'
system-board-date:
fcode-debug?: 'false'
output-device: 'screen'
input-device: 'keyboard'
load-base: '16384'
boot-command: 'boot'
auto-boot?: 'false'
watchdog-reboot?: 'false'
diag-file:
diag-device: 'net'
boot-file:
boot-device: 'disk'
local-mac-address?: 'false'
ansi-terminal?: 'true'
screen-#columns: '80'
screen-#rows: '34'
silent-mode?: 'false'
use-nvramrc?: 'false'
nvramrc:
security-mode: 'none'
security-password:
security-#badlogins: '0'
oem-logo:
oem-logo?: 'false'
oem-banner:
oem-banner?: 'false'
hardware-revision:
last-hardware-update:
diag-switch?: 'false'
name: 'options'
Node 0xf002ca28
screen: '/sbus@1f,0/cgsix@2,0'
net-aui: '/sbus/ledma@e,8400010:aui/le@e,8c00000'
net-tpe: '/sbus/ledma@e,8400010:tpe/le@e,8c00000'
net: '/sbus/ledma@e,8400010/le@e,8c00000'
disk: '/sbus/espdma@e,8400000/esp@e,8800000/sd@0,0'
cdrom: '/sbus/espdma@e,8400000/esp@e,8800000/sd@6,0:f'
tape: '/sbus/espdma@e,8400000/esp@e,8800000/st@4,0'
tape1: '/sbus/espdma@e,8400000/esp@e,8800000/st@5,0'
tape0: '/sbus/espdma@e,8400000/esp@e,8800000/st@4,0'
disk6: '/sbus/espdma@e,8400000/esp@e,8800000/sd@6,0'
disk5: '/sbus/espdma@e,8400000/esp@e,8800000/sd@5,0'
disk4: '/sbus/espdma@e,8400000/esp@e,8800000/sd@4,0'
disk3: '/sbus/espdma@e,8400000/esp@e,8800000/sd@3,0'
disk2: '/sbus/espdma@e,8400000/esp@e,8800000/sd@2,0'
disk1: '/sbus/espdma@e,8400000/esp@e,8800000/sd@1,0'
disk0: '/sbus/espdma@e,8400000/esp@e,8800000/sd@0,0'
scsi: '/sbus/espdma@e,8400000/esp@e,8800000'
floppy: '/sbus/SUNW,fdtwo'
ttyb: '/sbus/zs@f,1100000:b'
ttya: '/sbus/zs@f,1100000:a'
keyboard!: '/sbus/zs@f,1000000:forcemode'
keyboard: '/sbus/zs@f,1000000'
name: 'aliases'
Node 0xf004e8e8
reg: 00000000.00000000.00000000.04000000.00000000.10000000.00000000.08000000.00000000.20000000.00000000.10000000.00000000.30000000.00000000.10000000
available: 00000000.3ff00000.00000000.00038000.00000000.20000000.00000000.1fefe000.00000000.10000000.00000000.08000000.00000000.00000000.00000000.04000000
name: 'memory'
Node 0xf004eec8
translations: 00000000.fffe0000.00000000.00010000.80000000.3ff700b6.00000000.fffda000.00000000.00006000.80000000.3ff620b6.00000000.fffd8000.00000000.00002000.800001ff.f110008e.00000000.fffcc000.00000000.00008000.800001fe.0000008e.00000000.fffc4000.00000000.00008000.80000000.3ff580b6.00000000.fffc2000.00000000.00002000.800001fe.0000208e.00000000.fffc0000.00000000.00002000.800001fe.0000208e.00000000.fffbe000.00000000.00002000.800001fe.0000208e.00000000.fffbc000.00000000.00002000.800001ff.f120008e.00000000.fffba000.00000000.00002000.800001ff.f120008e.00000000.fffb8000.00000000.00002000.800001ff.f130008e.00000000.fffb6000.00000000.00002000.800001ff.f190008e.00000000.fffb4000.00000000.00002000.80000000.3fefe0b6.00000000.fffb2000.00000000.00002000.80000000.3ff600b6.00000000.fffb0000.00000000.00002000.800001ff.f100008e.00000000.fffae000.00000000.00002000.800001ff.f140008e.00000000.fffac000.00000000.00002000.800001ff.e840008e.00000000.fffaa000.00000000.00002000.800001ff.e880008e.00000000.fffa6000.00000000.00004000.80000000.3ff4a0b6.00000000.fff9c000.00000000.00002000.80000000.3ff560b6.00000000.fff9a000.00000000.00002000.800001ff.2030008e.00000000.fff98000.00000000.00002000.800001ff.2070008e.00000000.fff96000.00000000.00002000.800001ff.2028008e.00000000.fff86000.00000000.00010000.80000000.3ff3a0b6.00000000.f0084000.00000000.00002000.80000000.3ff380b6.00000000.f0082000.00000000.00002000.80000000.3ff520b6.00000000.f0080000.00000000.00002000.80000000.3ff540b6.00000000.f0000000.00000000.00080000.80000000.3ff800b6.00000000.00400000.00000000.00400000.80000000.00000036
existing: 00000000.00000000.00000800.00000000.fffff800.00000000.00000800.00000000
available: fffff800.00000000.000007fc.00000000.00000001.00000000.000007ff.00000000.00000000.ffff0000.00000000.0000e000.00000000.00000000.00000000.f0000000.00000000.fff9e000.00000000.00008000.00000000.f0800000.00000000.0f786000
page-size: 00002000
name: 'virtual-memory'
Node 0xf00592dc
address: fffc3c00.fffc1860.fffbf060
interrupts: 000007f0.000007f1
reg: 000001fe.00003c00.00000000.00000020.000001fe.00003860.00000000.00000010.000001fe.00003060.00000000.00000010
name: 'counter-timer'
Node 0xf00598b0
scsi-initiator-id: 00000007
version#: 00000001
implementation#: 00000000
address: fffcc000
interrupts: 000007f4.000007f5.000007f6.000007e5.000007ea.000007f7
ranges: 00000000.00000000.000001ff.00000000.10000000.00000001.00000000.000001ff.10000000.10000000.00000002.00000000.000001ff.20000000.10000000.00000003.00000000.000001ff.30000000.10000000.0000000d.00000000.000001ff.d0000000.10000000.0000000e.00000000.000001ff.e0000000.10000000.0000000f.00000000.000001ff.f0000000.10000000
reg: 000001fe.00000000.00000000.00008000
slot-address-bits: 0000001c
up-burst-sizes: 0078007f
burst-sizes: 00f8007f
device_type: 'sbus'
name: 'sbus'
model: 'SUNW,sysio'
thermal-interrupt:
bus-parity-generated:
upa-portid: 0000001f
clock-frequency: 017d7840
Node 0xf0059d28
internal-loopback:
dma-model: 'apcdma'
interrupts: 00000024
reg: 0000000d.0c000000.00000200
name: 'SUNW,CS4231'
Node 0xf0059e34
address: fffb6000
reg: 0000000f.01900000.00000001
name: 'auxio'
Node 0xf0059ec4
version: 4f425020.332e302e.32203139.39352f31.312f3236.2031373a.35320050.4f535420.322e302e.34203139.39352f30.392f3138.2030333a.353900
model: 'SUNW,525-1448'
reg: 0000000f.00000000.00080000.0000000f.01380000.00080000
name: 'flashprom'
Node 0xf0059f8c
device_type: 'block'
interrupts: 00000029
reg: 0000000f.01400000.00000008
name: 'SUNW,fdtwo'
Node 0xf005a0c0
address: fffba000
reg: 0000000f.01200000.00002000
model: 'mk48t59'
name: 'eeprom'
Node 0xf005a174
port-b-ignore-cd:
port-a-ignore-cd:
address: fffd8000
interrupts: 00000028
device_type: 'serial'
reg: 0000000f.01100000.00000004
name: 'zs'
Node 0xf005a24c
address: fffb0000
port-b-ignore-cd:
port-a-ignore-cd:
keyboard:
interrupts: 00000028
device_type: 'serial'
reg: 0000000f.01000000.00000004
name: 'zs'
Node 0xf005a394
address: fffb8000
model: 'SUNW,sc-up'
reg: 0000000f.01300000.00000008
name: 'sc'
Node 0xf005a448
reg: 0000000f.01304000.00000003
name: 'SUNW,pll'
Node 0xf006120c
reg: 0000000e.08400000.00000010
name: 'espdma'
Node 0xf00614a0
device_type: 'scsi'
clock-frequency: 02625a00
interrupts: 00000020
reg: 0000000e.08800000.00000040
name: 'esp'
Node 0xf0063c50
device_type: 'block'
name: 'sd'
Node 0xf0064688
device_type: 'byte'
name: 'st'
Node 0xf0065370
burst-sizes: 0000003f
reg: 0000000e.08400010.00000020
name: 'ledma'
Node 0xf0065908
device_type: 'network'
busmaster-regval: 00000007
interrupts: 00000021
reg: 0000000e.08c00000.00000004
name: 'le'
Node 0xf0068194
reg: 0000000e.0c800000.0000001c
interrupts: 00000022
name: 'SUNW,bpp'
Node 0xf006a4f0
model: 'SUNW,500-2015'
reg: 00000000.00081000.00000010
name: 'dma'
Node 0xf006afe0
device_type: 'scsi'
clock-frequency: 02625a00
intr: 00000003.00000000
reg: 00000000.00080000.00000040
name: 'esp'
chip: 'FAS236'
interrupts: 00000003
Node 0xf006e9dc
device_type: 'block'
name: 'sd'
Node 0xf006f528
device_type: 'byte'
name: 'st'
Node 0xf00700d8
burst-sizes: 0000003f
model: 'SUNW,500-2015'
reg: 00000000.00040000.00020000
name: 'lebuffer'
Node 0xf007031c
device_type: 'network'
intr: 00000004.00000000
busmaster-regval: 00000005
reg: 00000000.00060000.00000004
alias: 'le'
name: 'le'
interrupts: 00000004
Node 0xf00725f8
hm-rev: 00000022
model: 'SUNW,501-2739'
device_type: 'network'
intr: 00000004.00000000
interrupts: 00000004
address-bits: 00000030
max-frame-size: 00004000
reg: 00000001.08c00000.00000108.00000001.08c02000.00002000.00000001.08c04000.00002000.00000001.08c06000.00002000.00000001.08c07000.00000020
name: 'SUNW,hme'
Node 0xf0079530
hm-rev: 00000022
device_type: 'scsi'
clock-frequency: 02625a00
intr: 00000003.00000000
interrupts: 00000003
reg: 00000001.08800000.00000010.00000001.08810000.00000040
name: 'SUNW,fas'
Node 0xf007e2a0
device_type: 'block'
name: 'sd'
Node 0xf007eb5c
device_type: 'byte'
name: 'st'
Node 0xf007f848
character-set: 'ISO8859-1'
intr: 00000005.00000000
interrupts: 00000005
reg: 00000002.00000000.01000000
dblbuf: 00000000
vmsize: 00000001
depth: 00000008
height: 00000384
awidth: 00000480
linebytes: 00000480
width: 00000480
emulation: 'cgsix'
montype: 00000000
boardrev: 000000a1
pixfreq: 05a1f4a0
hfreq: 0000f195
vfreq: 00000042
hbporch: 000000d0
hsync: 00000080
hfporch: 00000028
vbporch: 0000001f
vsync: 00000004
vfporch: 00000002
fbmapped: 00100000
global-data: fffe6d38
oscillators: '84375000,64125000,108000000,94500000'
chiprev: 0000000b
device_type: 'display'
model: 'SUNW,501-2325'
name: 'cgsix'
Node 0xf006a094
manufacturer#: 00000017
implementation#: 00000010
mask#: 00000022
sparc-version: 00000009
ecache-associativity: 00000001
ecache-line-size: 00000040
ecache-size: 00080000
#dtlb-entries: 00000040
dcache-associativity: 00000001
dcache-line-size: 00000020
dcache-size: 00004000
#itlb-entries: 00000040
icache-associativity: 00000002
icache-line-size: 00000020
icache-size: 00004000
upa-portid: 00000000
clock-frequency: 09f437c0
reg: 000001c0.00000000.00000000.00000008
device_type: 'cpu'
name: 'SUNW,UltraSPARC'
|
|
|
Back to top |
|
|
Kumba Developer
Joined: 16 Jul 2002 Posts: 393 Location: Sigma 957
|
Posted: Wed Oct 27, 2004 12:17 am Post subject: |
|
|
AFAIK, if it's an "Ultra" system of anykind, it's got an UltraSPARC chip which means it's 64bit capable. according to your prtconf output, it even registers as a sun4u box, which again means 64bit. If it was 32bit, it should report sun4m, sun4d, sun4c, etc.., which are antiquitated.
Anyways, your compile error sounds easy to solve. You've left CHOST in make.conf set properly, so the only other oddity is that you have /etc/make.profile pointed at the wrong profile. Make sure that /etc/make.profile is symlinked to either a default-sparc64-* profile for the old profiles, or to default-linux/sparc/sparc64/2004.2/ for the new cascading profiles (that might be 2004.3, but I forget).
The reason is that on sun4u/sparc64 systems that run a 64bit linux kernel and 32bit userland, glibc needs to be built as a sparcv9 systemm which is basically an enhanced format of sparc32 designed to work on sparc64 chips (file reports a sparcv9 binary as SPARC V8+). To this end, when you use a sparc64 profile, the variable PROFILE_ARCH gets set to "sparc64". The glibc ebuild checks for this, and if found, tweaks CHOST to temporarily report "sparcv9-unknown-linux-gnu", which is used by glibc's configure scripts to include the relevant code to properly build for that system.
All that said, check the make.profile symlink, as that's the likely cause.
--Kumba _________________ "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic |
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Wed Oct 27, 2004 5:56 am Post subject: |
|
|
The sub 200mhz ultras were buggy that they are not considered by sun to be 64bit capable. This is also why Solaris 10 which is 64bit only requires a system faster than 200mhz to run on.
Quoted from "man boot" on Solaris 9
Quote: | 64-bit SPARC
Booting UltraSPARC Systems
Certain platforms may need a firmware upgrade to run the 64-bit kernel. See the Sun Hardware Platform Guide for details. If the 64-bit kernel packages are installed and boot detects that the platform needs a firmware upgrade to run 64-bit, boot displays a message on the console and chooses the 32-bit kernel as the default file instead.
On systems containing 200MHz or lower UltraSPARC-1 processors, it is possible for a user to run a 64-bit program designed to exploit a problem that could cause a processor to stall. Since 64-bit progams cannot run on the 32-bit kernel, the 32-bit kernel is chosen as the default file on these systems.
The code sequence that exploits the problem is very unusual and is not likely to be generated by a compiler. Assembler code had to be specifically written to demonstrate the problem. It is highly unlikely that a legitimate handwritten assembler routine would use this code sequence. |
_________________ Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism. |
|
Back to top |
|
|
|
|
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
|
|