building C++ Compiler on Cygwin for sh4 --> little pb !

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
Cool_newbie
DCEmu Newbie
DCEmu Newbie
Posts: 5
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue Dec 17, 2002 1:59 pm
Has thanked: 0
Been thanked: 0

building C++ Compiler on Cygwin for sh4 --> little pb !

Post by Cool_newbie »

hi,it's my first post on this board and sorry for my bad english, i'm french !

I tried to build a cgcc c/c++ compiler ( http://www.hangar-eleven.de/en/devdc-gcc-sh4-xgcc.html ) but the following file is missing :
sh-elf-g++.exe

can anyone send me this file ?? and "vqenc.exe" of Kos 1.1.9 ??

thanx
??? Just a little new'b ! ???
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

two things:

1) Your English is better than a lot I have seen on these boards.

2) I probably have those files. I'm not at my own computer at the moment, but I'll double-check in a little while. (I know I have the sh-elf-g++.exe, and I'm pretty sure I have the entire KOS 1.1.9 release.)
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Ok, I have the sh-elf-g++ for you and can send it to you later. I have to try and get vqenc to compile, and if I do I'll get that to you as well. But I need to know where to send it - there's no e-mail button on your post.
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

ok... vqenc didn't compile when I compiled KOS... can't get much else to compile either... but i've got the other if you want it. e-mail me or whatever.
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

do you have your environ file set up like this


# Build architecture
export KOS_ARCH="dreamcast"

# Compiler base strings
export KOS_CC_BASE="/usr/local/dc/sh-elf"
export KOS_CC_PREFIX="sh-elf"

# KOS base paths
export KOS_BASE="/usr/local/dc/kos"
export KOS_INCS="${KOS_BASE}/include"

# Make utility
export KOS_MAKE="make"

# Load utility
export KOS_LOADER="dc-tool -x"

# Genromfs utility
export KOS_GENROMFS="${KOS_BASE}/utils/genromfs/genromfs"

# SH-4 GCC paths
export KOS_CC="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-gcc"
export KOS_CCPLUS="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-g++"
export KOS_AS="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-as"
export KOS_AR="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ar"
export KOS_OBJCOPY="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-objcopy"
export KOS_LD="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ld"
export KOS_STRIP="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-strip"
export KOS_CFLAGS="-Wall -g -ml -m4-single-only -O2 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls"
export KOS_CPPFLAGS="-fno-operator-names -fno-rtti -fno-exceptions"
export KOS_AFLAGS="-little"
export KOS_LDFLAGS="-ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000"

# ARM7 GCC paths
export DC_ARM7BASE="/usr/local/dc/arm-elf"
export DC_ARM7CC="${DC_ARM7BASE}/bin/arm-elf-gcc"
export DC_ARM7AS="${DC_ARM7BASE}/bin/arm-elf-as"
export DC_ARM7AR="${DC_ARM7BASE}/bin/arm-elf-ar"
export DC_ARM7OBJCOPY="${DC_ARM7BASE}/bin/arm-elf-objcopy"
export DC_ARM7LD="${DC_ARM7BASE}/bin/arm-elf-ld"
export DC_ARM7CFLAGS="-mcpu=arm7 -Wall -O3"
export DC_ARM7AFLAGS="-marm7"
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
Cool_newbie
DCEmu Newbie
DCEmu Newbie
Posts: 5
Joined: Tue Dec 17, 2002 1:59 pm
Has thanked: 0
Been thanked: 0

Post by Cool_newbie »

my environ-dc.sh file si the same that your file (and kos, sh-elf, arm-elf directories are in usr/local/dc/)
when i have compliled the cgcc c/c++ compiler, the dos command freeze (called "rm") after a long time (4hours ?). Next time, after configuring kos, i write "make", and kos complile genromfs and wav2adpcm utils and next, stop because of vgenc ("collect2: Id returned 1 exit status...")

my e-mail adress is : gilbert.vaillant@voila.fr

thanx a lot :)
??? Just a little new'b ! ???
Cool_newbie
DCEmu Newbie
DCEmu Newbie
Posts: 5
Joined: Tue Dec 17, 2002 1:59 pm
Has thanked: 0
Been thanked: 0

Post by Cool_newbie »

can you check if all needed files are in this list for a cgcc c/c++ compiler :

D:\Program_Files\DC_Dev\Cygwin\usr\local\dc\sh-elf\bin

