郭雪松 | 2 Feb 05:52
Picon
Favicon

RE: Cannot compile pike 7.8 from git

Can anyone fix this?
 
by the way, It look like PIke-v7.8.352 can not be compiled by mingw with even static link.

Guo Xuesong
 
From: zenothing <at> hotmail.com
To: pike <at> roxen.com
Subject: Cannot compile pike 7.8 from git
Date: Sun, 29 Jan 2012 19:21:34 +0800

.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:\005fae\008f6f\0096c5\009ed1;}
src/interpret_protos.h looks not correct, many \275 in it.

Guo Xuesong
Picon
Picon
Picon

RE: Cannot compile pike 7.8 from git

I might be wrong here, but the last time I tried to compile Pike using
Mingw, it failed miserably. After patching the most obvious
flaws/problems, it did compile but the resulting binary was useless
and crashed while trying to execute the master.

Have you (or anyone else for that matter) managed to compile Pike
under Mingw in recent times?

郭雪松 | 2 Feb 08:13
Picon
Favicon

RE: Cannot compile pike 7.8 from git

I'm just trying.
 
After fix something I got a tpike.exe.
tpike.exe complain "build/mingw32_nt-5.1-1.0.17_0.48_3_2_-i686/master.pike:42: Error in constant definition." and stoped.
 
 
 
Guo Xuesong
 
> To: pike <at> roxen.com
> Subject: RE: Cannot compile pike 7.8 from git
> From: 6341 <at> lyskom.lysator.liu.se
> Date: Thu, 2 Feb 2012 07:05:01 +0000
>
> I might be wrong here, but the last time I tried to compile Pike using
> Mingw, it failed miserably. After patching the most obvious
> flaws/problems, it did compile but the resulting binary was useless
> and crashed while trying to execute the master.
>
> Have you (or anyone else for that matter) managed to compile Pike
> under Mingw in recent times?
>
Henrik Grubbström | 2 Feb 10:24
Picon
Favicon

RE: Cannot compile pike 7.8 from git

On Thu, 2 Feb 2012, ¹ùÑ©ËÉ wrote:

> I'm just trying.
>
> After fix something I got a tpike.exe.
> tpike.exe complain 
> "build/mingw32_nt-5.1-1.0.17_0.48_3_2_-i686/master.pike:42: Error in 
> constant definition." and stoped.

"Error in constant definition" in the master for the first constant is a 
classic indication that the machine code support is broken.

Try recompiling with --without-machine-code.

> Guo Xuesong

--
Henrik Grubbström					grubba <at> roxen.com
Roxen Internet Software AB
郭雪松 | 2 Feb 11:42
Picon
Favicon

RE: Cannot compile pike 7.8 from git

Thanks very much.
 
Compile Pike-v7.8.352 under mingw successful.
 
following actions are needed:
 
* replace PIDLIST_ABSOLUTE with ITEMIDLIST* in module system/nt.c
* remove line __declspec(dllimport) void __cdecl _dosmaperr(unsigned long); in src/fdlib.c
* insert line #define STRUNCATE 80 into src/fdlib.c
* use this cmdline to make: CONFIGUREARGS="--without-COM --without-machine-code" make

Guo Xuesong
 
> Date: Thu, 2 Feb 2012 10:24:46 +0100
> From: grubba <at> roxen.com
> To: zenothing <at> hotmail.com
> CC: pike <at> roxen.com
> Subject: RE: Cannot compile pike 7.8 from git
>
> On Thu, 2 Feb 2012, ¹ùÑ©ËÉ wrote:
>
> > I'm just trying.
> >
> > After fix something I got a tpike.exe.
> > tpike.exe complain
> > "build/mingw32_nt-5.1-1.0.17_0.48_3_2_-i686/master.pike:42: Error in
> > constant definition." and stoped.
>
> "Error in constant definition" in the master for the first constant is a
> classic indication that the machine code support is broken.
>
> Try recompiling with --without-machine-code.
>
> > Guo Xuesong
>
> --
> Henrik Grubbström grubba <at> roxen.com
> Roxen Internet Software AB
Henrik Grubbström | 2 Feb 16:21
Picon
Favicon

Re: Cannot compile pike 7.8 from git

