[LLVMdev] Re: Building CFE on MinGW

Greg Pettyjohn gregp at ccs.neu.edu
Sun Apr 23 08:34:42 PDT 2006


Thanks. I'll try some of this. Further comments in-line:

On Sun, 23 Apr 2006, Oscar Fuentes wrote:

> Greg Pettyjohn <gregp at ccs.neu.edu> writes:
>
> > I'm using a little shell script:
> [snip]
> >   confopts="--prefix=$PREFIX"
> >   confopts="$confopts --disable-threads"
> >   confopts="$confopts --disable-nls"
> >   confopts="$confopts --disable-shared"
> >   confopts="$confopts --enable-languages=c,c++"
> >   confopts="$confopts --disable-c-mbchar"
> >   confopts="$confopts --program-prefix=llvm-"
>
> Try adding --disable-fixincludes too.

Say, that sounds plausible.

> [snip]
>
> >    ../src/configure --srcdir=$SOURCE_DIR
> > --includedir=/C/msys/1.0/mingw/include --libdir=/C/msys/1.0/mingw/lib
> > --target=mingw32 $confopts
>
> --includedir and --libdir should be Windows directories
> (c:/msys/...). MinGW does not understand Cygwin/MSYS paths.

With forward-slashes? or back-slashes? (I'll try both if I have to :)

> Is --srcdir really needed?

I don't know. At this poin I'm just trying lots of stuff. :-)


> >    make CFLAGS=-O LIBCFLAGS+=-g LIBCFLAGS+=-O2 LIBCXXFLAGS+=-g
> > LIBCXXFLAGS+=-O2 LIBCXXFLAGS+=-fno-implicit-templates LDFLAGS=-s all
>
> I don't know about LLVM, but shouldn't this be
> make ... bootstrap
> as per the gcc build instructions?

I don't know either. I believe I tried the bootstrap flag at one point,
but still no dice. Last weekend, I actualy did build gcc (*not* llvm-gcc)
successfully which proved to me that there wasn't something fundamentally
wrong with my MinGW setup. The build went smoothly using a script I
snagged off the MinGW WIKI. This is what prompted me to start my own
script.

>
> --
> Oscar
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list