. <REP> 12/12/02 20:39 .
.. <REP> 12/12/02 20:39 ..
LIST TXT 0 18/12/02 18:22 list.txt
SH-ELF~1 EXE 1 054 161 12/12/02 20:39 sh-elf-size.exe
SH-ELF~2 EXE 1 640 025 12/12/02 20:40 sh-elf-objdump.exe
SH-ELF~3 EXE 1 107 677 12/12/02 20:40 sh-elf-ar.exe
SH-ELF~4 EXE 1 051 339 12/12/02 20:40 sh-elf-strings.exe
SH-ELF~5 EXE 1 107 677 12/12/02 20:40 sh-elf-ranlib.exe
SH-ELF~6 EXE 1 595 066 12/12/02 20:40 sh-elf-objcopy.exe
SH-ELF~7 EXE 1 183 436 12/12/02 20:40 sh-elf-addr2line.exe
SH-ELF~8 EXE 563 766 12/12/02 20:40 sh-elf-readelf.exe
SH-ELF~9 EXE 1 209 380 12/12/02 20:40 sh-elf-nm.exe
SH-EL~10 EXE 1 595 066 12/12/02 20:41 sh-elf-strip.exe
SH-EL~11 EXE 186 030 12/12/02 20:41 sh-elf-c++filt.exe
SH-EL~12 EXE 1 634 696 12/12/02 20:42 sh-elf-as.exe
SH-EL~13 EXE 272 806 12/12/02 20:42 sh-elf-gasp.exe
SH-EL~14 EXE 1 413 893 12/12/02 20:42 sh-elf-gprof.exe
SH-EL~15 EXE 1 641 135 12/12/02 20:43 sh-elf-ld.exe
GCOV EXE 81 393 13/12/02 23:07 gcov.exe
GCCBUG 15 327 13/12/02 23:07 gccbug
SH-EL~16 EXE 211 027 13/12/02 23:09 sh-elf-cpp.exe
SH-EL~17 EXE 208 433 13/12/02 23:10 sh-elf-gcc.exe

Thanks Reaper2k2
??? Just a little new'b ! ???
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

use kos 1.18 i get the same error for kos1.19 im looking into it
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
Cool_newbie
DCEmu Newbie
DCEmu Newbie
Posts: 5
Joined: Tue Dec 17, 2002 1:59 pm
Has thanked: 0
Been thanked: 0

Post by Cool_newbie »

Try this for kos Reaper2k2 :

Build error for SDL addon

I downloaded the source package (tar.gz) and got this error when compiling
the source
---------
/usr/local/dc/sh-elf/bin/sh-elf-ar rcs /usr/local/dc/kos-1.1.9/lib/libkosh.a
builtin.o chdir.o kosh.o input.o
make[2]: Leaving directory `/usr/local/dc/kos-1.1.9/addons/libkosh'
make -C SDL
make[2]: Entering directory `/usr/local/dc/kos-1.1.9/addons/SDL'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/usr/local/dc/kos-1.1.9/addons/SDL'
make[1]: *** [build-sdl] Error 2
make[1]: Leaving directory `/usr/local/dc/kos-1.1.9/addons'
make: *** [build-addons] Error 2
---------
I then moved out the SDL files from the "/addons/SDL/base/" directory to the
/addons/SDL/ directory and compiled again, this time with no errors.

/Viktor

And for me, what do i need to do ?
??? Just a little new'b ! ???
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

Well i use cvs to update kos plus ive got many other addon libs that are not included in kos 1.19 so ive gone back to my modded version
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
Cool_newbie
DCEmu Newbie
DCEmu Newbie
Posts: 5
Joined: Tue Dec 17, 2002 1:59 pm
Has thanked: 0
Been thanked: 0

Post by Cool_newbie »

Thanx for your reply ;). Now i have a sh4 c++ compiler.
But i need "cygintl-1.dll" for run sh-elf-g++.exe. Someone have it ??
??? Just a little new'b ! ???
polochon
DCEmu Respected
DCEmu Respected
Posts: 221
Joined: Sun Feb 03, 2002 3:52 pm
Location: France
Has thanked: 0
Been thanked: 0
Contact:

Post by polochon »

check the temp directory of the cygwin's installation : ../contrib/gettext/libintl1

it should be there .
Le site sur l'?mulation dreamcast en fran?ais c'est http://www.dcreload.fr.st

oggy aka polochon ;)
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

I couldn't get vqenc to compile either - it looks like it's looking for something from libjpeg, but for some reason it can't find it. It'll load the library, but it just won't find the functions, and that's with a freshly compiled version of libjpeg.

I might try compiling it using some other C compiler and seeing what I get. It might be a cygwin problem or something.
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

THINK one of us need to email dan potter and tell him because this version of kos 1.19 is not compiling

i did get it to compiling by making the header it asked for but it was a fake header just to get it to compile and the lib will not work after any way
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

I got KOS-1.1.9 to compile by removing vqenc, the vq example, and the SDL addon (because I don't want the version that comes with KOS 1.1.9) - and it works perfectly.
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

YES but most people that start out will not do that and be stumped it need to be fixed or a note put out some think

im using kos1.18 and ill stay with that its cvs 1.18 so just before he updated its basicly is kos1.19

even all the make files in my dir say kos1.19

IM sort of taking a little break but not YA know ! lol
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
Post Reply