Hello Jafar,

inline ...


> On 5 Nov 2015, at 19:56, Jafar Al-Gharaibeh <[email protected]> wrote:
> 
> Hello Don,
> 
>   I always install mingw at "C:\mingw{32,64}" so I don't remember seeing this 
> problem before.

Oh, so parentheses are OK, but I still think spaces are toxic. The real problem 
is that the default installation for mingw gives the executables a path with 
spaces in it.

> Regarding your comment about "make" being baked into the build process, we 
> try to always use MAKE as a variable defined in Makedefs under the top level 
> directory for the reason you mentioned; to make it easy to switch to any 
> "make". If there are places were make is hard-coded then we should fix that. 

Well, If you “grep -R "--include=[Mm]akefile" "\bmake\b" * | grep -v “?” you 
will see a number of places where “make” appears to be hard coded.

It is possible to use a different name for make if you also have a make.exe in 
your path (I’ve just tried it) but, even in a directory that has previously 
worked, If I remove make.exe from my path, leaving just mingw32-make.exe then 
it fails like this

$ mingw32-make wUnicon32 
CPPFLAGS='-IC:/Users/Don/UniconBuild/unicon-3976/src/gdbm 
-IC:/Users/Don/UniconBuild/unicon-3976/src/libtp' CXX='gcc'

=============================================
Running configuration and setup scripts NT 32
=============================================

cd config/win32/gcc && sh config.sh

cd config/win32/gcc && sh nt-config.sh

Configuring for console build...

cd config/win32/gcc && sh config32.sh

Running 32-bit build configuration...


Done!


=========================
Building NT Unicon 32-bit
=========================

make Unicon
makefile:24: recipe for target 'wUnicon32' failed
process_begin: CreateProcess(NULL, make Unicon, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [wUnicon32] Error 2


The reason for the CPPFLAGS= and the CXX= are that I copied my previously 
successful build command (and I couldn’t get it to build without CPPFLAGS and 
CXX)..

Just in case something weird was happening with a combination of different 
executions in the same build directory I tried it, starting from scratch with a 
new copy of an unconfigured system: the build fails for the same reason.  Here 
is a console log. 

Don@Win10-VM MSYS /c/Users/Don/UniconBuild/unicon-3976-test
$ mingw32-make WUnicon
Reloading the Makefile from config/win32/gcc/makefile.top
cp config/win32/gcc/makefile.top Makefile
Done.

Ready to build Windows Unicon
Make sure the Unicon bin directory is in your path before continuing, then run:

   -  "make WUnicon32" for a 32-bit build, or
   -  "make WUnicon64" for a 64-bit build - requires MinGW64.


Don@Win10-VM MSYS /c/Users/Don/UniconBuild/unicon-3976-test
$ mingw32-make WUnicon32

=============================================
Running configuration and setup scripts NT 32
=============================================

cd config/win32/gcc && sh config.sh

cd config/win32/gcc && sh nt-config.sh

Configuring for console build...

cd config/win32/gcc && sh config32.sh

Running 32-bit build configuration...


Done!


=========================
Building NT Unicon 32-bit
=========================

make Unicon
makefile:24: recipe for target 'WUnicon32' failed
process_begin: CreateProcess(NULL, make Unicon, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [WUnicon32] Error 2

Don@Win10-VM MSYS /c/Users/Don/UniconBuild/unicon-3976-test

The only way I’ve got it to work is if I have “make.exe’ available somewhere in 
my PATH. I also had to have the CPPFLAGS and CXX arguments. Do you build 
successfully without them?
For me, without CXX I get g++ (which doesn’t go very well) and without the 
CPPFLAGS it can’t find ndbm.h (when compiling rttparse.c) and tp.h (when 
compiling libtp).

Cheers

Don

PS. I think that the “not for the faint of heart” comment in FAQ 16 in 
http://unicon.org/faq.html <http://unicon.org/faq.html> is a bit harsh these 
days.  It wasn’t that difficult to get it work.


------------------------------------------------------------------------------
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to