1. Cannot Return to 32-Bit Phix After 64-Bit Phix

Pete! I built a 64-bit p and made QoL changes to edita, but when compiling it afresh, it's telling me Arwen isn't 64-bit compatible, so I'm trying to return to a 32-bit p, and it's giving me an error.

I've commented format PE64, uncommented format PE32, and get this error:

PS C:\Program Files (x86)\Phix> p -cp 
 
Check for and shut down any running instances of p.exe and/or pw.exe 
          (retry messages are given when required after round 4, and 
           if it cannot overwrite both, it will not overwrite either) 
 
Self-host round 1: compiling p.exw 
Self-host round 1: compiled OK (0.36s), creating pnew.exe 
C:\Program Files (x86)\Phix\pEmit2.e:505 in procedure appenddsDword() 
attempt to divide by 0 
    v = 3.435996678e+10 
    s = <novalue> 
... called from C:\Program Files (x86)\Phix\pEmit2.e:2250 in procedure flatdump() 
    s = {0,1,0,20993,0,23,3,3.435996678e+10,0} 
    refcount = 1 
    reloc = 0 
    l = 9 
    l20 = 56 
    i = 8 
... called from 
Global & Local Variables 
 
--> see C:\Program Files (x86)\Phix\ex.err 
Press Enter... 

I also tried compiling by commenting out both the "format PE32" and the "format PE64," thinking it would default to 32-bit, but it just creates another 64-bit version.

What should I do next?

new topic     » topic index » view message » categorize

2. Re: Cannot Return to 32-Bit Phix After 64-Bit Phix

euphoric said...

What should I do next?

Take the easy way out: blag yourself a fresh copy of https://github.com/petelomax/Phix/blob/master/pw.exe , rename it as (say) p32.exe and put it where it needs to be and use that to run/compile Edita, for now and forever.
If that link does not work, and perhaps better anyway, try getting pw.exe out of http://phix.x10.mx/phix.1.0.5.zip or you should be able to create a pw.exe from the above p.exe by running "p -p" (above link corrected).

We can then take a bit more leisurely look at what the heck just went wrong (if we actually really need to, that is).

new topic     » goto parent     » topic index » view message » categorize

3. Re: Cannot Return to 32-Bit Phix After 64-Bit Phix

petelomax said...

We can then take a bit more leisurely look at what the heck just went wrong (if we actually really need to, that is).

We definitely need to. This was a simple process that led to me being stuck. grin

new topic     » goto parent     » topic index » view message » categorize

4. Re: Cannot Return to 32-Bit Phix After 64-Bit Phix

euphoric said...
petelomax said...

We can then take a bit more leisurely look at what the heck just went wrong (if we actually really need to, that is).

We definitely need to. This was a simple process that led to me being stuck. grin

Hmm, I've reproduced the problem here but it's not clear what's really going wrong. I commented out the offending line (505 in pEmit2.e) and the build completes and Edita runs.
Not entirely convinced that is the best-est thing to do, but getting v2 off the ground so I can completely rewrite that nasty bit of code is probably what I should focus on.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu