post
poster: toraton
description: thetacompiler errors
language: plain text
[download]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
toraton@lithedark CS301_project$ python project.py 
Running test_one.
DEFAULT REL
section .data

section .text
    global _foo
    _foo:
    push    ebp
    mov    ebp, esp
    mov    eax, 4
    mov    esp, ebp
    pop    ebp
    ret
    ret


nasm_code:1: error: parser: instruction expected
ld_classic: can't open: asm_out.o (No such file or directory, errno = 2)
rm: asm_out.o: No such file or directory
Traceback (most recent call last):
  File "project.py", line 177, in <module>
    main()
  File "project.py", line 175, in main
    run_tests()
  File "project.py", line 166, in run_tests
    test_one()
  File "project.py", line 51, in test_one
    compiled_obj = import_assembly("test_one", code, ['int foo();'])
  File "project.py", line 26, in import_assembly
    return __import__(module_name)
  File "/Users/toraton/Documents/Code/theta/CS301_project/test_one.py", line 7, in <module>
    import _test_one
ImportError: No module named _test_one