Hi,

Sorry for the delay.

Vitali Lovich,

> One trick would be to have cc as a symlink to GCC somewhere, & add that 
> location to your path.

Good idea! For now, I'm using Kasper's less involved method. I think I
might try yours if I keep having "cc" errors. Thank you!

Kasper,

> I'm not sure but setting the CC environment variable to gcc might do the 
> trick [...]

Thanks, GCC seems to be working now. I am still having errors (see
below), but it might be with the code, rather than the compiler.

Matthew,

> If you don't mind my asking, what are you trying to get V8 in Minix working
> for?  Porting Chrome / Webkit?  Or something else?

Thanks for the question. I'd like to see all of the above happen. I
think I'd love to see Webkit and Chrome on MINIX. However, I'm not
certain that I'd end up porting those two myself. For the "something
else," have you heard of CommonJS? I'm interested in seeing if that
sort of idea would have a place in MINIX, or if Lua (or Python, Ruby,
etc.) would be a better fit.

> I'm a bit surprised nobody seems to have built a general purpose interpreter
> off V8.  It's been on my list of wish-I-had-the-time todos..

Yes, I've thought so too. I've played with V8's "shell.cc" example,
and have even added file reading for fun (read file into string: bad
idea for big files, but fun!). If you ever do have enough time, I'd
recommend playing with, and extending, that shell example.

> p.s.  Minix 3 is awesome, except for the lack of device support..

Yeah, thankfully MINIX 3 has a lot of development going on. I wonder
what point it will be at when it begins to attract casual users.


Here's my current progress:

$ env CC=gcc CXX=g++ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o obj/release/dtoa-config.o -c -Werroe -Wno-uninitialized -m32 -
O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -
DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING -
DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/dtoa-
config.c
gcc: not found
scons: *** [obj/release/dtoa-config.o] Error 127
scons: building terminated because of errors.
$ _


So, to see what specifically went wrong:

$ gcc -o obj/release/dtoa-config.o -c -Werroe -Wno-uninitialized -m32 -
O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -
DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING -
DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/dtoa-
config.c

cc1: warnings being treated as errors
src/dtoa-config.c:1: warning: -ffunction-sections not supported for
this target
src/dtoa-config.c:1: warning: -fdata-sections not supported for this
target
$ _


I'm not really sure what this means, except that maybe my MINIX +
processor platform can't support those options? I am using GCC 4.1.1
without coreutils, binutils, or even gcc-libs... perhaps that's the
problem?

Thank you,
pikpik

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to