Comment #8 on issue 897 by [email protected]: Can't select
/opt/csw/gcc4/bin/g{cc,++} as the compiler in the presence of /usr/bin/cc
http://code.google.com/p/v8/issues/detail?id=897
Progress!
Yes, the patch helps. The compilation went forward.
It failed when scons tried to use /opt/studio/SOS11/SUNWspro/bin/CC for
linking, so the default suncc toolchain must still leak somewhere into the
build process.
mac...@testing10x [testing10x]:~/src/v8/build-solaris >
CC=/opt/csw/gcc4/bin/gcc CXX=/opt/csw/gcc4/bin/g++
RANLIB=/opt/csw/gcc4/bin/ranlib LD=/opt/csw/bin/gld AR=/opt/csw/bin/gar
scons -Y .. visibility=default library=shared toolchain=gcc
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/opt/csw/gcc4/bin/gcc -o obj/release/so_dtoa-config.o -c -Werror
-Wno-uninitialized -m32 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -KPIC -DV8_TARGET_ARCH_IA32 -D__C99FEATURES__
-DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING
-DENABLE_DEBUGGER_SUPPORT -I/opt/csw/include -I/usr/local/include
-I/home/maciej/src/v8/src /home/maciej/src/v8/src/dtoa-config.c
gcc: unrecognized option '-KPIC'
/opt/studio/SOS11/SUNWspro/bin/CC -o obj/release/so_accessors.o -c -Wall
-Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -m32 -O3
-fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-rtti
-fno-exceptions -KPIC -Wall -Werror -W -Wno-unused-parameter
-Wnon-virtual-dtor -m32 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -KPIC -DV8_TARGET_ARCH_IA32 -D__C99FEATURES__
-DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING
-DENABLE_DEBUGGER_SUPPORT -I/opt/csw/include -I/usr/local/include
-I/home/maciej/src/v8/src /home/maciej/src/v8/src/accessors.cc
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Werror passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -W passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Wno-unused-parameter passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -Wnon-virtual-dtor passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -m32 passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fomit-frame-pointer passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -fdata-sections passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -ffunction-sections passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fno-rtti passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -fno-exceptions passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Werror passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -W passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Wno-unused-parameter passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -Wnon-virtual-dtor passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -m32 passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fomit-frame-pointer passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -fdata-sections passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -ffunction-sections passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored otherwise
"/home/maciej/src/v8/src/globals.h", line 59: Error: #error Host
architecture was not detected as supported by v8.
scons: *** [obj/release/so_accessors.o] Error 1
scons: building terminated because of errors.
mac...@testing10x [testing10x]:~/src/v8/build-solaris >
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev