skaller wrote:
> On Thu, 2006-09-07 at 23:39 +1000, Jonathan Kelly wrote:
>
>   
>> I was trying to use the mingw within the cygwin environment ... and put 
>> the mingw directories first in the path. The idea comes from the mingw 
>> site somewhere ...
>>     
>
> Ah, then you need:
>
> ./configure --target=nocygwin
>
> This is for developing under Cygwin, but making binaries which
> don't require Cygwin1.dll. This, you can actually run the results
> directly from CMD.EXE prompt like:
>
> bin\flx_arun somefile.dll
>
> after somefile.dll is built by Felix. However you still
> compile and develop code under Cygwin.
>
>
>   
For posterity, and others maybe thinking like me ... (must remember 
"reply-all"!!

Doesn't seem to be the case. Just to be clear, I have cygwin AND the 
mingw toolset (but not MSYS) installed, and have put the mingw directory 
first in my bash path. When I do this, configure reports the os as WIN32 
and not cygwin.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Checking BUILD MODEL detect
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

COM = gcc
tmp/mchk.c:4:2: #error __APPLE__
NOT defined __APPLE__
tmp/mchk.c:4:2: #error BSD
NOT defined BSD
tmp/mchk.c:4:2: #error __linux__
NOT defined __linux__
#defined _WIN32
tmp/mchk.c:4:2: #error _WIN64
NOT defined _WIN64
tmp/mchk.c:4:2: #error __CYGWIN__
NOT defined __CYGWIN__
#defined _WIN32
MODEL= win32
=========================================
then it crashes later on with this ...

=========================================
Defaulting host model to build model win32

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Checking HOST MODEL win32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

COM = cl
rtl located in bin directory
sh: cl: command not found
Traceback (most recent call last):
 File "script/make_config.py", line 498, in ?
   HOST_CC.check_options(shell,get_stdout)
 File "flxbuild/msvcc_class.py", line 13, in check_options
   c_base.check_options(self, shell, get_stdout)
 File "flxbuild/c_cxx_base.py", line 951, in check_options
   self.detect_model(shell, get_stdout)
 File "flxbuild/msvc_mixin.py", line 33, in detect_model
   c_cxx_base.detect_model(self, shell, get_stdout)
 File "flxbuild/c_cxx_base.py", line 744, in detect_model
   self.compile_dummy_main(shell)
 File "flxbuild/c_cxx_base.py", line 368, in compile_dummy_main
   return apply(self.compile_static_main, (shell, filename), kwds)
 File "flxbuild/c_cxx_base.py", line 138, in compile_static_main
   return apply(self.compile_static_thing, (COM, opt.EXT_SRC_MAIN) + 
args, kwds
)
 File "flxbuild/c_cxx_base.py", line 124, in compile_static_thing
   return apply(self.compile_thing, args, kwds)
 File "flxbuild/c_cxx_base.py", line 116, in compile_thing
   shell(cmd, log=log)
 File "flxbuild/flxutil.py", line 193, in xqtqq
   return apply(xqt, (x,), kwds)
 File "flxbuild/flxutil.py", line 180, in xqt
   raise MakeError(x, stdout)
flxbuild.flxutil.MakeError: COMMAND: cl /nologo /GR /c 
/Fotmp/dummy_static.obj /
DHOST_BUILD  tmp/dummy.c

---------------------------------
Interscript 1.0a11[117] Process Fri 08 Sep, 2006 22:20:28 (AUSEST)
PROCESSING WHOLE FILE (options changed)
$Id: flx_maker.pak,v 1.105 2006/08/01 05:37:50 idadesub Exp $
-------------------------------------
ERROR EXECUTING CLIENT PYTHON SCRIPT
CONTEXT
File: ./lpsrc/flx_maker.pak[ 4]
  1: execfile(os.path.join('config', 'flx_data.py'))
TRACEBACK (innermost last)
 File: interscript/frames/processf.py [81] in py_exec
 -> exec code in dict,dict
 File: ./lpsrc/flx_maker.pak[ 4] [ 1] in mainline
 +> execfile(os.path.join('config', 'flx_data.py'))
 File: config/flx_data.py [ 3] in mainline
 -> execfile("config"+os.sep+"config.py")
EXCEPTION:   IOError: [Errno 2] No such file or directory: 
'config/config.py'
BREAKING ON ERROR
-------------------------------------
!!!!!!!!! PROCESS FAULT  Unexpected Exception  !!!!!!!!!
Elapsed Process Time 0 seconds
================================

There is also some problem with the options to ocaml including a warning 
option "y" which 3.08.1 doesn't understand, being the version of ocaml 
that's current for cygwin.

This is all getting a bit confusing, not least because of the 
interscript layer; I can normally track down build type problems, even 
with python, but I really can't find where there are some ocaml options 
are set ... which is weird, because the version of felix that I did 
manage to build under cygwin did have the -w yx options somewhere in a 
config (I think) but now, nothing ...

I'm just about ready to "oh well" it, and go back to using the cygwin 
build; it's not like the licencing is ever going to affect me anyway!

It did occur to me that the target=nocygwin was meant for building with 
the cygwin tools, and yes, that finishes (the configure part anyway)

Aha! ... I knew I'd seen the getconf error somewhere .... here's what 
happens at the end of the .configure ...

Defaulting run model to target model: win32
Writing main config file
import sys
if '' not in sys.path: sys.path = [''] + sys.path
#2006/09/08 12:34:45 UTC
#$Id: flx_config.pak,v 1.218 2006/08/04 08:59:49 skaller Exp $
CONFIG_GENERATOR_CVS_ID='$Id: flx_config.pak,v 1.218 2006/08/04 08:59:49 
skaller
Exp $'
CONFIG_TIME='2006/09/08 12:34:45 UTC'
flx_version='1.1.2'
flx_version_major='1'
godi_revision='0'
debian_revision='1'
try:
 execfile('config/config_bootstrap.py')
except: pass
import flxbuild
import flxbuild.gcc_class
import flxbuild.msvcc_class
import flxbuild.gxx_class
import flxbuild.msvcxx_class
import flxbuild.ocaml_class
execfile("script/config_support.py")

#User configurable section
SUPPORT_DYNAMIC_LOADING=1
SUPPORT_STATIC_LINKAGE = 1
DEFAULT_LINK_MODEL='dynamic'
build_model='cygwin'
host_model='cygwin'
target_model='win32'
run_model='win32'
CYGWIN=0
MACOSX=0
HAVE_KQUEUE_DEMUXER=0
HAVE_POLL=0
HAVE_EPOLL=0
HAVE_EVTPORTS=0
WIN32=1
WIN64=1
POSIX=0
SOLARIS=0
BSD=0
LINUX=0
PREFIX='/usr/local'
FLX_SOCKLEN_T='int'
HAVE_PTHREADS=0
PTHREAD_SWITCH=None
HAVE_PKGCONFIG=0
FLX_LPARCHIVE='.'

HOST_OCAML=flxbuild.ocaml_class.ocaml()
HOST_OCAML.load_options('config/ocaml_config.py')
HOST_CC=flxbuild.gcc_class.gcc()
HOST_CC.load_options('config/host_cc.py')
TARGET_CC=flxbuild.gcc_class.gcc()
TARGET_CC.load_options('config/target_cc.py')
HOST_CXX=flxbuild.gxx_class.gxx()
HOST_CXX.load_options('config/host_cxx.py')
TARGET_CXX=flxbuild.gxx_class.gxx()
TARGET_CXX.load_options('config/target_cxx.py')

HAVE_GNU=1
FLXCC_CPP='cpp '
HAVE_MSVC=0
# HACK to get all the target variables into global namespace
execfile('config/target_cxx.py')
execfile('config/ocaml_config.py')
Created config/config.py
Edit this file to set your preferences
This file will not be clobbered by the Felix build process
target CONFIGURING libgc
tmp/hchk.cxx:1:16: gc.h: No such file or directory
NO HEADER <gc.h>
target CONFIGURING windowsh
#include <windows.h>
target CONFIGURING opengl
#include <GL/gl.h>
target CONFIGURING pthread
sh: getconf: command not found
Pthread model= Unknown

---------------------------------
Interscript 1.0a11[117] Process Fri 08 Sep, 2006 22:41:18 (AUSEST)
PROCESSING WHOLE FILE (options changed)
$Id: flx_maker.pak,v 1.105 2006/08/01 05:37:50 idadesub Exp $
--------------------------
Loading config/iscr_config.py
Pass 1 status: <not converged>
 Files    : 66
 New      : 55
 Changed  : 0
 Unchanged: 11
Elapsed Process Time 1 seconds
================================



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to