Page 1 of 1
Errors & Suggestions for GCC Cross Tut
Posted: Fri Nov 23, 2012 4:49 am
by SoulofDeity
Noticed an error in the requirements section:
MinGW + MSYS is an option, and as it addresses the native Windows API instead of a POSIX emulation layer, results in a slightly faster. Some...
Also, I wanna suggest adding "CFLAGS=-Wno-error" to the "make" lines for building binutils and gcc, and point out that when using binutils-2.22, there's an error in "binutils/dwarf.c" in the function dwarf_select_sections_by_letters() that can be fixed by replacing "optarg" with "letters".
Re: Errors & Suggestions for GCC Cross Tut
Posted: Fri Nov 23, 2012 6:01 am
by bluemoon
You can pass --disable-werror to configure instead of messing CFLAGS, this is also known issue when building on mac.
Re: Errors & Suggestions for GCC Cross Tut
Posted: Fri Nov 23, 2012 1:50 pm
by gerryg400
SoulofDeity wrote:Noticed an error in the requirements section:
MinGW + MSYS is an option, and as it addresses the native Windows API instead of a POSIX emulation layer, results in a slightly faster. Some...
What's the error ?
Re: Errors & Suggestions for GCC Cross Tut
Posted: Fri Nov 23, 2012 2:29 pm
by SoulofDeity
gerryg400 wrote:SoulofDeity wrote:Noticed an error in the requirements section:
MinGW + MSYS is an option, and as it addresses the native Windows API instead of a POSIX emulation layer, results in a slightly faster. Some...
What's the error ?
MinGW + MSYS is an option, and as it addresses the native Windows API instead of a POSIX emulation layer, results in a slightly faster <missing noun>. Some...
The CFLAGS=-Wno-error or --disable-werror option is also needed to build with MinGW.
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 2:18 am
by SoulofDeity
I hate to double post, but this is a different question here, why don't people just upload an already built cross compiler instead of expecting noobs to do it?
Here's the one I built. Specs:
- Host: Windows 32-bit
- Target: i586-elf
- Built With: MinGW (no cygwin dll dependency )
- Extra Libraries: libgcc
Download Here
If you're worried about it being malware or something, someone can do a virus check. Just trying to make life easier is all...
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 3:18 am
by bluemoon
SoulofDeity wrote:I hate to double post, but this is a different question here, why don't people just upload an already built cross compiler instead of expecting noobs to do it?
Somehow it is expected one to be able to deal with the toolchain himself/herself as OS developer.
Furthermore, who's going to host the build for infinite number of { host platform x target platform x binutil version x gcc version } ? Not to add llvm to the matrix yet.
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 4:10 am
by Griwes
What bluemoon said, plus:
We don't expect *noobs* to do it, we expect everyone to be able to read English ("Languages" point in Required Knowledge) and to be able to think. It's not hard. And building the cross compiler doesn't take much time on any sane (= modern) hardware.
Also stop using word "noob" as synonymous to "newbie"; they have completely different meaning. We don't want noobs here, but newbies with problems other than "I can't read, can you read that for me?" or "I know the solution you gave me, but I explicitly stated I don't want it!" are welcome.
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 11:45 am
by SoulofDeity
By 'noobs' I was referring to people who are just getting started in os development. Wrong term I guess, but still you wouldn't need to host infinite number gcc toolchains. It's pretty much safe to assume that they're going to be using Windows, Mac, or Linux, and be targeting either i586-elf, x86_64-elf, or arm-elf, or ppc-elf.
That's only 12 toolchains, and if you factor in that people using Window's and Linux most likely won't be targeting arm-elf or ppc-elf, its really only 8 toolchains. I'm not saying they shouldn't learn how to port it because it's a necessity down the road, I just think it would be best if beginners were able to focus more on what they're wanting to do than preparation.
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 12:27 pm
by bluemoon
SoulofDeity wrote:By 'noobs' I was referring to people who are just getting started in os development. Wrong term I guess, but still you wouldn't need to host infinite number gcc toolchains. It's pretty much safe to assume that they're going to be using Windows, Mac, or Linux, and be targeting either i586-elf, x86_64-elf, or arm-elf, or ppc-elf.
That's only 12 toolchains, and if you factor in that people using Window's and Linux most likely won't be targeting arm-elf or ppc-elf, its really only 8 toolchains. I'm not saying they shouldn't learn how to port it because it's a necessity down the road, I just think it would be best if beginners were able to focus more on what they're wanting to do than preparation.
1. There are people using PE format
2. There are more than one linux (ubuntu family, debian family, red hat family, etc) that do not execute the same binary due to different dependency libraries.
3. Some people are playing with MIPS (eg. those runs on router)
4. As noted above, there are multiple versions of binutil and gcc available
5. Some people also integrate their own libc (or libgloss) into gcc
6. Some people does not use gcc at all, but llvm or watcom
In short, you may cover a certain number of builds, but you can never fits all need, and that due to it's quite easy and quick to build one, nobody bothered to give / download binaries, since maintaining the updates for tens of builds is proven to be messy headache.
I just think it would be best if beginners were able to focus more on what they're wanting to do than preparation.
Come on, it take no time at all to follow exactly the step on the wiki, and takes about half an hour to build it. If you have a build script it can be done in 70 seconds. Do it really draw any focus or consume any effort?
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 3:32 pm
by Brynet-Inc
There is nothing preventing someone from searching for a precompiled cross-compiler themselves, but providing binaries here is a mistake.
If they can't read instructions or use a search engine, are you truly helping?
Re: Errors & Suggestions for GCC Cross Tut
Posted: Sun Nov 25, 2012 10:02 pm
by SoulofDeity
Brynet-Inc wrote:There is nothing preventing someone from searching for a precompiled cross-compiler themselves, but providing binaries here is a mistake.
If they can't read instructions or use a search engine, are you truly helping?
Idk, I just my personal opinion.