[Ohrrpgce] SVN: teeemcee/10051 scons: Attempt to fix mac builds due to --gc-sections being missing

James Paige Bob at hamsterrepublic.com
Tue Feb 20 13:16:10 PST 2018


So I used hspeak version 3Tg on both
 my linux box and my Mac virtual machine, and the resulting autotest.hs
files differed.

I used the decompile.py tool from your rpgbatch branch of nohrio and found
the difference:

james at ghostorchid:~/Dropbox/src/otherohr/nohrio/3rdparty$ diff -u testlinux
testmac
diff -u testlinux/32504.hss testmac/32504.hss
--- testlinux/32504.hss    2018-02-20 13:07:44.589047653 -0800
+++ testmac/32504.hss    2018-02-20 13:01:39.493031141 -0800
@@ -1,7 +1,7 @@
 Script harmtiletests<-testdamagepatterns()
 do(
   setcaterpillarmode(1)
-  writegeneral(177, readgeneral(177) ,and, -4097)
+  writegeneral(177, readgeneral(177) ,and, -4096)
   walkhero(0, 3, 1)
   waitforhero(0)
   _checkpoint()


I notice that I am using euphoria 4.0.5 on my Linux box, but 4.1.0 on the
Mac, but none of the warnings at
https://rpg.hamsterrepublic.com/ohrrpgce/Compiling#hspeak seem to match the
problem I see.



On Tue, Feb 20, 2018 at 11:30 AM, James Paige <Bob at hamsterrepublic.com>
wrote:

> The test cases on Mac started failing with revision 9497, but that is just:
>
> r9497 | teeemcee | 2017-09-28 09:00:57 -0700 (Thu, 28 Sep 2017) | 2 lines
> scons now automatically reimports scripts into autotest.rpg and
> interactivetest.rpg
>
> The failure goes all the way back to revision 8184 which is the revision
> where this particular test was first added:
>
> r8184 | teeemcee | 2016-10-30 07:13:24 -0700 (Sun, 30 Oct 2016) | 4 lines
> autotest: add (failing) test for harm tiles when there are gaps in the
> active party
> Also add a test.rpg menu option to swap hero slots.
>
> But it only seems to fail if autotest.hss was compiled on mac. If compiled
> by by hspeak on linux, then the problem doesn't happen.
>
> Could this be an hspeak bug?
>
>
> On Tue, Feb 20, 2018 at 8:58 AM, James Paige <Bob at hamsterrepublic.com>
> wrote:
>
>> This does fix compiling on mac
>>
>> I do notice that scons test fails on mac, saying:
>>
>> ==> g_debug.txt <==
>> ! TRACE: rank = 1, slot = 2, get hero stat(slot, stat:hp) = 9, start hp
>> -- harm amount = 10
>> ! TRACE: ASSERT FAILURE:
>> ! TRACE: autotest.hss:2260: get hero stat(slot, stat:hp) == start hp --
>> harm amount [actual values were 9 == 10]
>> ! TRACE: crash() called from newgame -> runtests1 -> triggertests ->
>> harmtiletests -> testdamagepatterns -> asserthurtpattern -> considerrank ->
>> assertfailure -> crash
>> ! TRACE: in testsuite: assert hurt pattern, test no. 3
>> ! _checkpoint ignored
>> ...Quit the game.
>>
>> I'm going to go back and see if I can figure out when the failure started
>>
>>
>> On Tue, Feb 20, 2018 at 7:54 AM, <subversion at hamsterrepublic.com> wrote:
>>
>>> teeemcee
>>> 2018-02-20 07:54:42 -0800 (Tue, 20 Feb 2018)
>>> 67
>>> scons: Attempt to fix mac builds due to --gc-sections being missing
>>> ---
>>> U   wip/SConscript
>>> _______________________________________________
>>> Ohrrpgce mailing list
>>> ohrrpgce at lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20180220/5b57a204/attachment.html>


More information about the Ohrrpgce mailing list