GithubHelp home page GithubHelp logo

Comments (8)

cnvogelg avatar cnvogelg commented on June 30, 2024

Well, running smake without an smakefile will result in the "no file" error also on a real Amiga:

Bildschirmfoto 2022-02-20 um 15 10 32

from amitools.

acf avatar acf commented on June 30, 2024

Yes, that's what I'm aiming for :-). Before I start to get clever about a smakefile, I was just checking the binary loads.
I get "no files" on an amiga, or in FS-UAE, but I get an error about icon.library and nothing else on vamos.

from amitools.

reinauer avatar reinauer commented on June 30, 2024

You can define libs: in your vamosrc and have icon.library in there, but that will make it crash:

21:23:32.500    machine:  ERROR:  ----- ERROR in CPU Run #2 -----
21:23:32.500    machine:  ERROR:  Run: 'InitResident:icon.library': Initial PC=01232c, SP=00bc94
21:23:32.500    machine:  ERROR:  PC=ffffff3c  SR=-----    USP=0000bc78 ISP=00000700 MSP=00000780
21:23:32.500    machine:  ERROR:  D0=00000003  D1=00000005  D2=0000ffff  D3=00000000  D4=00000000  D5=00000000  D6=00000000  D7=000048b1
21:23:32.500    machine:  ERROR:  A0=0001a9ec  A1=0001a9ec  A2=0000bcf4  A3=0001a9be  A4=0001a9b8  A5=0001a8f4  A6=00000000  A7=0000bc78
21:23:32.500    machine:  ERROR:  SP-32=000000 SP-28=000000 SP-24=000000 SP-20=000000 SP-16=000000 SP-12=000000 SP-08=000000 SP-04=000000
21:23:32.500    machine:  ERROR:  SP+00=0123ea SP+04=00ffff SP+08=000000 SP+12=00be54 SP+16=00bf50 SP+20=ff01dd05 SP+24=00133c SP+28=000400
21:23:32.500    machine:  ERROR:  InvalidMemoryAccessError: Invalid Memory Access R(2): ffff3a
21:23:32.500    machine:  ERROR:  ----- ERROR in CPU Run #1 -----
21:23:32.500    machine:  ERROR:  Run: 'smake': Initial PC=002270, SP=00bcec
21:23:32.500    machine:  ERROR:  PC=000016a0  SR=--Z--    USP=0000bc98 ISP=00000700 MSP=00000780
21:23:32.500    machine:  ERROR:  D0=00000000  D1=00000005  D2=0000ffff  D3=00000000  D4=00000000  D5=00000000  D6=00000000  D7=00000000
21:23:32.500    machine:  ERROR:  A0=0000933c  A1=0000936a  A2=0000bcf4  A3=0000be54  A4=0000bf50  A5=ff01dd05  A6=0000133c  A7=0000bc98
21:23:32.500    machine:  ERROR:  SP-32=0123ea SP-28=00ffff SP-24=000000 SP-20=00be54 SP-16=00bf50 SP-12=ff01dd05 SP-08=00133c SP-04=000400
21:23:32.500    machine:  ERROR:  SP+00=00934e SP+04=00133c SP+08=0072fc SP+12=000000 SP+16=00732c SP+20=009a58 SP+24=00248c SP+28=0122b4
21:23:32.501    machine:  ERROR:  Traceback (most recent call last):
21:23:32.501    machine:  ERROR:    File "musashi/pytraps.pyx", line 19, in musashi.emu.trap_wrapper
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libcore/stub.py", line 165, in base_func
21:23:32.501    machine:  ERROR:      res = method(ctx)
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/lib/ExecLibrary.py", line 239, in OpenLibrary
21:23:32.501    machine:  ERROR:      addr = self.lib_mgr.open_lib(name, ver, cwd_lock=cwd, progdir_lock=pd)
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libmgr/mgr.py", line 167, in open_lib
21:23:32.501    machine:  ERROR:      addr = self.alib_mgr.open_lib(full_name, cwd_lock, run_sp, progdir_lock)
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libnative/mgr.py", line 147, in open_lib
21:23:32.501    machine:  ERROR:      load_addr, seglist_baddr = self.loader.load_ami_lib(
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libnative/loader.py", line 68, in load_ami_lib
21:23:32.501    machine:  ERROR:      return self._load_common(lib_name, seglist_baddr, run_sp)
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libnative/loader.py", line 36, in _load_common
21:23:32.501    machine:  ERROR:      lib_base, _ = self.initres.init_resident(
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libnative/initresident.py", line 52, in init_resident
21:23:32.501    machine:  ERROR:      lib_base = ml.run_init(
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/libnative/makelib.py", line 68, in run_init
21:23:32.501    machine:  ERROR:      rs = self.machine.run(
21:23:32.501    machine:  ERROR:    File "/home/stepan/.local/lib/python3.9/site-packages/amitools/vamos/machine/machine.py", line 553, in run
21:23:32.501    machine:  ERROR:      raise NestedCPURunError(pc, run_state.error)
21:23:32.501    machine:  ERROR:  amitools.vamos.error.NestedCPURunError: Nested CPU Run Failed: pc=0016a0: InvalidMemoryAccessError: Invalid Memory Access R(2): ffff3a
21:23:32.501       main:  ERROR:  vamos failed!

from amitools.

acf avatar acf commented on June 30, 2024

@reinauer Yup, I tried that too :-). I confess I'm largely cargo-culting here but this blogpost just ... worked :-)

I suppose what I'm trying to figure out at this stage is whether something in vamos changed, or whether the problem is I have a 3.2.1 AmigaOS and something has changed in icon.library that vamos doesnt like. I am assuming that smake 6.58 is the same between my install and the blogpost 10 years ago.

It works fine in 3.2.1 in UAE, with or without a smakefile ....

Screenshot 2022-02-21 at 11 02 07

Screenshot 2022-02-21 at 11 06 31

My rc file:

[volumes]
wb321=/Users/acf/Documents/FS-UAE/Hard Drives/WB321
sc=/Users/acf/Documents/FS-UAE/Hard Drives/shared/sasc

[assigns]
include=sc:include
lib=sc:lib
t=root:tmp

[path]
path=sc:c,wb321:c

and sc or slink work fine alone, its just smake that fails.

from amitools.

acf avatar acf commented on June 30, 2024

Just a follow up. I have it working just now just by replicating the smakefile - ie I use vamos to run the right compile and link instructions individually. I'm just curious, I guess :-).

For anyone else curious, I was working with a makefile on my mac to build code using bebbo/amiga-gcc and run my tests using vamos.

I wanted to make sure I stay SAS compatible and dont accidentally add any C thats too modern so am using my same makefile and vamos on the mac now to build using amiga-gcc and SAS, and then run the tests from both in, in a single make runtests invocation.

from amitools.

cnvogelg avatar cnvogelg commented on June 30, 2024

I was wondering why smake runs here in my vamos setup without problems.
Solution is found in my .vamosrc:

[icon.library]
mode=fake

This will create a fake icon.library whenever someone tries to open it. All calls are empty and return 0. This is sufficient for smake to run

from amitools.

acf avatar acf commented on June 30, 2024

aha! Thank you :-). I'll give it. go.

from amitools.

acf avatar acf commented on June 30, 2024

Worked like a charm :-)

from amitools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.