Installing SGDK 1.00

SGDK only sub forum

Moderator: Stef

Post Reply
tryphon
Very interested
Posts: 316
Joined: Sat Aug 17, 2013 9:38 pm
Location: France

Installing SGDK 1.00

Post by tryphon »

Hello,

I can't make the new version of SGDK.

I unzipped it in C:\sgdk100, edited my %GDK% and %GDK_WIN%, checked my PATH contains %GDK_WIN%\bin, run

Code: Select all

%GDK_WIN%\bin\make -f %GDK_WIN%\makelib.gen
and got :


Code: Select all

C:\>%GDK_WIN%\bin\make -f %GDK_WIN%\makelib.gen
c:/sgdk100/bin/sjasm -ic:/sgdk100/src -ic:/sgdk100/inc c:/sgdk100/src/z80_drv3.s
80 c:/sgdk100/src/z80_drv3.o80 out.lst
SjASM Z80 Assembler v0.39g6 - www.xl2s.tk
Pass 1 complete (0 errors)
Pass 2 complete
Errors: 0
c:/sgdk100/bin/bintos c:/sgdk100/src/z80_drv3.o80
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/z80
_drv3.s -o c:/sgdk100/src/z80_drv3.o
c:/sgdk100/bin/sjasm -ic:/sgdk100/src -ic:/sgdk100/inc c:/sgdk100/src/z80_drv4.s
80 c:/sgdk100/src/z80_drv4.o80 out.lst
SjASM Z80 Assembler v0.39g6 - www.xl2s.tk
Pass 1 complete (0 errors)
Pass 2 complete
Errors: 0
c:/sgdk100/bin/bintos c:/sgdk100/src/z80_drv4.o80
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/z80
_drv4.s -o c:/sgdk100/src/z80_drv4.o
c:/sgdk100/bin/sjasm -ic:/sgdk100/src -ic:/sgdk100/inc c:/sgdk100/src/z80_mvs.s8
0 c:/sgdk100/src/z80_mvs.o80 out.lst
SjASM Z80 Assembler v0.39g6 - www.xl2s.tk
Pass 1 complete (0 errors)
Pass 2 complete
Errors: 0
c:/sgdk100/bin/bintos c:/sgdk100/src/z80_mvs.o80
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/z80
_mvs.s -o c:/sgdk100/src/z80_mvs.o
c:/sgdk100/bin/sjasm -ic:/sgdk100/src -ic:/sgdk100/inc c:/sgdk100/src/z80_tfm.s8
0 c:/sgdk100/src/z80_tfm.o80 out.lst
SjASM Z80 Assembler v0.39g6 - www.xl2s.tk
Pass 1 complete (0 errors)
Pass 2 complete
Errors: 0
c:/sgdk100/bin/bintos c:/sgdk100/src/z80_tfm.o80
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/z80
_tfm.s -o c:/sgdk100/src/z80_tfm.o
c:/sgdk100/bin/sjasm -ic:/sgdk100/src -ic:/sgdk100/inc c:/sgdk100/src/z80_xgm.s8
0 c:/sgdk100/src/z80_xgm.o80 out.lst
SjASM Z80 Assembler v0.39g6 - www.xl2s.tk
Pass 1 complete (0 errors)
Pass 2 complete
Errors: 0
c:/sgdk100/bin/bintos c:/sgdk100/src/z80_xgm.o80
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/z80
_xgm.s -o c:/sgdk100/src/z80_xgm.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/bmp
_a.s -o c:/sgdk100/src/bmp_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/kde
bug.s -o c:/sgdk100/src/kdebug.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/mat
hs3D_a.s -o c:/sgdk100/src/maths3D_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/mem
ory_a.s -o c:/sgdk100/src/memory_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/smp
_null.s -o c:/sgdk100/src/smp_null.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/smp
_null_pcm.s -o c:/sgdk100/src/smp_null_pcm.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/sra
m_a.s -o c:/sgdk100/src/sram_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/sys
_a.s -o c:/sgdk100/src/sys_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/too
ls_a.s -o c:/sgdk100/src/tools_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/vdp
_pal_a.s -o c:/sgdk100/src/vdp_pal_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/vdp
_tile_a.s -o c:/sgdk100/src/vdp_tile_a.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/bmp
.c -o c:/sgdk100/src/bmp.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/eve
rdrive.c -o c:/sgdk100/src/everdrive.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/fat
16.c -o c:/sgdk100/src/fat16.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/joy
.c -o c:/sgdk100/src/joy.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/mat
hs.c -o c:/sgdk100/src/maths.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/mat
hs3D.c -o c:/sgdk100/src/maths3D.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/mem
ory.c -o c:/sgdk100/src/memory.o
c:/sgdk100/bin/gcc -m68000 -Wall -fno-builtin -Ic:/sgdk100/inc -Ic:/sgdk100/src
-Ic:/sgdk100/res -Bc:/sgdk100/bin -O1 -fomit-frame-pointer -c c:/sgdk100/src/psg
.c -o c:/sgdk100/src/psg.o
     11 [main] ? (25476) c:\sgdk100\bin\make.exe: *** fatal error - c:\sgdk100\b
in\make.exe: *** couldn't allocate heap, Win32 error 0, base 0x8B0000, top 0x8E0
000, reserve_size 192512, allocsize 196608, page_const 4096
    277 [main] make 23144 fork: child -1 - died waiting for longjmp before initi
alization, retry 0, exit code 0x100, errno 11
make: vfork: Resource temporarily unavailable
rm c:/sgdk100/src/z80_mvs.s c:/sgdk100/src/z80_xgm.s c:/sgdk100/src/z80_drv4.o80
 c:/sgdk100/src/z80_drv4.s c:/sgdk100/src/z80_drv3.s c:/sgdk100/src/z80_mvs.o80
c:/sgdk100/src/z80_xgm.o80 c:/sgdk100/src/z80_tfm.s c:/sgdk100/src/z80_drv3.o80
c:/sgdk100/src/z80_tfm.o80
In particular :

Code: Select all

     11 [main] ? (25476) c:\sgdk100\bin\make.exe: *** fatal error - c:\sgdk100\b
in\make.exe: *** couldn't allocate heap, Win32 error 0, base 0x8B0000, top 0x8E0
000, reserve_size 192512, allocsize 196608, page_const 4096
    277 [main] make 23144 fork: child -1 - died waiting for longjmp before initi
alization, retry 0, exit code 0x100, errno 11
make: vfork: Resource temporarily unavailable
What did I do wrong ?
Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef »

You did nothing wrong ;) that is just the shitty compiler which sometime crashes without any reason (problem with memory allocation)... just launch the command again until it completes the whole build process (hopefully make takes care about not recompiling already compiled files).
tryphon
Very interested
Posts: 316
Joined: Sat Aug 17, 2013 9:38 pm
Location: France

Post by tryphon »

You're right. Two make(s) later, and it seems to be okay :)

Now time to configure C::B (last time, I couldn't compile with it). Stay tuned !!! :)
Post Reply