On Sun, 29 Jan 2012, ¹ùÑ©ËÉ wrote:

> src/interpret_protos.h looks not correct, many \275 in it.

Since you've succeded in building Pike 7.8, I assume you've identified the 
cause for this?

As far as I can see, src/interpret_protos.h is generated from 
src/interpret_functions.h via src/interpret_protos.h_src. Does
either of these files contain anything strange?

> Guo Xuesong

--
Henrik Grubbström					grubba <at> roxen.com
Roxen Internet Software AB
Henrik Grubbström | 2 Feb 16:27
Picon
Favicon

Re: Cannot compile pike 7.8 from git

On Thu, 2 Feb 2012, Henrik Grubbström wrote:

> On Sun, 29 Jan 2012, ¹ùÑ©ËÉ wrote:
>
>> src/interpret_protos.h looks not correct, many \275 in it.
>
> Since you've succeded in building Pike 7.8, I assume you've identified the 
> cause for this?
>
> As far as I can see, src/interpret_protos.h is generated from 
> src/interpret_functions.h via src/interpret_protos.h_src. Does
> either of these files contain anything strange?

On a closer look, the problem is most likely the src/strip_opcodes script.
What are your locale settings?

Does it work better if you add the lines

   LC_ALL=C
   export LC_ALL

early in src/strip_opcodes (and remove the old *.h_src files)?

--
Henrik Grubbström					grubba <at> roxen.com
Roxen Internet Software AB
郭雪松 | 2 Feb 16:46
Picon
Favicon

RE: Cannot compile pike 7.8 from git

there are many \275 in src/interpret_protos.h_src

Guo Xuesong
 
> Date: Thu, 2 Feb 2012 16:21:55 +0100
> From: grubba <at> roxen.com
> To: zenothing <at> hotmail.com
> CC: pike <at> roxen.com
> Subject: Re: Cannot compile pike 7.8 from git
>
> On Sun, 29 Jan 2012, ¹ùÑ©ËÉ wrote:
>
> > src/interpret_protos.h looks not correct, many \275 in it.
>
> Since you've succeded in building Pike 7.8, I assume you've identified the
> cause for this?
>
> As far as I can see, src/interpret_protos.h is generated from
> src/interpret_functions.h via src/interpret_protos.h_src. Does
> either of these files contain anything strange?
>
> > Guo Xuesong
>
> --
> Henrik Grubbström grubba <at> roxen.com
> Roxen Internet Software AB
郭雪松 | 2 Feb 16:56
Picon
Favicon

RE: Cannot compile pike 7.8 from git

Thanks. It works.
 
"make distclean" should delete *.h_src, or it is not so clean.

Guo Xuesong
 
> Date: Thu, 2 Feb 2012 16:27:04 +0100
> From: grubba <at> roxen.com
> To: zenothing <at> hotmail.com
> CC: pike <at> roxen.com
> Subject: Re: Cannot compile pike 7.8 from git
>
> On Thu, 2 Feb 2012, Henrik Grubbström wrote:
>
> > On Sun, 29 Jan 2012, ¹ùÑ©ËÉ wrote:
> >
> >> src/interpret_protos.h looks not correct, many \275 in it.
> >
> > Since you've succeded in building Pike 7.8, I assume you've identified the
> > cause for this?
> >
> > As far as I can see, src/interpret_protos.h is generated from
> > src/interpret_functions.h via src/interpret_protos.h_src. Does
> > either of these files contain anything strange?
>
> On a closer look, the problem is most likely the src/strip_opcodes script.
> What are your locale settings?
>
> Does it work better if you add the lines
>
> LC_ALL=C
> export LC_ALL
>
> early in src/strip_opcodes (and remove the old *.h_src files)?
>
> --
> Henrik Grubbström grubba <at> roxen.com
> Roxen Internet Software AB
郭雪松 | 3 Feb 11:49
Picon
Favicon

MinGW is good

Dynamic link under MinGW looks good, I even use dlfcn-win32 to make my old dlopen code run.
Why Pike must linked static under MinGW?
 
After I installed dlfcn-win32, I try to make pike again, Something such as ___Math.so is build out,
but ___Math.so has a ELF header, not MZ header, and Pike complain can't load it.
 
Maybe this is the problem.

Guo Xuesong

Gmane