Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tryed to compile on win xp :( #1

Open
hoornet opened this issue Dec 11, 2009 · 1 comment
Open

Tryed to compile on win xp :( #1

hoornet opened this issue Dec 11, 2009 · 1 comment

Comments

@hoornet
Copy link

hoornet commented Dec 11, 2009

this is what I got:

C:\GitSOURCE\LEARNING\tinyrb>make
cc vm/string.c
vm/string.c:1:20: alloca.h: No such file or directory
In file included from vm/tr.h:14,
from vm/string.c:4:
vm/vendor/kvec.h:84:7: warning: no newline at end of file
In file included from vm/tr.h:15,
from vm/string.c:4:
vm/vendor/khash.h:316:26: warning: no newline at end of file
vm/string.c: In function tr_sprintf': vm/string.c:128: warning: implicit declaration of functionalloca'
vm/string.c:128: warning: initialization makes pointer from integer without a ca
st
make: *** [vm/string.o] Error 1

C:\GitSOURCE\LEARNING\tinyrb>

@aXe1
Copy link

aXe1 commented Jan 30, 2011

just replace:
#include <alloca.h>

with this:
#include <malloc.h>

this works for me. but next u will have another error:
cc vm/vm.c
vm/vm.c: In function 'TrVM_load':
vm/vm.c:371:43: warning: comparison between signed and unsigned integer expressi
ons
vm/vm.c: In function 'TrVM_interpret':
vm/vm.c:328:1: error: unable to find a register to spill in class 'SIREG'
vm/vm.c:328:1: error: this is the insn:
(insn 178 173 179 8 vm/vm.c:183 (parallel [
(set (reg:SI 2 cx [3049])
(const_int 0 [0x0]))
(set (reg/f:SI 1 dx [orig:3047 D.4445 ] [3047])
(plus:SI (reg:SI 3041)
(reg:SI 2 cx [3045])))
(set (reg/f:SI 0 ax [orig:3048 argv ] [3048])
(plus:SI (reg/v/f:SI 3 bx [orig:3030 argv ] [3030])
(reg:SI 2 cx [3045])))
(set (mem:BLK (reg:SI 3041) [0 A32])
(mem:BLK (reg/v/f:SI 3 bx [orig:3030 argv ] [3030]) [0 A32]))
(use (reg:SI 2 cx [3045]))
]) 656 {rep_movqi} (expr_list:REG_DEAD (reg:SI 2 cx [3045])
(expr_list:REG_DEAD (reg/v/f:SI 3 bx [orig:3030 argv ] [3030])
(expr_list:REG_UNUSED (reg:SI 2 cx [3049])
(expr_list:REG_UNUSED (reg/f:SI 0 ax [orig:3048 argv ] [3048])
(expr_list:REG_UNUSED (reg/f:SI 1 dx [orig:3047 D.4445 ] [30
47])
(nil)))))))
vm/vm.c:328: confused by earlier errors, bailing out
make: *
* [vm/vm.o] Error 1

i'm using MinGW 4.5.1 from DevKit (DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe) on Wwindows 7 x64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants