public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gnu-libc and egcs problems on linux
@ 1997-12-03  5:46 Mike Neuhauser
  1997-12-03 10:32 ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Neuhauser @ 1997-12-03  5:46 UTC (permalink / raw)
  To: libc-hacker; +Cc: egcs

Hi!

I've came across a problem with gnu-libc (snapshot 971201 from
ftp.kernel.org) and egcs-971201 under linux (my goal is to build
a cross compiler for a linux system that will use gnu-libc as its
libc). During the build of the cross compiler the header files of
gnu-libc are needed to extract certain system specific definitions
(to generate egcs/build/<target>/libio/_G_config.h). The script doing
this (egcs-971201/libio/gen-params) needs the whole definition of
certain data-types to be on a *single* line . This is not the case for
__sigset_t defined in libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h
which causes the cross-compiler build to fail. The following simple
patch fixes the problem. (It would be much more complicated to fix
egcs-971201/libio/gen-params.)

===================Patch Begin
--- libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h-old	Wed Dec  3 10:52:13 1997
+++ libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h	Wed Dec  3 10:52:31 1997
@@ -25,10 +25,7 @@
 /* A `sigset_t' has a bit for each signal.  */
 
 #define _SIGSET_NWORDS	(1024 / (8 * sizeof (unsigned long int)))
-typedef struct
-  {
-    unsigned long int __val[_SIGSET_NWORDS];
-  } __sigset_t;
+typedef struct { unsigned long int __val[_SIGSET_NWORDS]; } __sigset_t;
 
 #endif
===================Patch End

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

* Re: gnu-libc and egcs problems on linux
  1997-12-03  5:46 gnu-libc and egcs problems on linux Mike Neuhauser
@ 1997-12-03 10:32 ` Ulrich Drepper
  1997-12-03 10:32   ` Mike Neuhauser
  0 siblings, 1 reply; 6+ messages in thread
From: Ulrich Drepper @ 1997-12-03 10:32 UTC (permalink / raw)
  To: Mike Neuhauser; +Cc: libc-hacker, egcs

Mike Neuhauser <mike@gams.co.at> writes:

> (It would be much more complicated to fix
> egcs-971201/libio/gen-params.)

gen-params never has to run on Linux.  So why is this a problem?  I
don't want to uglify the headers because of some unrelated scripts.

-- Uli
---------------.      drepper at gnu.org  ,-.   Rubensstrasse 5
Ulrich Drepper  \    ,-------------------'   \  76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

* Re: gnu-libc and egcs problems on linux
  1997-12-03 10:32   ` Mike Neuhauser
@ 1997-12-03 10:32     ` Ulrich Drepper
  1997-12-03 10:32       ` Mike Neuhauser
  0 siblings, 1 reply; 6+ messages in thread
From: Ulrich Drepper @ 1997-12-03 10:32 UTC (permalink / raw)
  To: Mike Neuhauser; +Cc: libc-hacker, egcs

Mike Neuhauser <mike@gams.co.at> writes:

> So the _G_config.h from the host system is out-dated and _G_config.h
> has to be generated from the gnulibc2 header files (configure
> --with-headers=gnulibc2-headers-directory).

It is correct that the system version is outdated but never
_G_config.h must be generated for use with glibc.  This cannot work.

-- Uli
---------------.      drepper at gnu.org  ,-.   Rubensstrasse 5
Ulrich Drepper  \    ,-------------------'   \  76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

* Re: gnu-libc and egcs problems on linux
  1997-12-03 10:32 ` Ulrich Drepper
@ 1997-12-03 10:32   ` Mike Neuhauser
  1997-12-03 10:32     ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Neuhauser @ 1997-12-03 10:32 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: libc-hacker, egcs

In message < x7wwhm30sy.fsf@myware.rz.uni-karlsruhe.de >, Ulrich Drepper writes:

> Mike Neuhauser <mike@gams.co.at> writes:
> 
> > (It would be much more complicated to fix
> > egcs-971201/libio/gen-params.)
> 
> gen-params never has to run on Linux.  So why is this a problem?  I
> don't want to uglify the headers because of some unrelated scripts.

I'm absolutly sure that on my system it does run and it *has* to
(as far as I understand it): my host/build system uses the old
linux libc (libc-5) and the target system will use gnulibc2. So
the _G_config.h from the host system is out-dated and _G_config.h
has to be generated from the gnulibc2 header files (configure
--with-headers=gnulibc2-headers-directory).

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

* Re: gnu-libc and egcs problems on linux
  1997-12-03 10:32     ` Ulrich Drepper
@ 1997-12-03 10:32       ` Mike Neuhauser
  1997-12-03 12:54         ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Neuhauser @ 1997-12-03 10:32 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: libc-hacker, egcs

In message < x7ra7u2z94.fsf@myware.rz.uni-karlsruhe.de >, Ulrich Drepper writes:

> Mike Neuhauser <mike@gams.co.at> writes:
> 
> > So the _G_config.h from the host system is out-dated and _G_config.h
> > has to be generated from the gnulibc2 header files (configure
> > --with-headers=gnulibc2-headers-directory).
> 
> It is correct that the system version is outdated but never
> _G_config.h must be generated for use with glibc.  This cannot work.

Sorry, I didn't make myself clear enough: _G_config.h is needed during
the build of *egcs* when it is generated from the gnulibc2 headers. I
think this is fairly important as gnulibc2 is the new standard c-library
for linux.

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

* Re: gnu-libc and egcs problems on linux
  1997-12-03 10:32       ` Mike Neuhauser
@ 1997-12-03 12:54         ` Ulrich Drepper
  0 siblings, 0 replies; 6+ messages in thread
From: Ulrich Drepper @ 1997-12-03 12:54 UTC (permalink / raw)
  To: Mike Neuhauser; +Cc: libc-hacker, egcs

Mike Neuhauser <mike@gams.co.at> writes:

> Sorry, I didn't make myself clear enough: _G_config.h is needed during
> the build of *egcs* when it is generated from the gnulibc2 headers.

I know.  It still cannot work.  And it will become even more critical
in future.

> I think this is fairly important as gnulibc2 is the new standard
> c-library for linux.

It's not really important to make cross-compiling working.  Get and
install glibc with your current compiler.

-- Uli
---------------.      drepper at gnu.org  ,-.   Rubensstrasse 5
Ulrich Drepper  \    ,-------------------'   \  76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-03  5:46 gnu-libc and egcs problems on linux Mike Neuhauser
1997-12-03 10:32 ` Ulrich Drepper
1997-12-03 10:32   ` Mike Neuhauser
1997-12-03 10:32     ` Ulrich Drepper
1997-12-03 10:32       ` Mike Neuhauser
1997-12-03 12:54         ` Ulrich Drepper

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