Page 1 of 1
problems building gcc cross compiler i586-elf
Posted: Mon Nov 25, 2013 1:33 pm
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.
Re: problems building gcc cross compiler i586-elf
Posted: Mon Nov 25, 2013 2:51 pm
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
Re: problems building gcc cross compiler i586-elf
Posted: Mon Nov 25, 2013 5:19 pm
by bryankim
yep, i do have a linux distro in my pc, i'll try that then i'l get back to you. Thanks
Re: problems building gcc cross compiler i586-elf
Posted: Wed Nov 27, 2013 10:27 am
by bryankim
Hey, why is binutils taking forever to build? How long is it normally supposed to take?
Re: problems building gcc cross compiler i586-elf
Posted: Wed Nov 27, 2013 4:41 pm
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.
Re: problems building gcc cross compiler i586-elf
Posted: Thu Nov 28, 2013 5:58 am
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
Re: problems building gcc cross compiler i586-elf
Posted: Fri Nov 29, 2013 1:48 am
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!