public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Installation Help
@ 2001-01-03 14:46 Birchmier, Masaki
  2001-01-03 14:52 ` Alexandre Oliva
  0 siblings, 1 reply; 10+ messages in thread
From: Birchmier, Masaki @ 2001-01-03 14:46 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

I hope this is the proper place to send this message, for installation questions :-)

I am installing a cross compiler on a hp-ux 10.20 system for power pc,
the Make, ends with the following message...

_muldi3
/home/gnu/gcc/gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
/home/gnu/gcc/gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/home/gnu/gcc/gcc-2.95.2_powerpc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/home/gnu/gcc/gcc-2.95.2_powerpc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/home/gnu/gcc/gcc-2.95.2_powerpc/gcc'
make: *** [all-gcc] Error 2

I was hoping you could help with the debug, thanks.

Masaki Birchmier
Systems Administrator
(B-XZ33) Computing Support
Phone (206) 655-1636
Pager  (206) 797-1888

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

* Re: Installation Help
  2001-01-03 14:46 Installation Help Birchmier, Masaki
@ 2001-01-03 14:52 ` Alexandre Oliva
  2001-01-10  7:53   ` Roland Schwarz
  0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Oliva @ 2001-01-03 14:52 UTC (permalink / raw)
  To: Birchmier, Masaki; +Cc: 'gcc-help@gcc.gnu.org'

On Jan  3, 2001, "Birchmier, Masaki" <Masaki.Birchier@PSS.Boeing.com> wrote:

> I am installing a cross compiler on a hp-ux 10.20 system for power pc,
> the Make, ends with the following message...

Read the Cross GCC FAQ.  Get newlib.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Installation Help
  2001-01-03 14:52 ` Alexandre Oliva
@ 2001-01-10  7:53   ` Roland Schwarz
  2001-01-10 16:59     ` Alexandre Oliva
  0 siblings, 1 reply; 10+ messages in thread
From: Roland Schwarz @ 2001-01-10  7:53 UTC (permalink / raw)
  To: Birchmier, Masaki, Alexandre Oliva; +Cc: gcc-help

Hi,

sorry for bothering you, I got the very same error, that Masaki got.
I've been studing the Cross GCC for hours now. And tried and tried...

I've found out that even the suggested shell script 'one.tree-1.6.sh' is
doing strange things
as to say not correctly 'linking' directories. It does not use the
symlink-tree
script, so there are a lot of broken links after the script has been run.

In previous times there had been detailed descriptions about setting up
a cross compiler in the manual at 'gcc.gnu.org' They have disapeared almost
completely. Instead there is only a redirect to this FAQ.

Please could you give me any pointers of how to proceed?

I also tried to use the symlink-tree script to create one virtual source
directory,
first doing binutils-2.9.1 then gcc-2.95.2 and at last newlib-1.8.2.
configuring for target i386-something-linux and make ing all
stops with: include file _G_config.h not found somewhere in the build of
iogetline.c from
the libio subdir of gcc.

Thank you so much
Roland

----- Original Message -----
From: "Alexandre Oliva" <aoliva@redhat.com>
To: "Birchmier, Masaki" <Masaki.Birchier@PSS.Boeing.com>
Cc: <gcc-help@gcc.gnu.org>
Sent: Wednesday, January 03, 2001 23:52
Subject: Re: Installation Help


> On Jan  3, 2001, "Birchmier, Masaki" <Masaki.Birchier@PSS.Boeing.com>
wrote:
>
> > I am installing a cross compiler on a hp-ux 10.20 system for power pc,
> > the Make, ends with the following message...
>
> Read the Cross GCC FAQ.  Get newlib.
>
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Installation Help
  2001-01-10  7:53   ` Roland Schwarz
@ 2001-01-10 16:59     ` Alexandre Oliva
  2001-01-11  3:50       ` Roland Schwarz
  0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Oliva @ 2001-01-10 16:59 UTC (permalink / raw)
  To: Roland Schwarz; +Cc: Birchmier, Masaki, gcc-help

On Jan 10, 2001, "Roland Schwarz" <roland.schwarz@chello.at> wrote:

> stops with: include file _G_config.h not found somewhere in the build of
> iogetline.c from

Are you building for a *-linux* target?  In this case, you'll need
glibc, not newlib, since glibc is supposed to provide _G_config.h.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Installation Help
  2001-01-10 16:59     ` Alexandre Oliva
@ 2001-01-11  3:50       ` Roland Schwarz
  2001-01-11  3:59         ` Alexandre Oliva
  0 siblings, 1 reply; 10+ messages in thread
From: Roland Schwarz @ 2001-01-11  3:50 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-help

>
> Are you building for a *-linux* target?  In this case, you'll need
> glibc, not newlib, since glibc is supposed to provide _G_config.h.
>

Yes this is true. I try to compile it for linux. Does this imply, that
newlib is
useless for a linux target?
What I triy to do is to get a library with a smaller footprint.

Thank you,
Roland


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

* Re: Installation Help
  2001-01-11  3:50       ` Roland Schwarz
@ 2001-01-11  3:59         ` Alexandre Oliva
  2001-01-11  4:44           ` Roland Schwarz
  0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Oliva @ 2001-01-11  3:59 UTC (permalink / raw)
  To: Roland Schwarz; +Cc: gcc-help

On Jan 11, 2001, "Roland Schwarz" <roland.schwarz@chello.at> wrote:

> Does this imply, that newlib is useless for a linux target?

I heard someone was porting newlib to GNU/Linux.  But I don't know
whether it's finished, and it will probably have to provide
_G_config.h as glibc does.  Or you may force libio to build
_G_config.h itself (just run `make _G_config.h' in the libio build
dir).

But I foresee more problems.  Unless newlib provides the same crt
object files that glibc does, you'll have to modify GCC so as to use
those provided by newlib.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Installation Help
  2001-01-11  3:59         ` Alexandre Oliva
@ 2001-01-11  4:44           ` Roland Schwarz
  2001-01-11  5:01             ` Alexandre Oliva
  0 siblings, 1 reply; 10+ messages in thread
From: Roland Schwarz @ 2001-01-11  4:44 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-help

Sorry for bothering you again,

but I am completely lost now.
What did I:

under home/gcc I created:

home/rs/gcc/binutils-2.9.1
home/rs/gcc/gcc-2.95.2
home/rs/gcc/glibc-2.2

and untarred the respective source packages to them then I created

home/rs/gcc/src
home/rs/gcc/build

then I symlinked to one tree:

cd /home/rs/gcc/src
../gcc-2.95.2/symlink-tree ../glibc-2.2
../gcc-2.95.2/symlink-tree ../binutils-2.9.1
./gcc-2.95.2/symlink-tree ../gcc-2.94.2

after this I changed to build and configured for a native build (I am using
linux RedHat 7.0 on a 686)

cd ../build
../src/configure -v

then I tried to make

make all -v

BUT:

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../src/libiberty/../include
../../src/libibery/choose-temp.c
In file included from ../../src/libiberty/choose-temp:29:
../../src/include/stdio.h:32:28: stdio/stdio.h: File or directory not found
(original message in german)

other files not found follow

-------------------------
Some Background:

What I basically try to do is setting up a cross-compile environment where
the target is linux,
but beeing able to use different libraries. (Hopefully one with a smaller
footprint that has debug symbols
stripped or even an older version of the library, while still beeing able to
compile for the host too)

In the hope you can give me another hint.

Roland


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

* Re: Installation Help
  2001-01-11  4:44           ` Roland Schwarz
@ 2001-01-11  5:01             ` Alexandre Oliva
  0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Oliva @ 2001-01-11  5:01 UTC (permalink / raw)
  To: Roland Schwarz; +Cc: gcc-help

On Jan 11, 2001, "Roland Schwarz" <roland.schwarz@chello.at> wrote:

> cd /home/rs/gcc/src
> ../gcc-2.95.2/symlink-tree ../glibc-2.2
> ../gcc-2.95.2/symlink-tree ../binutils-2.9.1
> ./gcc-2.95.2/symlink-tree ../gcc-2.94.2

Unfortunately, the unified tree doesn't support glibc builds.  This
makes the bootstrapping of a glibc-based target significantly more
difficult than that of a newlib-based target.  I don't recall the
exact details, but you have to point GCC at glibc headers using
--with-headers, build it up to the point of having libgcc, install it,
then build glibc, then go back and build libio and libstdc++.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: installation help
  2003-03-07 12:47 installation help Osama Saad Khan
@ 2003-03-07 12:54 ` Stuart Longland
  0 siblings, 0 replies; 10+ messages in thread
From: Stuart Longland @ 2003-03-07 12:54 UTC (permalink / raw)
  To: osama; +Cc: gcc-help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Osama Saad Khan wrote:
> Hello
>
> My problem is that I want to install gcc-2.96 alongwith the already
> installed gcc-3.2. While going through the GCC mail archives, I came
across
> your message on the topic. I admit that I have very little experience in
> installing gcc or programs with complex configurations involved. I have
> downloaded the source rpm for version 2.96 but am at a loss as to how to
> continue. Can you please help me out?
>
> Thank you.
>
> Osama
>
> /***************************************
> Osama Saad Khan
> Research Assistant
> Department of Computer Science
> Lahore University of Management Sciences
> Lahore, Pakistan
> Phone: +92-42-5722670 (2144)
> ***************************************/
>
Try rpm --rebuild <NAME OF PACKAGE>

This should rebuild the source RPM for your architecture.  You'll end up
with a binary RPM you can then install which resides (AFAIK) in
/usr/src/redhat/RPMS.  I'm a relative newbie when it comes to this area
(normally I just get a tar.gz source archive and be done with it).

- --
+-------------------------------------------------------------+
| Stuart Longland           stuartl at longlandclan.hopto.org |
| Brisbane Mesh Node: 719             http://stuartl.cjb.net/ |
| I haven't lost my mind - it's backed up on a tape somewhere |
| Griffith Student No: 2100350   Course: Bachelor/IT @ Nathan |
+-------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1-nr1 (Windows 2000)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+aJZiIGJk7gLSDPcRAgKLAJ4iVGnEUC8yknnjqdecss7kjnFvBQCeM2Ct
QZnofLgMPqMgupbRn3TB5qA=
=YudK
-----END PGP SIGNATURE-----


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

* installation help
@ 2003-03-07 12:47 Osama Saad Khan
  2003-03-07 12:54 ` Stuart Longland
  0 siblings, 1 reply; 10+ messages in thread
From: Osama Saad Khan @ 2003-03-07 12:47 UTC (permalink / raw)
  To: gcc-help

Hello

My problem is that I want to install gcc-2.96 alongwith the already
installed gcc-3.2. While going through the GCC mail archives, I came across
your message on the topic. I admit that I have very little experience in
installing gcc or programs with complex configurations involved. I have
downloaded the source rpm for version 2.96 but am at a loss as to how to
continue. Can you please help me out?

Thank you.

Osama

/***************************************
Osama Saad Khan
Research Assistant
Department of Computer Science
Lahore University of Management Sciences
Lahore, Pakistan
Phone: +92-42-5722670 (2144)
***************************************/

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

end of thread, other threads:[~2003-03-07 12:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-03 14:46 Installation Help Birchmier, Masaki
2001-01-03 14:52 ` Alexandre Oliva
2001-01-10  7:53   ` Roland Schwarz
2001-01-10 16:59     ` Alexandre Oliva
2001-01-11  3:50       ` Roland Schwarz
2001-01-11  3:59         ` Alexandre Oliva
2001-01-11  4:44           ` Roland Schwarz
2001-01-11  5:01             ` Alexandre Oliva
2003-03-07 12:47 installation help Osama Saad Khan
2003-03-07 12:54 ` Stuart Longland

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).