Not able to build 64-bit firefox on Solaris AMD64 system

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
12 years ago
10 years ago

People

(Reporter: siva.ss.kumar, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9a2pre) Gecko/20070112 Firefox/3.0a2pre
Build Identifier: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9a2pre) Gecko/20070112 Firefox/3.0a2pre

There is a build failure when trying to compile a 64-bit version of Firefox on Solaris x64. The files system.xptcinvoke_asm_x86_solaris_SUNW.s, xptcstubs_asm_x86_solaris_SUNW.s in xpcom/reflect/xptcall/src/md/unix directory gets built as 32-bit objects only. When tried with '/usr/ccs/bin/as -xarch=amd64', lots of syntax errors get thrown out.

Reproducible: Always

Steps to Reproduce:
1. Set CC="cc -xarch=amd64"; CXX="CC -xarch=amd64"; AS="as -xarch=amd64"
2. Build.
3. Getting build errors in xpcom/build directory
Actual Results:  
ld: fatal: file xptcinvoke_asm_x86_solaris_SUNW.o: wrong ELF class: ELFCLASS32


Expected Results:  
Build to complete and a 64-bit firefox be available.

The assembly code in xpcom/reflect/xptcall/src/md/unix directory should have an equivalent 64-bit ones.
(Reporter)

Comment 1

12 years ago
(610)alcapone-3:unix> pwd
/export/ss39446/source/mozilla/xpcom/reflect/xptcall/src/md/unix
(611)alcapone-3:unix> /usr/ccs/bin/as -xarch=generic64 -o xptcinvoke_asm_x86_solaris_SUNW.o -K PIC -L -P -D_ASM -D__STDC__=0  xptcinvoke_asm_x86_solaris_SUNW.s
Assembler: 
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 11 : Syntax error
        Near line: "    push       20(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 12 : Syntax error
        Near line: "    push       16(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 13 : Syntax error
        Near line: "    push       12(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 14 : Syntax error
        Near line: "    push       8(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 19 : Illegal mnemonic
        Near line: "    pushl   %ebx"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 20 : Illegal mnemonic
        Near line: "    pushl   %esi"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 23 : Syntax error
        Near line: "    pushl   0x14(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 23 : Illegal mnemonic
        Near line: "    pushl   0x14(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 24 : Syntax error
        Near line: "    pushl   0x10(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 24 : Illegal mnemonic
        Near line: "    pushl   0x10(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 32 : Illegal mnemonic
        Near line: "    pushl   %esp"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 33 : Syntax error
        Near line: "    pushl   0x14(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 33 : Illegal mnemonic
        Near line: "    pushl   0x14(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 34 : Syntax error
        Near line: "    pushl   0x10(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 34 : Illegal mnemonic
        Near line: "    pushl   0x10(%ebp)"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 38 : Syntax error
        Near line: "    movl    0x8(%ebp), %ecx"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 39 : Illegal mnemonic
        Near line: "    pushl   %ecx"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 40 : Syntax error
        Near line: "    movl    (%ecx), %edx"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 41 : Syntax error
        Near line: "    movl    0xc(%ebp), %eax"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 42 : Syntax error
        Near line: "    movl    0x8(%edx, %eax, 4), %edx"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 46 : Illegal mnemonic
        Near line: "    popl    %esi"
        "xptcinvoke_asm_x86_solaris_SUNW.s", line 47 : Illegal mnemonic
        Near line: "    popl    %ebx"

Comment 2

10 years ago
64bit Firefox is not available on Solaris.
The GNOME libraries on Solaris are 32bit only, so it's not possible to build a 64bit Firefox.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.