|
src/interpret_protos.h looks not correct, many \275 in it.
Guo Xuesong |
|
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: [hidden email] To: [hidden email] Subject: Cannot compile pike 7.8 from git Date: Sun, 29 Jan 2012 19:21:34 +0800 src/interpret_protos.h looks not correct, many \275 in it. Guo Xuesong |
|
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? |
|
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: [hidden email] > Subject: RE: Cannot compile pike 7.8 from git > From: [hidden email] > 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? > |
|
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 [hidden email] Roxen Internet Software AB |
|
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: [hidden email] > To: [hidden email] > CC: [hidden email] > 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 [hidden email] > Roxen Internet Software AB |
|
In reply to this post by 郭雪松-2
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 [hidden email] Roxen Internet Software AB |
|
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? 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 [hidden email] Roxen Internet Software AB |
|
In reply to this post by Henrik Grubbström-2
there are many \275 in src/interpret_protos.h_src
Guo Xuesong
> Date: Thu, 2 Feb 2012 16:21:55 +0100 > From: [hidden email] > To: [hidden email] > CC: [hidden email] > 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 [hidden email] > Roxen Internet Software AB |
|
In reply to this post by Henrik Grubbström-2
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: [hidden email] > To: [hidden email] > CC: [hidden email] > 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 [hidden email] > Roxen Internet Software AB |
|
On Thu, 2 Feb 2012, wrote:
> Thanks. It works. Great, I've added this fix to Pike 7.8 (it was already present in 7.9). > "make distclean" should delete *.h_src, or it is not so clean. I believe that the *.h_src files are among the distibuted files. > Guo Xuesong > > >> Date: Thu, 2 Feb 2012 16:27:04 +0100 >> From: [hidden email] >> To: [hidden email] >> CC: [hidden email] >> 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 [hidden email] >> Roxen Internet Software AB > Henrik Grubbström [hidden email] Roxen Internet Software AB |
| Powered by Nabble | See how NAML generates this page |
