Closed Bug 5370 Opened 25 years ago Closed 25 years ago

gcc/egcs cannot assemble os_IRIX.s

Categories

(NSPR :: NSPR, defect, P3)

SGI
IRIX
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 3794

People

(Reporter: leaf, Assigned: srinivas)

Details

Attachments

(1 file)

> make MOZILLA_CLIENT=1 USE_PTHREADS=1 NS_USE_GCC=1 ... gcc -x assembler-with-cpp -D_ASM -mips2 -o IRIX6.3_DBG.OBJ/os_Irix.o -g -D_PR_HAVE_SGI_PRDA_PROCMASK -Wall -Wno-format -DSVR4 -DIRIX -D_SGI_MP_SOURCE -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -DXP_UNIX -DDEBUG -UNDEBUG -DDEBUG_leaf -I/builds/seamonkey/mozilla/dist/include/private -I/builds/seamonkey/mozilla/dist/include -c os_Irix.s as WARNING: ABI specification -n32 conflicts with ISA specification -mips2: defaulting ISA to mips3 "os_Irix.s", line 29: error(1014): extra text after expected end of preprocessing directive # 1 "/usr/include/sys/asm.h" 1 3 ^ "/usr/include/sys/asm.h", line 20: error(1014): extra text after expected end of preprocessing directive # 1 "/usr/include/sgidefs.h" 1 3 ^ "/usr/include/sgidefs.h", line 253: error(1014): extra text after expected end of preprocessing directive # 20 "/usr/include/sys/asm.h" 2 3 ^ "os_Irix.s", line 30: error(1014): extra text after expected end of preprocessing directive # 1 "/usr/include/sys/regdef.h" 1 3 ^ 4 errors detected in the compilation of "/var/tmp/cclWdi6m.s". make[4]: *** [IRIX6.3_DBG.OBJ/os_Irix.o] Error 1 make[4]: Leaving directory `/builds/seamonkey/mozilla/nsprpub/pr/src/md/unix' make[3]: *** [export] Error 2 make[3]: Leaving directory `/builds/seamonkey/mozilla/nsprpub/pr/src/md' make[2]: *** [export] Error 2 make[2]: Leaving directory `/builds/seamonkey/mozilla/nsprpub/pr/src' make[1]: *** [export] Error 2 make[1]: Leaving directory `/builds/seamonkey/mozilla/nsprpub/pr' make: *** [export] Error 2
I hear from shaver that `-x assembler-with-cpp' doesn't work with native binutils; i'm going to try installing GNU binutils and rebuilding.
If we're using gcc/egcs with native binutils, we need to suppress the # lineno "filename" num num bits, which are confusing IRIX/native as. If I add `-Wp,-P' to the GCC command line -- which passed -P to the preprocessor -- it seems to work.
NSPR now has its own Bugzilla product. Moving this bug to the NSPR product.
With the diffs i've attached, i'm able to build nspr on IRIX 6.3 (paladine.mcom.com) with egcs.
Status: NEW → ASSIGNED
Using the gcc/egcs installed at paladine:/tools/contrib/bin/gcc I cannot build nspr due to the following error gcc: cannot specify -o with -c or -S and multiple compilations
use the egcs installed in paladine:/opt
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 3794 ***
phillip gone, removing him from qa contact, sorry for spam
Status: RESOLVED → VERIFIED
Verified duplicate of 3794.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: