newlib problems

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
Synlor
Official DCEMU Stalker
Official DCEMU Stalker
Posts: 1604
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue Apr 23, 2002 6:26 pm
Location: South Dakota
Has thanked: 0
Been thanked: 0
Contact:

newlib problems

Post by Synlor »

sorry for all the posts, but now i have a problem with making newlib. it gives me this error message:

Code: Select all

make[2]: Leaving directory `/gcc/build-newlib/sh-elf/newlib'
Making all in libc
make[2]: Entering directory `/gcc/build-newlib/sh-elf/newlib/libc'
Making all in stdlib
make[3]: Entering directory `/gcc/build-newlib/sh-elf/newlib/libc/stdlib'
/usr/local/dc/sh-elf/bin/sh-elf-gcc -DPACKAGE=\"newlib\" -DVERSION=\"1.10.0\"  -
I. -I../../../../../newlib-1.10.0/newlib/libc/stdlib  -O2 -DHAVE_GETTIMEOFDAY -I
../../targ-include -I../../../../../newlib-1.10.0/newlib/libc/../libc/include -f
no-builtin      -g -O2 -c ../../../../../newlib-1.10.0/newlib/libc/stdlib/__adju
st.c
/usr/local/dc/sh-elf/bin/sh-elf-gcc: not found
make[3]: *** [__adjust.o] Error 127
make[3]: Leaving directory `/gcc/build-newlib/sh-elf/newlib/libc/stdlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/gcc/build-newlib/sh-elf/newlib/libc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gcc/build-newlib/sh-elf/newlib'
make: *** [all-target-newlib] Error 2
how do i fix this? i'm going to try making it again, just in case i typed something wrong.


thanks a lot guys, this forum is really helpful, but your not as helpful as hardware yet, :), lol. gotta plug my own forum :wink:
Image
Thanks to Digital Chaos, GoldbergWWE, and ace for the avatar, sig, and badge!
http://devcast.dcemulation.com
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5665
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

Did you make a C only gcc compiler yet? You must have at least a C cross-compiler built before trying to make newlib. You could configure one like this:
../gcc-(your gcc version)/configure --prefix=/usr/local/dc/sh-elf --target=sh-elf --without-headers --with-newlib --enable-languages=c

Then do a "make all install", and then try to make newlib.
Hope that helps!
Synlor
Official DCEMU Stalker
Official DCEMU Stalker
Posts: 1604
Joined: Tue Apr 23, 2002 6:26 pm
Location: South Dakota
Has thanked: 0
Been thanked: 0
Contact:

Post by Synlor »

i already did that, or atleast i though i did, maybe i typed a wrong path. i'll check
Image
Thanks to Digital Chaos, GoldbergWWE, and ace for the avatar, sig, and badge!
http://devcast.dcemulation.com
Synlor
Official DCEMU Stalker
Official DCEMU Stalker
Posts: 1604
Joined: Tue Apr 23, 2002 6:26 pm
Location: South Dakota
Has thanked: 0
Been thanked: 0
Contact:

Post by Synlor »

ok, i did what you said, but when i did make all install, i got these errors:

Code: Select all

make[2]: sh-elf-ar: Command not found
make[2]: *** [libgcc.a] Error 127
make[2]: Leaving directory `/gcc/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/gcc/build-gcc/gcc'
make: *** [all-gcc] Error 2
in my sh-elf/bin directory there is a program named sh-elf-ar.exe there, so i don't know what it is complaining about.
Image
Thanks to Digital Chaos, GoldbergWWE, and ace for the avatar, sig, and badge!
http://devcast.dcemulation.com
Soilwork
DCEmu Freak
DCEmu Freak
Posts: 66
Joined: Sat Jul 06, 2002 7:40 am
Location: France
Has thanked: 0
Been thanked: 0
Contact:

Post by Soilwork »

I think you have to add your sh-elf/bin directory to the PATH variable
"And then... I'm glad I found true friends..."
"Avant de mourir, je suis heureux d'avoir eu des amis..."
Image
Synlor
Official DCEMU Stalker
Official DCEMU Stalker
Posts: 1604
Joined: Tue Apr 23, 2002 6:26 pm
Location: South Dakota
Has thanked: 0
Been thanked: 0
Contact:

Post by Synlor »

thanks, i'll try that
Image
Thanks to Digital Chaos, GoldbergWWE, and ace for the avatar, sig, and badge!
http://devcast.dcemulation.com
ssj4goku128
Insane DCEmu
Insane DCEmu
Posts: 290
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by ssj4goku128 »

Did you try the hanger eleven way of building the chain? I had to try like 10 times before it worked in CYGWIN[I know its easier to set up in Redhat/Mandrake/Open/Whichever preferred Linux environment[with the exception of CYGWIN].
Post Reply