public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Need help on this one.
@ 2001-12-03  4:50 Jan Svenungson
  2001-12-03  6:21 ` Paolo Carlini
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Svenungson @ 2001-12-03  4:50 UTC (permalink / raw)
  To: gcc

Hola!
I've posted a mail for help on the help-gcc list but no one was able to help me out, i have also tried to get hold of someone at the irc.linpeople.org #gcc but no luck there either... So if this mail is not apropriate for this list forgive me but i am really desperate with getting help with this thing...
What i am trying to do is to install gcc-2.95.3 on a slackware7 box and "make install" it to a separate partition. That partition will later be put in another box and act as "/" but are mounted in "/tmp/newinstall" on the building computer.
After the install is done (No errors, works fine!) i have tried to chroot into "/tmp/newinstall" (Which contains glibc, bash, etc. etc.) and things seem to work alright. I just need to set up some links and copy some files to the right place (cc1, cpp0, stuff like that). However, when i try to compile new things in the chroot environment gcc cant find the headers. It looks for them in "/tmp/newinstall/usr/lib/gcc-lib/i586-pc-linux-gnu/gcc-2.95.3/include/". I do not know how to make gcc understand that it is not in "/tmp/newinstall" at this point.
I have tried with "make prefix=/tmp/newinstall/usr local_prefix=/tmp/newinstall/usr/local/ gxx_include_dir=/tmp/newinstall/usr/include/g++ include_dir=/tmp/newinstall/usr/include/ install". I found some of these options in some docs at the gnu site but i dont know if these are the right ones to use really.
If i set up a link in the chroot environment from "/tmp/newinstall" to "/" it find the headers so obviously the install is ok actually, just that gcc doesn't know that "/tmp/newinstall" will be "/" later on. How the heck do i tell gcc this? glibc (and other programs) has the "make install_root=/whatever install" option and i assume gcc has to but i just cant find out what the right command options are...
Yours sincerely,
-- 

+------------------------------------+
|           Jan Svenungson           |
| jan<dot>svenungson<at>linux<dot>nu |
|            UIN: 6581164            |
|    Registered linux user #91145    |
+------------------------------------+
Those who can't write, write manuals.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help on this one.
  2001-12-03  4:50 Need help on this one Jan Svenungson
@ 2001-12-03  6:21 ` Paolo Carlini
  2001-12-03  6:49   ` Paolo Carlini
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Carlini @ 2001-12-03  6:21 UTC (permalink / raw)
  To: jan.svenungson; +Cc: gcc

Jan Svenungson wrote:

> Hola!
> I've posted a mail for help on the help-gcc list but no one was able to help me out, i have also tried to get hold of someone at the irc.linpeople.org #gcc but no luck there either... So if this mail is not apropriate for this list forgive me but i am really desperate with getting help with this thing...

[snip]

I'm not sure to understand your problem... But can't you simply manage to make install *after* having remounted the partition under /?

If your build dir is somewhere *in* the new partition, let's say /tmp/newpartition/..../gcc-build that should be feasible.

Cheers,
Paolo.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help on this one.
  2001-12-03  6:21 ` Paolo Carlini
@ 2001-12-03  6:49   ` Paolo Carlini
  0 siblings, 0 replies; 3+ messages in thread
From: Paolo Carlini @ 2001-12-03  6:49 UTC (permalink / raw)
  To: Paolo Carlini, gcc; +Cc: jan.svenungson

Paolo Carlini wrote:

> If your build dir is somewhere *in* the new partition, let's say /tmp/newpartition/..../gcc-build that should be feasible.

... the source dir, gcc-2.95.3, had better to be also *in* the new partition, of course, since some files inside the build dir are in fact links to the corresponding files of the source dir.

P.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-03 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-03  4:50 Need help on this one Jan Svenungson
2001-12-03  6:21 ` Paolo Carlini
2001-12-03  6:49   ` Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).