Closed Bug 395786 Opened 12 years ago Closed 8 years ago

Compiling gives warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: swaroopch, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)
Build Identifier: 5696:f851780ab3d8 for ActionMonkey-Tamarin

When compiling ActionMonkey-Tamarin from source, it gives the warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C.

Reproducible: Always

Steps to Reproduce:
1. Compile ActionMonkey code as per http://wiki.mozilla.org/JavaScript:ActionMonkey#How_to_build
Actual Results:  
Part of the compilation messages includes the following:

make[1]: Entering directory `~code/actionmonkey-play/js/src/editline'
gcc -o Linux_All_DBG.OBJ/editline.o -c -Wall -Wno-format -MMD -fno-rtti -DGCC_OPT_BUG -DXP_UNIX -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DUNIX -DAVMPLUS_UNIX -DLINUX -DX86_LINUX  -DDEBUG -DDEBUG_swaroop  -DJSFILE  -DANSI_ARROWS -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX -DHAVE_STDLIB -DUNIQUE_HISTORY editline.c
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C


Expected Results:  
No warning should occur.
Whiteboard: [build_warning]
No warning in current code base. Command to compile editline.c file is
gcc-4.2 -arch x86_64 -o editline.o -c -fvisibility=hidden -DANSI_ARROWS -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX -DHAVE_STDLIB -DUNIQUE_HISTORY -DOSTYPE=\"Darwin\" -DOSARCH=Darwin  -I/builds/slave/m-cen-osx64-ntly/build/js/src/editline -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/builds/slave/m-cen-osx64-ntly/build/obj-firefox/x86_64/dist/include/nspr   -fPIC  -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fpascal-strings -fno-common -pthread  -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fomit-frame-pointer -fno-stack-protector   -include ../js-confdefs.h -DMOZILLA_CLIENT -MD -MF .deps/editline.pp /builds/slave/m-cen-osx64-ntly/build/js/src/editline/editline.c

There is no reference of '-fno-rtti' and I could not find the error in linux and macos nightly builds also and hence closing the bug.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.