cygwin gcc4 is unable to use -mno-cygwin option, but gcc3 cat use it .
I build v8 under cygwin gcc3 with -mno-cygwin option( use mingw3 under
cygwin).
    I use gcc3 -mno-cygwin flag, and some modify SConstruct and
tools/utils.py to build v8(brench/2.1).
    It build native win32 code, and it is ok.

environment:
    cygwin 1.7.5-1
    svn    1.6.11 (r934486)
    Python 2.5.5
    scons  v1.3.0.d20100501.r4824;  (ps: scons 1.3, has problems on js2c)
    gcc (GCC) 3.4.4
    gcc-mingw-core       20050522-1
    gcc-mingw-g++        20050522-1
    v8    svn/branches/2.1
 build v8 and shell:
    1. if you have gcc3, and mingw3 under cygwin.
/usr/bin/set-gcc-default-3.sh
    2. get v8 source code( brench 2.1 )
svn checkout http://v8.googlecode.com/svn/branches/2.1 v8-2.1
 cd v8-2.1
        cp utils.diff SConstruct.diff ./
    3. patch tools/utils.py utils.diff
    4. patch SConstruct SConstruct.diff
    5. scons library=shared
    6. scons sample=shell library=shared.

run shell:
    $ cd  benchmarks
    $ ../shell run.js
    Richards: 3356
    DeltaBlue: 4063
    Crypto: 2963
    RayTrace: 4972
    EarleyBoyer: 12568
    RegExp: 1682S
    play: 7391
    ----
    Score (version 5): 4389

Evan Chen

From: Bryan White <[email protected]>
> Date: 2009年12月27日, 下午9時10分
> Subject: Compile V8 on Cygwin
> To: v8-users
>
>
> 2009/12/26 Søren Gjesse <[email protected]>:
>
> > There is no support for building V8 in acygwinenvironment. If you want to
> > use GCC on Windows it should be possible to use the MinGW environment.
> > Building on MinGW is not tested on a regular basis, so support for it
> might
> > be broken. Please note that using MinGW on a Windows installation with
> > Visual Studio installed will probably cause some problems. You can search
> > the postings on this list for more information. Also see Also see Issue
> 64.
> > Regards,
> > Søren
>
> Thanks for the info.  This was sort of a personal side project to see
> if I could useCygwinto replace my test VMWare VM for development of
> Linux FastCGI programs.  Notes in the just releasedCygwin1.7 gave me
> hope that it might work, but I am hitting a lot of road blocks along
> the way (V8 was just one).  So for now I am abandoning this effort.
>
> --
> Bryan White

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

Attachment: utils.diff
Description: Binary data

Attachment: SConstruct.diff
Description: Binary data

Reply via email to