public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* missing gcc_eh
@ 2002-07-30  9:46 Carlos Ordonez
  2002-07-30 10:33 ` Paolo Carlini
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Ordonez @ 2002-07-30  9:46 UTC (permalink / raw)
  To: gcc

I am building glibc 2.2.5 and I am getting an error gcc_eh not found. I
have tried looking in the internet and found nothing. I am running with
gcc 3.1 in a 2.4.7 kernel. Did I miss something when I built gcc 3.1?
Any help would be appreciated. Thanks Carlos :-)

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: missing gcc_eh
@ 2002-07-30 11:18 Carlos Ordonez
  0 siblings, 0 replies; 7+ messages in thread
From: Carlos Ordonez @ 2002-07-30 11:18 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: gcc, pcarlini


Andreas, just realized that I  didn't send the GCC 3.1 build configuration:
../configure  --prefix=/usr \
        --enable-shared --enable-threads \
        --enable-cpp \
        $RPM_ARCH-suse-linux

Thanks Carlos :-)






^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: missing gcc_eh
@ 2002-07-30 11:36 Carlos Ordonez
  2002-07-30 12:07 ` Andreas Jaeger
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Ordonez @ 2002-07-30 11:36 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: gcc, pcarlini


Andreas, Paolo,  thank you for your quick response. I am trying to build
rpms for gcc 3.1, glibc 2.2.5 and binutils The system I am building is
Linux for S/390 - SuSE SLES 7 kernel version 2.4.7. I built binutils rpm
1st and installed it:
pbc99213:/usr/src/packages/SPECS # rpm -qa | grep binutils
binutils-2.12.1-1
pbc99213:/usr/src/packages/SPECS # ld -version
GNU ld version 2.12.1
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

Then I built GCC 3.1 and install it (I am thinking I should have done glibc
2.2.5 first and then GCC 3.1 -  should I?) :
pbc99213:/usr/src/packages/SPECS # rpm -qa | grep gcc
gcc-objc-3.1-0.1
gcc-3.1-0.1
gcc-c++-3.1-0.1
pbc99213:/usr/src/packages/SPECS # gcc -dumpversion
3.1

Now I am trying to build glibc 2.2.5 with the following options:
CC="$GCC" CFLAGS="$BuildFlags -g -O3" ../configure --prefix=%{_prefix} \
        --enable-add-ons --without-cvs --disable-profile \
        --disable-nls --enable-omitfp %{_target_cpu}-suse-linux

The last few lines before the error shows are:
rm -f /usr/src/packages/BUILD/glibc-2.2.5/build-s390-linux/libc.so.lds
make -s -C csu others
make -s -C iconv others
make[2]: Entering directory `/usr/src/packages/BUILD/glibc-2.2.5/iconv'
make[2]: Leaving directory `/usr/src/packages/BUILD/glibc-2.2.5/iconv'
make -s -C iconvdata others
make[2]: Entering directory `/usr/src/packages/BUILD/glibc-2.2.5/iconvdata'
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: ***
[/usr/src/packages/BUILD/glibc-2.2.5/build-s390-linux/iconvdata/ISO
8859-1.so] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/src/packages/BUILD/glibc-2.2.5/iconvdata'
make[1]: *** [iconvdata/others] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/glibc-2.2.5'
make: *** [all] Error 2
Bad exit status from /var/tmp/rpm-tmp.19724 (%build)

I built a working system with kernel 2.4.17,  based on SuSE kernel 2.4.7
that I am using to build the rpms, which I have gcc 3.1, glibc 2.2.5,
binutils 2.12.1. I am almost positive I build glibc 2.2.5 before gcc 3.1
and everything appears to be working fine.  Maybe I should build glibc with
my previous gcc and then build the rpm for gcc 3.1. Thanks for any help you
can offer. Carlos :-)




Carlos A. Ordonez
IBM Corporation




|---------+--------------------------->
|         |           Andreas Jaeger  |
|         |           <aj@suse.de>    |
|         |                           |
|         |           07/30/2002 10:38|
|         |           AM              |
|         |                           |
|---------+--------------------------->
  >-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                               |
  |        To:      Paolo Carlini <pcarlini@unitus.it>                                                                            |
  |        cc:      Carlos Ordonez/Poughkeepsie/IBM@IBMUS, gcc@gcc.gnu.org                                                        |
  |                 From:                                                                                                         |
  |               Subject:      Re: missing gcc_eh                                                                                |
  |                                                                                                                               |
  >-------------------------------------------------------------------------------------------------------------------------------|




Paolo Carlini <pcarlini@unitus.it> writes:

> Carlos Ordonez wrote:
>
>> I am building glibc 2.2.5 and I am getting an error gcc_eh not found. I
>> have tried looking in the internet and found nothing. I am running with
>> gcc 3.1 in a 2.4.7 kernel. Did I miss something when I built gcc 3.1?
>> Any help would be appreciated. Thanks Carlos :-)
>
> Hi,
>
> irrespective of the specific problem you are reporting it seems to me
that
> the released glibc2.2.5 cannot be compiled fine with gcc3.1. gcc3.0.4
> should be ok OTOH. Alternatively, fetch CVS glibc. Andreas can you
> confirm/clarify? Thanks!
>
>     http://gcc.gnu.org/ml/gcc-bugs/2002-07/msg00787.html
>     http://gcc.gnu.org/ml/gcc-bugs/2002-07/msg00788.html

Yes, the appended patches are needed for glibc 2.2.5 to build with GCC
3.1 or newer.  I'm appending them for reference.

But gcc_eh not there looks like a different problem.  But without more
details and without a crystal ball, I cannot help.

Carlos, on which platform is this?  What is exactly the message?  How
did you configure gcc and glibc?  Which binutils you use?

Andreas

2002-07-22  Philip Blundell  <philb@gnu.org>

        * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
        definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
        alias.

2002-05-19  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
        definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
        alias.

Index: sysdeps/unix/sysv/linux/errlist.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/errlist.c,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -p -r1.8 -r1.8.2.1
--- sysdeps/unix/sysv/linux/errlist.c     6 Jul 2001 04:56:12 -0000     1.8
+++ sysdeps/unix/sysv/linux/errlist.c     3 Jun 2002 06:49:30 -0000
1.8.2.1
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
@@ -38,10 +38,9 @@ extern const char *const *__old_sys_errl
 const int __old_sys_nerr = OLD_ERRLIST_SIZE;

 strong_alias (__old_sys_nerr, _old_sys_nerr);
-weak_alias (__old_sys_nerr, _old_sys_nerr)
 compat_symbol (libc, __old_sys_nerr, _sys_nerr, GLIBC_2_0);
 compat_symbol (libc, _old_sys_nerr, sys_nerr, GLIBC_2_0);
-weak_alias (__old_sys_errlist, _old_sys_errlist);
+strong_alias (__old_sys_errlist, _old_sys_errlist);
 compat_symbol (libc, __old_sys_errlist, _sys_errlist, GLIBC_2_0);
 compat_symbol (libc, _old_sys_errlist, sys_errlist, GLIBC_2_0);
 #endif

Index: sysdeps/unix/sysv/linux/arm/errlist.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/arm/errlist.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- sysdeps/unix/sysv/linux/arm/errlist.c 6 Jul 2001 04:56:13 -0000     1.4
+++ sysdeps/unix/sysv/linux/arm/errlist.c 24 Jul 2002 11:17:01 -0000    1.5
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
@@ -38,10 +38,9 @@ extern const char *const *__old_sys_errl
 const int __old_sys_nerr = OLD_ERRLIST_SIZE;

 strong_alias (__old_sys_nerr, _old_sys_nerr);
-weak_alias (__old_sys_nerr, _old_sys_nerr)
 compat_symbol (libc, __old_sys_nerr, _sys_nerr, GLIBC_2_0);
 compat_symbol (libc, _old_sys_nerr, sys_nerr, GLIBC_2_0);
-weak_alias (__old_sys_errlist, _old_sys_errlist);
+strong_alias (__old_sys_errlist, _old_sys_errlist);
 compat_symbol (libc, __old_sys_errlist, _sys_errlist, GLIBC_2_0);
 compat_symbol (libc, _old_sys_errlist, sys_errlist, GLIBC_2_0);
 #endif

--
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
     http://www.suse.de/~aj




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: missing gcc_eh
@ 2002-07-30 16:55 Carlos Ordonez
  0 siblings, 0 replies; 7+ messages in thread
From: Carlos Ordonez @ 2002-07-30 16:55 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: gcc, pcarlini


Andreas, thank you. I was missing the library libgcc_eh.a in the gcc
directory when I installed GCC 3.1 with the rpm. I guess I have to fix my
spec file. I thought I had included everything that starts with libgcc*, I
must have something missing, like the directory path is wrong. Anyway I
downloaded the rpms from the website, thanks you!  That was of great help.
We are teaching a class for IBMers and I needed to convert to the 2.4.17
May2002 patches after an install and the easiest way was via RPMs. I need
to read more about the RPM building process to understand the SPEC file.
Thanks again. Carlos :-)






|---------+--------------------------->
|         |           Andreas Jaeger  |
|         |           <aj@suse.de>    |
|         |                           |
|         |           07/30/2002 11:15|
|         |           AM              |
|         |                           |
|---------+--------------------------->
  >-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                               |
  |        To:      Carlos Ordonez/Poughkeepsie/IBM@IBMUS                                                                         |
  |        cc:      gcc@gcc.gnu.org, pcarlini@unitus.it                                                                           |
  |                 From:                                                                                                         |
  |               Subject:      Re: missing gcc_eh                                                                                |
  |                                                                                                                               |
  >-------------------------------------------------------------------------------------------------------------------------------|




"Carlos Ordonez" <carloso@us.ibm.com> writes:

> Andreas, Paolo,  thank you for your quick response. I am trying to build
> rpms for gcc 3.1, glibc 2.2.5 and binutils The system I am building is
> Linux for S/390 - SuSE SLES 7 kernel version 2.4.7. I built binutils rpm

Oh, S390.

> 1st and installed it:
> pbc99213:/usr/src/packages/SPECS # rpm -qa | grep binutils
> binutils-2.12.1-1
> pbc99213:/usr/src/packages/SPECS # ld -version
> GNU ld version 2.12.1
> Copyright 2002 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.
>
> Then I built GCC 3.1 and install it (I am thinking I should have done
glibc

Better use GCC 3.1.1, it contains some important bugfixes for s390.

> 2.2.5 first and then GCC 3.1 -  should I?) :

The order is ok.

> pbc99213:/usr/src/packages/SPECS # rpm -qa | grep gcc
> gcc-objc-3.1-0.1
> gcc-3.1-0.1
> gcc-c++-3.1-0.1
> pbc99213:/usr/src/packages/SPECS # gcc -dumpversion
> 3.1
>
> Now I am trying to build glibc 2.2.5 with the following options:
> CC="$GCC" CFLAGS="$BuildFlags -g -O3" ../configure --prefix=%{_prefix} \
>         --enable-add-ons --without-cvs --disable-profile \
>         --disable-nls --enable-omitfp %{_target_cpu}-suse-linux
>
> The last few lines before the error shows are:
> rm -f /usr/src/packages/BUILD/glibc-2.2.5/build-s390-linux/libc.so.lds
> make -s -C csu others
> make -s -C iconv others
> make[2]: Entering directory `/usr/src/packages/BUILD/glibc-2.2.5/iconv'
> make[2]: Leaving directory `/usr/src/packages/BUILD/glibc-2.2.5/iconv'
> make -s -C iconvdata others
> make[2]: Entering directory
`/usr/src/packages/BUILD/glibc-2.2.5/iconvdata'
> /usr/bin/ld: cannot find -lgcc_eh


libgcc_eh.a should be in /usr/lib/gcc-lib/s390-suse-linux/3.1.  Please
check that it's there.  If not, your build/installation of GCC is
wrong.


> collect2: ld returned 1 exit status
> make[2]: ***
> [/usr/src/packages/BUILD/glibc-2.2.5/build-s390-linux/iconvdata/ISO
> 8859-1.so] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory
`/usr/src/packages/BUILD/glibc-2.2.5/iconvdata'
> make[1]: *** [iconvdata/others] Error 2
> make[1]: Leaving directory `/usr/src/packages/BUILD/glibc-2.2.5'
> make: *** [all] Error 2
> Bad exit status from /var/tmp/rpm-tmp.19724 (%build)
>
> I built a working system with kernel 2.4.17,  based on SuSE kernel 2.4.7
> that I am using to build the rpms, which I have gcc 3.1, glibc 2.2.5,
> binutils 2.12.1. I am almost positive I build glibc 2.2.5 before gcc 3.1
> and everything appears to be working fine.  Maybe I should build glibc
with
> my previous gcc and then build the rpm for gcc 3.1. Thanks for any help
you
> can offer. Carlos :-)


Btw. you can find SuSE RPMs (with additional patches) for S390 of the
current
toolchain consisting of glibc, binutils, gcc in my ftp directory:
ftp.suse.com/pup/people/aj/Current_Toolchain/

Andreas
--
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
     http://www.suse.de/~aj




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

end of thread, other threads:[~2002-07-30 19:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-30  9:46 missing gcc_eh Carlos Ordonez
2002-07-30 10:33 ` Paolo Carlini
2002-07-30 10:38   ` Andreas Jaeger
2002-07-30 11:18 Carlos Ordonez
2002-07-30 11:36 Carlos Ordonez
2002-07-30 12:07 ` Andreas Jaeger
2002-07-30 16:55 Carlos Ordonez

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