This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi Ben,At 20.09 23/12/2002 +0000, Ben Dougall wrote: fwyzard: thanks very much for such a thorough response :)
/usr/local/bin is a folder. There's nohing "special" about it, it's just a conventional folder to store "non-standard" binaries.i've never quite understand that - i've seen /usr/local/bin mentioned a lot but where/what is it? i don't seem to have a folder called bin in a folder called local... anywhere. is it a kind of virtual path?! i'm guessing. what i mean is, is it something that isn't going to be represented by folders/directories that i can see like normal folders represented as icons in the finder? i guess usr may be my user name rather than 'usr', but i still can't see what that means.In this way you'll get gcc & co. in /usr/local/bin.
so i'm not sure if it's succeeded or not. it may easily have worked and i'm just not sure how to access the new gcc rather than the apple gcc.
I think that it is quite possible yes, and that it will probably work.The first step is the configuration: this stage sets things up to build GCC for your particular machine and usage, eg.: if you want to use it to compile for that same machine [native compiler] or to build binaries that will run on a different kind of machine (the target) [cross compiler]. You could alse make on a machine A a compiler that will run on machine B building binaries for machine C. :-)slightly separate question - this isn't what i'm trying to achieve at the moment, but i'd really like to know for future:
if the target machine and your machine are both macs and both running os x (but maybe not the same version of os x, but say at least both 10.2 or higher) is it ok to copy the compiled gcc from your machine to another machine? copy gcc after it's been compiled on one machine, over to a similar but different machine?
does the installation process put files outside of the objdir folder, or is the final executable gcc all contained in that objdir folder?The final GCC is contained in the objdir folder, along with all the temporary thiongs it used to boostrap (all in almost 3 copies, remember). After installing (make install) you can safely delete the objdir folder (and the srcdir one, or course, when you're done building all the things you need); the installed GCC should be way smaller. For example, the latest RedHat Linux package for the core (C only) GCC 3.2.1 is slighlty more than 11 MB.
I hope this time we can make it to the end !thanks again for a very helpful set of instructions, ben.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |