Hallo Besucher, der Thread wurde 7,6k mal aufgerufen und enthält 18 Antworten

letzter Beitrag von FeralChild am

Building mega65-core

  • Today I used some time trying to build the mega65-core from github (with Xubuntu 18.04.3 LTS 64bit).


    The very good build documentation describes it step by step.


    After some "make"s I did, I got stuck with the following error:

    Code
    1. Running first pass to get size of routines...
    2. sh: 1: Ophis/bin/ophis: not found
    3. Reading sizes of routines...
    4. src/preprocess.c:170:main():Could not open temp.map for reading. Did Ophis fail due to an error in one of the assembly files?
    5. Makefile:45: recipe for target 'c64/kernal/OUT.BIN' failed
    6. make[1]: *** [c64/kernal/OUT.BIN] Error 255
    7. make[1]: Verzeichnis „/home/snoopy/git_root/mega65-core/src/open-roms“ wird verlassen
    8. Makefile:514: recipe for target 'src/open-roms/newc65' failed
    9. make: *** [src/open-roms/newc65] Error 2


    What is this "Ophis/bin/ophis"? It isn't mentioned in the build documentation?




    Here is the full log of the last "make" run:

  • Thanks for the answers.


    I tried both hints:

    Code
    1. snoopy@snoopy-vb:~/git_root/mega65-core$ git clone https://github.com/gardners/Ophis.git
    2. fatal: Zielpfad 'Ophis' existiert bereits und ist kein leeres Verzeichnis.
    3. snoopy@snoopy-vb:~/git_root/mega65-core$ git submodule init
    4. snoopy@snoopy-vb:~/git_root/mega65-core$ git submodule update

    If I try "make" again I get the same errors as mentioned in my first posting. :S


    Maybe something is missing in my cloned git-rep?


    That's my first try with the build and I don't know where I should start with the search for the error. ?(


    Any hint is welcome!

  • Hast Du es mal mit

    Code
    1. git clone --recurse-submodules https://github.com/MEGA65/mega65-core.git
    2. cd mega*
    3. make -j8

    versucht? Das lädt hier alles inkl. aller (auch unnötiger) submodules in ein neues repo.

    Ein make -j8 (Zahl hängt von den Prozessor-Kernen ab...) compiliert hier ein paar viele Dateien...8o

    Läuft noch... keine Ahnung wie lange... cmake wäre da ausgabefreudiger :)


    P.S. zu früh gefreut...


    Sieht so aus als fehlt mir noch etwas in /opt ... mal sehn...

  • Sorry for the German response... looks like me is missing the XILINX SDK... maybe download all submodules will also download maybe unneeded submodules.


    Looks like the XILINX SDK takes up to 26Gb... way to much for my slow DSL connection for now... maybe i will have a look at it on weekend...

  • Snoopy ...

    Code
    1. git clone --recurse-submodules https://github.com/MEGA65/mega65-core.git
    2. cd mega*
    3. rm -rf src/vhdl/*
    4. git clone https://github.com/cambridgehackers/fpgajtag.git
    5. make -j8

    This will end the assembly without error, but maybe the VHDL code is still missing. Maybe that will help you, anyway, 26Gb is way to much download for me here right now so i cannot help testing the VHDL stuff...

  • Sorry for the German response...

    Wegen mir kein Problem! Ich bin deutscher Muttersprachler, soweit man das von jemanden sagen kann, der in der niederbayrischen Provinz aufgewachsen ist. :)


    Ich wollte die Frage hier nur auf englisch stellen, damit möglichst viele Interessierte und - vor allem auch Paul ;) - mitlesen und eventuell mithelfen können.


    I'll try the hints as soon as I have enough sparetime for them and will report about it. Thanks for all the help!

  • Snoopy ...

    Code
    1. git clone --recurse-submodules https://github.com/MEGA65/mega65-core.git
    2. cd mega*
    3. rm -rf src/vhdl/*
    4. git clone https://github.com/cambridgehackers/fpgajtag.git
    5. make -j8

    This will end the assembly without error, but maybe the VHDL code is still missing. Maybe that will help you, anyway, 26Gb is way to much download for me here right now so i cannot help testing the VHDL stuff...

    Perfect! This worked! :thumbsup: Many thanks!


    The "Xilinx Vivado WebPACK edition" I hadn't downloaded yet. This will be the next step.

  • Hey Paul, I have tried this hint from darkvision and that works.


    For your interest I have attached the txt file (created as mentioned above). Maybe you can see what is wrong with my first attempt?


    Thanks for all!

  • I just tried again to build mega65-core as described in the build doc.


    Here is the log of it:

    It's seems to be the same error as mentioned in my first post here.


    Trying the steps described by darkvision in this post all works fine.

  • mega65 Yes, Open ROMs has moved to KickAssembler completely (but from the logs I can see that some old version is being compiled) and does not need any submodules anymore (but requires Java now to run the KickAssembler).


    The build system has changed since then - to build the newc65.rom file type 'make build/newc65.rom' (or 'make all' if you want all the builds). On my development branch you will find pre-built file (with release date and number embedded in ROM) in 'bin' subdirectory (this change is not merged yet).


    Be warned, however - this ROM has a problem under XEMU, once we try to print a character in the top-right corner of the screen it damages screen memory and crashes. Reason unknown yet, the bug does not reproduce under VICE (I'm curious if this happens on a real Mega65 too...). Unfortunately, the startup banner from Retrofan (default for Mega65 build) does exactly this - I think I'll change it temporarily until the problem is resolved, so the ROM is at least usable under XEMU. Hypothesis: we might accidentally trigger one of the Mega65 extended opcodes.


    spasskl Ophis needs Python 2.x only (not JRE), no Open ROMs version from the past required both Ophis and KickAssembler.


    Unfortunately, I will be rather busy for the upcoming few days and I can't look into this right now.