World: r3wp
[Red] Red language group
older newer | first last |
Kaj 27-May-2011 [1586] | If you want to run Desktop, 0.6.6 indeed has a ready VMware image. On the other hand, the live CD you have has some enhancements. Such as R3 and the cURL binding :-) |
Dockimbel 27-May-2011 [1587] | Ah! :-) But can it run R2/View? |
Kaj 27-May-2011 [1588x2] | Desktop can only run ORCA, Boron and now R3. That's why I've never been able to use REBOL in the past decade |
Server has R2/Core, Boron and ORCA onboard | |
Dockimbel 27-May-2011 [1590] | Ok, so I need to compile Red/System scripts elsewhere and copy them in Syllable. |
Kaj 27-May-2011 [1591] | I'm using View on our inhouse Syllable Workstation, which I could give you a download for |
Dockimbel 27-May-2011 [1592] | copy them => copy the built binaries |
Kaj 27-May-2011 [1593] | Yes, I cross-compile everything on Syllable Workstation |
Dockimbel 27-May-2011 [1594] | Let me try Desktop first on VMware |
Kaj 27-May-2011 [1595] | Wow, base-address -2147483648 compiles |
Dockimbel 27-May-2011 [1596] | Well done Andreas! :-) |
Andreas 27-May-2011 [1597] | now do the binaries run :) ? |
Kaj 27-May-2011 [1598] | I'll have to reboot |
Dockimbel 27-May-2011 [1599] | If you can upload the binary somewhare I can test it from my running Desktop image. |
Kaj 27-May-2011 [1600x2] | readelf -a looks reasonable |
I've compiled the 0MQ binding, and that isn't ported to Desktop yet | |
Andreas 27-May-2011 [1602] | what's the dynamic linker called on syllable desktop? would/should /lib/ld-linux.so.2 work? |
Kaj 27-May-2011 [1603x4] | No need. It's in the kernel, so it doesn't need to be referenced from every binary |
I've compiled empty and hello now | |
http://red.esperconsultancy.nl/empty | |
http://red.esperconsultancy.nl/hello | |
Dockimbel 27-May-2011 [1607x2] | Ok, trying to download them (wget?) |
Got it | |
Kaj 27-May-2011 [1609x4] | Wget is not onboard. Curl is |
The browser is easiest | |
Or R3 | |
No, that's only on the live CD | |
Dockimbel 27-May-2011 [1613] | Runs but doesn't display anything. |
Kaj 27-May-2011 [1614] | Look at the end of /var/log/kernel |
Dockimbel 27-May-2011 [1615x2] | memmap_instance() RO overlap RW (80000000 + 00001000 -> 80000000) |
ERROR : execve(./hello) failed. Too late to recover, will exit | |
Kaj 27-May-2011 [1617] | That would be the next thing to work on |
Andreas 27-May-2011 [1618] | that sounds like something alignment-related is broken |
Kaj 27-May-2011 [1619] | Alignment should basically be the same as on Linux |
Dockimbel 27-May-2011 [1620x2] | Kaj, what was the link for Syllable's ELF loader source code? |
Just want to have a look at the source, I won't debug it right now, I'm still preparing slides for tomorrow's presentation. | |
Kaj 27-May-2011 [1622x2] | I'll try this again |
Kaj: I tested the new section headers on Syllable Desktop. memmap_instance() RO overlap RW (08048000 + 00001000 -> 08048000)" besides the entry point address being a problem, this could also be due to segment alignment, which we basically ignore, at the moment. could you try changing "page-size: 4096" to "page-size: 1" and see where that gets us?" | |
Dockimbel 27-May-2011 [1624] | Ok |
Andreas 27-May-2011 [1625] | i think syllable just ignored the alignment setting in the elf header last time we tried this |
Kaj 27-May-2011 [1626] | http://syllable.cvs.sourceforge.net/viewvc/syllable/syllable/system/sys/kernel/kernel/elf.c?view=markup |
Dockimbel 27-May-2011 [1627] | Thanks. |
Andreas 27-May-2011 [1628] | line 1111 originates the error |
Kaj 27-May-2011 [1629] | I've uploaded a new empty with page-size 1 |
Dockimbel 27-May-2011 [1630] | Same error. |
Andreas 27-May-2011 [1631x2] | hmm, if syllable ignores the alignment i guess we have to properly align things |
:) | |
Kaj 27-May-2011 [1633] | We can load an awful lot of other software, so it seems prudent |
Andreas 27-May-2011 [1634x2] | in line 183 of formats/ELF.r, change data-ptr: code-ptr + code-size to data-ptr: code-ptr + page-size |
and change back page-size to 4096 before that | |
older newer | first last |