Building mozart 1.3.0 with gcc 3 under Windows

Thorsten Brunklaus brunklaus at ps.uni-sb.de
Mon Sep 22 10:48:11 CEST 2003


Hi,

I've tried to build mozart 1.3.0 from a fresh cvs checkout today, but on my windows
box the infamous bison version test fails again.

bruni at gladiator [build] bison -y --version
bison (GNU Bison) 1.875b
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Cheers,
  Thorsten.

--
bruni at gladiator [build] . /home/bruni/bin/conf-mozart3
creating cache ./config.cache
checking for SRCTOP... /home/bruni/mozart/mozart
checking for BUILDTOP... /home/bruni/mozart/build
checking host system type... i686-pc-cygwin
checking for gmake... no
checking for make... make
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for --with-global-oz... no
checking for mkinstalldirs... /home/bruni/mozart/mozart/mkinstalldirs
checking for oz version... 1.3.0
checking for ozplatform... /home/bruni/mozart/mozart/share/bin/ozplatform
checking for oztool... no
checking for --with-inc-dir... /home/bruni/mozart/packages/include
checking for --with-lib-dir... /home/bruni/mozart/packages/lib
checking for build date... 20030922
checking for OZLOADSEP... ;
checking for OZLOADWIN... %prefix=d:/=d:/%prefix=D:/=D:/%prefix=d:/=d:/%prefix=D:/=D:/
checking for --enable-contrib... yes
checking for --enable-doc... yes
checking for --enable-subdirs... platform share contrib doc
checking for --with-stdlib... /home/bruni/mozart/mozart-stdlib
updating cache ./config.cache
creating ./config.status
creating Makefile
configuring in platform
running /bin/sh
/home/bruni/mozart/mozart/platform/configure  --prefix=/home/bruni/mozart/mozart-install --enable-errors --enable-opt=o --with-inc-d
ir=/home/bruni/mozart/packages/include --with-lib-dir=/home/bruni/mozart/packages/lib --with-tclinclude=/home/bruni/mozart/packages/
include --with-tkinclude=/home/bruni/mozart/packages/include --with-tcl=/home/bruni/mozart/packages --with-tk=/home/bruni/mozart/pac
kages --disable-contrib-compat --disable-index --with-stdlib=../mozart-stdlib --cache-file=.././config.cache --srcdir=/home/bruni/mo
zart/mozart/platform
loading cache .././config.cache
checking for SRCTOP... (cached) /home/bruni/mozart/mozart
checking for BUILDTOP... (cached) /home/bruni/mozart/build
checking host system type... i686-pc-cygwin
checking for GNU make... (cached) make
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for --with-global-oz... no
checking for mkinstalldirs... (cached) /home/bruni/mozart/mozart/mkinstalldirs
checking for oz version... (cached) 1.3.0
checking for ozplatform... (cached) /home/bruni/mozart/mozart/share/bin/ozplatform
checking for oztool... no
checking for --with-inc-dir... /home/bruni/mozart/packages/include
checking for --with-lib-dir... /home/bruni/mozart/packages/lib
checking for build date... (cached) 20030922
checking for OZLOADSEP... (cached) ;
checking for OZLOADWIN... (cached) %prefix=d:/=d:/%prefix=D:/=D:/%prefix=d:/=d:/%prefix=D:/=D:/
checking for --enable-wish... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
configuring in emulator
running /bin/sh
/home/bruni/mozart/mozart/platform/emulator/configure  --prefix=/home/bruni/mozart/mozart-install --enable-errors --enable-opt=o --w
ith-inc-dir=/home/bruni/mozart/packages/include --with-lib-dir=/home/bruni/mozart/packages/lib --with-tclinclude=/home/bruni/mozart/
packages/include --with-tkinclude=/home/bruni/mozart/packages/include --with-tcl=/home/bruni/mozart/packages --with-tk=/home/bruni/m
ozart/packages --disable-contrib-compat --disable-index --with-stdlib=../mozart-stdlib --cache-file=../.././config.cache --srcdir=/h
ome/bruni/mozart/mozart/platform/emulator
loading cache ../.././config.cache
checking for SRCTOP... (cached) /home/bruni/mozart/mozart
checking for BUILDTOP... (cached) /home/bruni/mozart/build
checking host system type... i686-pc-cygwin
checking for GNU make... (cached) make
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for --with-global-oz... no
checking for mkinstalldirs... (cached) /home/bruni/mozart/mozart/mkinstalldirs
checking for oz version... (cached) 1.3.0
checking for ozplatform... (cached) /home/bruni/mozart/mozart/share/bin/ozplatform
checking for oztool... no
checking for --with-inc-dir... /home/bruni/mozart/packages/include
checking for --with-lib-dir... /home/bruni/mozart/packages/lib
checking for build date... (cached) 20030922
checking for OZLOADSEP... (cached) ;
checking for OZLOADWIN... (cached) %prefix=d:/=d:/%prefix=D:/=D:/%prefix=d:/=d:/%prefix=D:/=D:/
checking for --enable-denys-events... no
checking for --enable-site-property... no
checking build system type... i686-pc-cygwin
checking for as... as
checking for dlltool... dlltool
checking for dllwrap... dllwrap
checking for --with-sunpro... no
checking for c++... g++
checking whether the C++ compiler (g++ -O -L/home/bruni/mozart/packages/lib) works... yes
checking whether the C++ compiler (g++ -O -L/home/bruni/mozart/packages/lib) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking g++ version is at least 2.7... yes (3.3.1)
checking c++ compiler option -mno-cygwin... no
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether the C compiler (gcc -O -L/home/bruni/mozart/packages/lib) works... yes
checking whether the C compiler (gcc -O -L/home/bruni/mozart/packages/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version is at least 2.7... yes (3.3.1)
checking cc compiler option -mno-cygwin... no
checking how to run the C preprocessor... gcc -E
checking for flex... flex
checking for yywrap in -lfl... yes
checking flex version is at least 2.5.3... yes (2.5.31)
checking for bison... bison -y
checking bison -y version is at least 1.25... no (cannot find version)
configure: error:
GNU bison version 1.25 or higher is needed to build the system.
It can be retrieved from:

        ftp://ftp.gnu.org/pub/gnu/

The latest version at this time is 1.30 and is available
packaged as the following archive:

        bison-1.30.tar.gz


You may find a mirror archive closer to you by consulting:

        http://www.gnu.org/order/ftp.html

configure: error: /home/bruni/mozart/mozart/platform/emulator/configure failed for emulator
configure: error: /home/bruni/mozart/mozart/platform/configure failed for platform


----- Original Message ----- 
From: "Kevin Glynn" <glynn at info.ucl.ac.be>
Newsgroups: mozart-oz.hackers
Sent: Friday, September 19, 2003 3:06 PM
Subject: Building mozart 1.3.0 with gcc 3 under Windows


>
>
> Dear all,
>
> I have been (somewhat) successful building mozart with gcc 3 under
> cygwin! Below I describe what I had to do.  I am hoping that someone
> can comment and improve on the hacks I have made.  I attach a diff
> that you can apply to the current development branch in CVS.
>
> I built against the pre-built packages available from
>
> http://www.mozart-oz.org/documentation/install/node8.html#section.cygwin.packages
>
> 1. c++ doesn't like putting an attribute on the OZ_Extension
>    destructor in platform/emulator/extension.cc.  It looks like this
>    is because it is a virtual destructor.  I (eventually) discovered
>    that I could put ozdeclspec on the class definition in extension.hh
>    and the delete methods and get the right symbols exported.
>
>    This fix needs improving, I probably don't need ozdeclspec
>    everywhere I have it and redefining ozdeclspec in extension.hh
>    gives warnings, and may well be unnecessary.
>
> 2. Another cause of undefined symbols in emulator.dll is that
>    windows.hh from cygwin defines the INTERFACE symbol which we use to
>    control "#pragma interface". (This took a looong time to track
>    down). I have hacked that with a bit of #ifdeffery   that unsets it
>    where necessary.
>
> 3. We need to run make new-scanner in platform/emulator.  It seems
>    that the latest flex in cygwin (2.5.31-1, released 5 days ago)
>    breaks our scanner.  I built with the previous version (2.5.4-2).
>
> 4. To build text2pickle we need to link with $CXX, not $LD (else we get
>    undefined new/delete symbols).
>
> 5. oztool.cc won't work if c++ is a symbolic link to g++ (a problem
>    with CreateProcess).  I hacked this by copying g++.exe to c++.exe
>
> I am having trouble running make boot-all (emacs doesn't like the path
> it is being fed, advice anyone?) but everything I have tried seems to
> have worked OK.  I can use the gdbm contrib for example.
>
> phew!
>
> k
>
>
>
>
>

-
Please send submissions to hackers at mozart-oz.org
and administriva mail to hackers-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.





More information about the mozart-hackers mailing list