problems building gcc cross compiler i586-elf

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bryankim
Posts: 4
Joined: Mon Nov 25, 2013 1:24 pm

problems building gcc cross compiler i586-elf

Post by bryankim »

I've tried to build a gcc cross-compiler i586-elf, following instructions to the letter from osdev community. I downloaded the gcc 4.8.2 source, binutils 2.23.2, gmp 5.1.3, mpc 1.0 and mpfr 3.1.2. I started getting so many warnings once i ran command: make all-gcc followed by make all-target-libgcc and thus, making the following command generate fatal error: make install-gcc the error's description: C:/cygwin64/bin/sh.exe ../gcc-4.8.2/mkinstalldirs /home/bryo/opt/cross /home/bryo/opt/cross /usr/bin/sh: line 3: cd: i586-elf/libgcc: No such file or directory make: * [install-target-libgcc] Error 1 Checking the destined directory for the cross-compiler, it's empty. I'm working on a x64 platform, windows 8.1, doing my job through Cygwin. So what actually went wrong? are there any sources i'm missing or is it something else? Since the stack overflow and stack exchange dudes have blocked my question, i have no one else to turn to. Any help will be greatly appreciated.
tlf30
Member
Member
Posts: 35
Joined: Fri Feb 15, 2013 9:29 pm

Re: problems building gcc cross compiler i586-elf

Post by tlf30 »

I have had very little luck using Cygwin in windows 8 beta, 8 or 8.1. Have you tried on win7/XP?? (I have not tried recently though, is there a distro for win8 out yet?)

If you have a copy of linux around, that would probably be your best bet.

Also see: http://forum.osdev.org/viewtopic.php?f=8&t=27359
Programming is like fishing, you must be very patient if you want to succeed.
bryankim
Posts: 4
Joined: Mon Nov 25, 2013 1:24 pm

Re: problems building gcc cross compiler i586-elf

Post by bryankim »

yep, i do have a linux distro in my pc, i'll try that then i'l get back to you. Thanks
bryankim
Posts: 4
Joined: Mon Nov 25, 2013 1:24 pm

Re: problems building gcc cross compiler i586-elf

Post by bryankim »

Hey, why is binutils taking forever to build? How long is it normally supposed to take?
User avatar
BMW
Member
Member
Posts: 286
Joined: Mon Nov 05, 2012 8:31 pm
Location: New Zealand

Re: problems building gcc cross compiler i586-elf

Post by BMW »

bryankim wrote:Hey, why is binutils taking forever to build? How long is it normally supposed to take?
It does take a while.

I have used that cross compiler tutorial with GCC 4.8.1 and binutils 2.23.2 and it worked perfectly. If it still fails, try GCC 4.8.1.
Currently developing Lithium OS (LiOS).

Recursive paging saves lives.
"I want to change the world, but they won't give me the source code."
bryankim
Posts: 4
Joined: Mon Nov 25, 2013 1:24 pm

Re: problems building gcc cross compiler i586-elf

Post by bryankim »

I figured it out, the reason that binutils-2.23.2 was taking infinitely long to build, was because i hadn't followed the procedure to the letter, it turns out that i hadn't installed g++, gnu gmp, gnu mpfr and gnu mpc. After installing them, both binutils-2.23.2 and gcc-4.8.2 built fine, though they took long to build as expected though. Cygwin doesn't work neither. Thanks for support and @BMW, good luck with your OS, please do make the alpha and beta versions available to us for testing. All the best
User avatar
BMW
Member
Member
Posts: 286
Joined: Mon Nov 05, 2012 8:31 pm
Location: New Zealand

Re: problems building gcc cross compiler i586-elf

Post by BMW »

bryankim wrote:I figured it out, the reason that binutils-2.23.2 was taking infinitely long to build, was because i hadn't followed the procedure to the letter, it turns out that i hadn't installed g++, gnu gmp, gnu mpfr and gnu mpc. After installing them, both binutils-2.23.2 and gcc-4.8.2 built fine, though they took long to build as expected though. Cygwin doesn't work neither. Thanks for support and @BMW, good luck with your OS, please do make the alpha and beta versions available to us for testing. All the best
Glad you got it working!
Currently developing Lithium OS (LiOS).

Recursive paging saves lives.
"I want to change the world, but they won't give me the source code."
Post Reply