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]

Re: help with installing gcc in os x please.


At 04:55 28/12/2002 (GMT +0000), Ben Dougall wrote:
hiyer fwyzard,

well, i'm not sure. i think i'm just having trouble accessing it, but i'm not sure.

putting 'bin' and the linking issue aside, trying to access it directly from the objdir folder -

in the objdir are these files & folders:

config.cache (a 16k document)
config.status (a 4k document)
gcc (folder 289 items inside totaling 153mb)
libiberty (folder 49 items inside totaling 1mb)
Makefile (a 64k document)
powerpc-apple-darwin6.2 (an empty folder)
Sorry, you're right.
You should be able to access it like
gcc/xgcc -v

It's called xgcc to not confuse it with an installed one during bootstrap, I guess.

It's rather strange that the "powerpc-apple-darwin6.2" folder is empty. It should contain one or more support libraries.

while in (in meaning located in, while i'm using the terminal) these locations:
the 'objdir' folder, the 'gcc' folder mentioned in the above list, the 'libiberty' folder and the folder that contains 'objdir',
i've tried both './gcc -v' and './gccc -v'
i tried in the gccfolder as well although that was silly - i knew that wasn't going to work but still worth a go.

i've deleted the first install that was without the prefix c option, so i guess trying ./gcc was not going to work anyway, but still worth a go.

so the responses to typing those in were:
./gcc: Permission denied.
and
./gccc: Command not found.

but it only says 'permission denied' in response to './gcc -v' when there happens to be a folder in the directory that i'm in, called 'gcc', otherwise it says 'command not found'.
It says "permission denied" because you are trying to execute the gcc folder itself, not a file.

to me, it appears as if the whole thing has installed successfully and it's all there but i'm just not accessing it correctly. that's what it looks like to me but i'm not completely sure on that.

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)
:/ if the final gcc is contained in the objdir, deleting objdir would delete the final installed gcc wouldn't it?! :)
No.
After "make install" everthing will be in the directory specified by --prefix during configure.
But, if you cannot install, in the gcc subfolder of the objdir folder there should be a (working ?) GCC called xgcc.
If not, bootstrap was not succesfull.
So, after installation, you can safely delete the objdir folder.

If in the end you get it working, would you mind writing a small summary of the instrctions and posting it to gcc@gcc.gnu.org, so that it can be linked from GCC 3.2 results page ?
ok, no problem. will do. is gcc@gcc.gnu.org another list like this one?
Similar.
gcc@gcc.gnu.org is used for the *development* of GCC itself, and feedback from succesfull bootstrp and installation is sent thre to be added to the "succesfull build" page.
gcc-help@gcc.gnu.org is used to ask help on *using* (and installing, of course) GCC.

aha! look what i've found:
[Ben-Ds-Computer:~/cprac] bend% cd ../gcc/objdir/gcc
[Ben-Ds-Computer:~/gcc/objdir/gcc] bend% ./xgcc
xgcc: no input files
[Ben-Ds-Computer:~/gcc/objdir/gcc] bend% ./xgcc -v
Using built-in specs.
Configured with: ../gccfolder/configure --enable-threads=posix --enable-shared--program-suffix=c
Thread model: posix
gcc version 3.2.1
[Ben-Ds-Computer:~/gcc/objdir/gcc] bend%

:) so it is there and it's called xgcc ! (for some reason). i thought it would be there somewhere. and it's in the gcc folder that's in the objdir folder. so surely, deleting the objdir folder is not a good thing to do?! but some of it must be redundant. i'm sure the folder that's got all the original installation stuff can go. but the objdir folder is 150mb so some of it must be erasable too.
See above.
However, I've just done a clean boostrap under Linux (w/ C, C++, Fortran and Ada), and the *installation* folder is slightly bigger than 200 MB...

If this works, then the only problem is the missing PATH variable setting. To solve this you need to ask a MacOS user, as I don't know how to set it up on your system (maybe somewhere in a kind of Control Panel, maybe :-)
At this point, I'd try somthing along these lines:
completely erase the objdir folder
make a new one
configure with the same options as before, plus --prefix=whatever you coose, with
../[srcdir]/configure > ../"configure output".txt 2> ../"configure errors".txt
bootstrap the compiler with
make bootstrap > ../"GCC output".txt 2> ../"GCC errors".txt
try to install with
make install > ../"installation output".txt 2> ../"installation errors".txt

If you DON'T get a working compiler in the --prefix= direcotry (under its bin subfolder, actually), put those 6 files in an archive (possibly .zip, .tgz, anything but a MacOS archive) and mail them to me, so that I can try to see wht went wrong.

Good luck,
fwyzard




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]