need help

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
Devin
DCEmu Newbie
DCEmu Newbie
Posts: 6
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sat Mar 08, 2003 6:48 pm
Has thanked: 0
Been thanked: 0

need help

Post by Devin »

I was following the tutorial at http://www.gungans.de/h11/en/devdc-gcc- ... utils.html and I got down to where it says "Configure your makefile so that it reflects your TARGET and DIRECTORIES". When I do that step, it gives me this error.

Configuring for a i686-pc-cygwin host.
Created "Makefile" in /gcc/build-binutils using "mh-frag"
cc: not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

so what'd I do wrong?
EvilSporkMan
God Of All Things Sporkish
God Of All Things Sporkish
Posts: 755
Joined: Sat Feb 16, 2002 1:04 pm
Location: Somewhere over the cuckoo's nest
Has thanked: 0
Been thanked: 0

Post by EvilSporkMan »

It'd help if you told us what you typed before that came up...
You can go anywhere you want if you look serious and carry a clipboard.
Devin
DCEmu Newbie
DCEmu Newbie
Posts: 6
Joined: Sat Mar 08, 2003 6:48 pm
Has thanked: 0
Been thanked: 0

Post by Devin »

I typed
target=sh-elf
prefix=/usr/local/dc/$target
binaries=$prefix/bin
PATH=$binaries:$PATH
cd /gcc/build-binutils
../binutils-2.11.2/configure --target=$target --prefix=$prefix
User avatar
toastman
Iron Fist of Justice
Iron Fist of Justice
Posts: 4933
Joined: Sat Nov 10, 2001 3:08 am
Location: New Orleans
Has thanked: 0
Been thanked: 0
Contact:

Post by toastman »

*** You must set the environment variable CC to a working compiler.

Read your error messages. They are wonderful for trying to help you solve your problems.
You have 2 options:
A) Make a symlink 'cc' that points to 'gcc'. This is what is done on most *nix systems that have gcc.
B) Go through the configure script and and replace every instance of 'cc' with 'gcc' (Case sensitive)

I'd vote for A)
For more on creating a symlink (aka symbolic link) type 'man link'
No signature.
Devin
DCEmu Newbie
DCEmu Newbie
Posts: 6
Joined: Sat Mar 08, 2003 6:48 pm
Has thanked: 0
Been thanked: 0

Post by Devin »

I know this is probably a dumb question, toastman, but what do you mean "type 'man link'"? type it where?
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 »

Well, that'll probably only work on a Linux (or other real Unix system) anyway - I don't think that Cygwin has a man program.

Basically, he means "look up 'link' in the manual".

'man' is a program which displays pages from the electronic manual for a Unix system. It basically the equivalent of the Windows help system (although much more technical).

It looks like your compiler tools are installed incorrectly. Try typing "gcc" at the BASH prompt. It should say something like "No files given". If it can't find GCC, you need to install it.
Devin
DCEmu Newbie
DCEmu Newbie
Posts: 6
Joined: Sat Mar 08, 2003 6:48 pm
Has thanked: 0
Been thanked: 0

Post by Devin »

I typed "gcc" and it said "command not found" so, I guess it isn't installed right? How do I install it?
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 »

You don't have GCC, so you need to download it.

If you're using Cygwin, you'd be best off using the Setup program, and selecting everything under 'development'.

If you're using a Unix system, you can probably get some binaries from here. Maybe.
Devin
DCEmu Newbie
DCEmu Newbie
Posts: 6
Joined: Sat Mar 08, 2003 6:48 pm
Has thanked: 0
Been thanked: 0

Post by Devin »

thanks, I'll try that tonight. :D
Devin
DCEmu Newbie
DCEmu Newbie
Posts: 6
Joined: Sat Mar 08, 2003 6:48 pm
Has thanked: 0
Been thanked: 0

Post by Devin »

:( dang it dang it dang it.... the download got to 98% and then said "download incomplete, try again?" well, I haven't tried again yet, but I'll probably try again tonight
Post Reply