binutils problem

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:

binutils problem

Post by Synlor »

i'm redoing my whole toolchain to upgrade to kos 1.1.8(including reinstalling cygwin) and i'm using what i think are hte latest packages availible. i'm following hangar-eleven's guide, but i have a problem when i'm configuring the make file for binutils. it gives me this error every time

Code: Select all

checking whether to build static libraries... yes
    157 [main] sh 846037 fork_copy: user/cygwin data pass 2 failed, 0x980000..0x
CC3000, done 0, windows pid 4294188203, Win32 error 8
eval: Cannot fork: Resource temporarily unavailable
eval: Cannot fork: Resource temporarily unavailable
configure: error: libtool configure failed
Configure in /gcc/build-binutils/opcodes failed, exiting.
how do i fix this? i'm using the latest cygwin from cygwin.com, and using binutils 2.12.91
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: 5663
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 »

At this point you are trying to build the target=sh-elf version of binutils, right :?: I believe that binutils-2.12.91 is source for the target=cygwin version only. Try getting version 2.12.1 at the GNU ftp site. Hope that will work for you!
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'll try it in a little bit, thanks a lot!
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: 5663
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 »

Glad I could help, and I hope that it will work as well for you as it did for me!
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 »

2.12.1 didn't work, but 2.11.2 did! Its doen configuring and now is making bin utils. I can't wait till this is done because I have a program I want to try out. nothing special, not even anything is displayed on the screen, but i'm learning a lot from it. Since i really don't know C, its been a great help. Basically i'm just copying code from a few examples, and combining them, but also making sure i understand what each line of code means. its just going to play a cdda disc(i know there is an example, but this one is better, because i modified it, :)) it will be able to change tracks, change all the volume for both channels at once, and a few other features. I even making it display something on the VMU, :).

i probally should start another topic for this, but hey, i'm lazy. I have a few questions about c.

when i type:

Code: Select all

int x;
x = "would this work?";
could i make it a string like that without any other code?

also could someone tell me all of the other subroutine(is that the right word?) of cdrom_cdda?

ok, what about romdiscs? will i need to have one for the player type thing i'm making? the example doesn't have one, but then again its meant to be used with a serial cable. how much work is it to add romdisc support, just a few lines of code? would it just work i told the cdrom to spin down before the button detection happens, so i can swap it? i call cdrom_cdda_play(x%, cdda_tracks) when you press A.(i think that is the code, i don't have it in front of me.

okay, one last question, while typing this the make all install thing stopped, it gave this error:

Code: Select all

make[3]: Leaving directory `/gcc/build-binutils/ld'
make[2]: Leaving directory `/gcc/build-binutils/ld'
make[1]: Leaving directory `/gcc/build-binutils/ld'
make: *** No rule to make target `intall'.  Stop.
how do i fix this one?


thanks for everything everyone, sorry for the long post, :wink:
Image
Thanks to Digital Chaos, GoldbergWWE, and ace for the avatar, sig, and badge!
http://devcast.dcemulation.com
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 »

corta2863 wrote:2.12.1i probally should start another topic for this, but hey, i'm lazy. I have a few questions about c.

when i type:

Code: Select all

int x;
x = "would this work?";
could i make it a string like that without any other code?

okay, one last question, while typing this the make all install thing stopped, it gave this error:

Code: Select all

make[3]: Leaving directory `/gcc/build-binutils/ld'
make[2]: Leaving directory `/gcc/build-binutils/ld'
make[1]: Leaving directory `/gcc/build-binutils/ld'
make: *** No rule to make target `intall'.  Stop.
how do i fix this one?
No, you cannot make an integer a string under any circumstances. You could do this:

Code: Select all

 int x;
 x = 'A';
And hope the compiler will do some implicit typecasting on your part. But from what I remember, it won't. So you would have to do this:

Code: Select all

int x;
(char)x = 'A';
And explicitly typecast the integer to a character.
But why would you want to make an integer a string anyway? Just curious.


Second question:
Look at the last line of your error: No rule to make 'intall'
Find where 'intall' is in either the script or Makefile and replace it with install.
No signature.
Sanchez
DCEmu Ex-Admin
DCEmu Ex-Admin
Posts: 1098
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by Sanchez »

I've rarely seen the option

Code: Select all

(char)x = 'A';
work. It might compile, but will probably puke... If you're just trying to print out the string:

a) Use printf ala

Code: Select all

printf("My number is %d\n",variable);
b) Use sprintf ala

Code: Select all

sprintf(buffer,"My number is %d\n",variable);
The first is for direct printing, the second would be for if you need a string for use later....
"This is worse than when the Raccoon got in the copier!"
Post Reply