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".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...
Errors & Suggestions for GCC Cross Tut
-
- Member
- Posts: 193
- Joined: Wed Jan 11, 2012 6:10 pm
Errors & Suggestions for GCC Cross Tut
Noticed an error in the requirements section:
Re: Errors & Suggestions for GCC Cross Tut
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
What's the error ?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...
If a trainstation is where trains stop, what is a workstation ?
-
- Member
- Posts: 193
- Joined: Wed Jan 11, 2012 6:10 pm
Re: Errors & Suggestions for GCC Cross Tut
gerryg400 wrote:What's the error ?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...
The CFLAGS=-Wno-error or --disable-werror option is also needed to build with MinGW.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...
-
- Member
- Posts: 193
- Joined: Wed Jan 11, 2012 6:10 pm
Re: Errors & Suggestions for GCC Cross Tut
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:
If you're worried about it being malware or something, someone can do a virus check. Just trying to make life easier is all...
Here's the one I built. Specs:
- Host: Windows 32-bit
- Target: i586-elf
- Built With: MinGW (no cygwin dll dependency )
- Extra Libraries: libgcc
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
Somehow it is expected one to be able to deal with the toolchain himself/herself as OS developer.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?
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.
- Griwes
- Member
- Posts: 374
- Joined: Sat Jul 30, 2011 10:07 am
- Libera.chat IRC: Griwes
- Location: Wrocław/Racibórz, Poland
- Contact:
Re: Errors & Suggestions for GCC Cross Tut
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.
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.
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
-
- Member
- Posts: 193
- Joined: Wed Jan 11, 2012 6:10 pm
Re: Errors & Suggestions for GCC Cross Tut
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.
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
1. There are people using PE formatSoulofDeity 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.
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.
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?I just think it would be best if beginners were able to focus more on what they're wanting to do than preparation.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: Errors & Suggestions for GCC Cross Tut
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?
If they can't read instructions or use a search engine, are you truly helping?
-
- Member
- Posts: 193
- Joined: Wed Jan 11, 2012 6:10 pm
Re: Errors & Suggestions for GCC Cross Tut
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.