Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Can't compile asm

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c
Ambito
compilers

Direzione di ricerca

Inizia dal punto di ingresso ./asm (main, mostrato nella sessione GDB) e dal Makefile; esegui ./asm ./zork.s e ispeziona i percorsi asm_dir/ e Players/ menzionati nell’elenco. Il lavoro è completato quando un input .s valido produce il file .cor previsto, mentre una sintassi non valida segnala un errore invece di terminare silenziosamente con il codice 01.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I don't know why, maybe its something dumb and I misunderstand things, but I cant compile any asm source code file. I run and asm program just does nothing and call_assembly function just returns 0. No Errors or segfaults ever printed, even checked in gdb. I assume its suppose to generate .cor file in the same directory but there is nothing, and nothing in Players folder too. If I modify the .s file and write some syntax errors on purpose in there same thing, asm program gives nothing (looks like it does not even parse the file). The game itself runs fantastically from the example files that are compiled already.

here is the output.

root@kali:~/Desktop/Corewar# gdb --args ./asm ./bigzork.s
GNU gdb (Debian 8.2.1-2) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./asm...(no debugging symbols found)...done.
(gdb) start
Temporary breakpoint 1 at 0x1675
Starting program: /root/Desktop/Corewar/asm ./bigzork.s

Temporary breakpoint 1, 0x0000555555555675 in main ()
(gdb) next
Single stepping until exit from function main,
which has no line number information.
File |./bigzork.s| 0 
__libc_start_main (main=0x555555555671 <main>, argc=2, argv=0x7fffffffe1a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe198) at ../csu/libc-start.c:342
342	../csu/libc-start.c: No such file or directory.
(gdb) 
[Inferior 1 (process 12290) exited with code 01]
(gdb) 
The program is not being run.
(gdb) q

root@kali:~/Desktop/Corewar# ./asm ./zork.s
File |./zork.s| 0 
root@kali:~/Desktop/Corewar# ls
asm  asm_dir  author  bigzork.s  corewar  images  libft  LICENSE.txt  Makefile  Players  README.md  VM  zork.s
root@kali:~/Desktop/Corewar# 

Help pls!

Lingua principale
C
Stelle
224
Fork
26
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di emilwallner/Corewar

Tutte le issue di emilwallner/Corewar

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.