r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Host Kit]

BrianH
13-Feb-2011
[1190]
Has anyone tried compiling the hostkit for MinGW with the Cygwin 
compiler set? I'm trying to minimize the number of GCC installations 
on my Windows machine, and the Android NDK requires Cygwin to do 
its build process.
Andreas
13-Feb-2011
[1191x4]
should be possible (and rather unproblematic) but give you something 
very different
mingw-compiled .exe's are native win32 exes, cygwin-compiled stuff 
depends on the cygwin runtime
so cygwin gcc really != mingw gcc, just as linux-x86 gcc != linux-arm 
gcc
(at least last time i looked at cygwin, which was years ago. but 
i doubt things have changed much)
BrianH
13-Feb-2011
[1195]
Cygwin can compile MinGW exes, Linux exes, Android ARM exes, etc. 
I am more concerned with the makefiles and settings involved.
Andreas
13-Feb-2011
[1196]
heh, it's not cygwin which does the compiling :)
BrianH
13-Feb-2011
[1197]
The MinGW compilers were originally hosted on Cygwin, and that has 
been supported all along.
Andreas
13-Feb-2011
[1198x3]
if you can compile arm and mingw binaries in cygwin, you already 
have two sets of compilers installed
and if you have the mingw cross-compiler installed within cygwin, 
that will do just fine with the current host kit
just be sure to use the correct gcc
BrianH
13-Feb-2011
[1201]
I am OK with more than one set of (cross) compilers but I don't want 
to duplicate the rest of the infrastructure. I'm having enough trouble 
with Git installing its own copy of MSys instead of using the already-installed 
copy; I don't want to compound the issue by having to install MinGW 
and Cygwin both.
Andreas
13-Feb-2011
[1202x2]
you'll probably have to use a different gcc (i686-pc-mingw32-gcc 
or something) or pass -mno-cygwin to the default gcc
btw, you don't need msys to compile the host kit. mingw alone is 
sufficient
BrianH
13-Feb-2011
[1204]
I was going to try using the i686 build (on this machine) of MinGW-64 
in Cygwin as my only Windows x86 compiler. Then I'd only need to 
add the Android ARM and x86 cross compilers to cover what I currently 
need to compile, and be able to make 64bit apps when I get my Win7 
machine rebuilt.
Andreas
13-Feb-2011
[1205]
without a 64-bit r3lib, you won't get 64bit builds of r3 any time 
soon :)
BrianH
13-Feb-2011
[1206]
Best to be prepared :)
Andreas
13-Feb-2011
[1207]
but usually, the x86-64 gcc's happily emit x86-32 just by passing 
-m32
BrianH
13-Feb-2011
[1208]
Yup, MinGW-64 has good support for generating 32bit code; I was researching 
the issues involved all of yesterday.
Oldes
14-Feb-2011
[1209x6]
Fixed the warning: deprecated conversion from string constant to 
'wchar_t*'

https://github.com/Oldes/R3A110/commit/aebc8b8334f1396862b7249d2ab993d83c1c11f8
should be probably improved to set different name for non Windows 
builds.
And here is merge with Andreas' changes:

https://github.com/Oldes/R3A110/commit/ed261d8a39b973de6635b9833c32ceffe0780cba
Tested only on Windows.
What is strange is, that exes built using make-gcc/3.1/makefile are 
detected by Norton Sonar as suspicious :-/  not the one built with 
Codeblocks

http://www.symantec.com/connect/forums/sonar-detects-our-protected-application-high-security-risk
this one:

http://securityresponse.symantec.com/security_response/writeup.jsp?docid=2010-090200-2232-99
I will submit it to Norton as false positive.
BrianH
14-Feb-2011
[1215:last]
Using the Cygwin compilers turned out to be unnecessary, so I can 
get away with just the Cygwin base install plus make for the NDK, 
TDD-GCC for the host kit, and Git for Windows for the Git support. 
Only one set of compilers per target platform, but 3 mostly duplicated 
sets of general command line tools.