public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38667]  New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
@ 2008-12-30  7:29 imam dot toufique at intel dot com
  2008-12-30 10:46 ` [Bug c/38667] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: imam dot toufique at intel dot com @ 2008-12-30  7:29 UTC (permalink / raw)
  To: gcc-bugs

gcc 4.3.2 build seems to fail when linking libgcc.  I am using libmpfr 2.3.2
and libgmp 4.2.4 .  this is failing for SuSE Linux Ent. Server9 32-bit
platform.
gcc 4.3.2 build on the 64-bit platform went through.


Here is the error snippet:


# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/sh ../../../gcc-4.3.2/libgcc/../mkinstalldirs .
/opt/gcc/4.3.2/i686_linux26/gccbuild/./gcc/xgcc
-B/opt/gcc/4.3.2/i686_linux26/gccbuild/./gcc/
-B/opt/gcc/4.3.2/i686-pc-linux-gnu/bin/ -B/opt/gcc/4.3.2/i686-pc-linux-gnu/lib/
-isystem /opt/gcc/4.3.2/i686-pc-linux-gnu/include -isystem
/opt/gcc/4.3.2/i686-pc-linux-gnu/sys-include -O2  -O2 -g
-I/opt/libmpfr/2.3.2/include -L/opt/libmpfr/2.3.2/lib
-I/opt/libgmp/4.2.4/include -L/opt/libgmp/4.2.4/lib  -I/opt/gcc/4.3.2/include
-L/opt/gcc/4.3.2/lib -L/opt/gcc/4.3.2/lib -Wl,--rpath
-Wl,/lib/i686:/lib:/lib/tls:/opt/libmpfr/2.3.2/lib:/opt/libgmp/4.2.4/lib:/opt/gcc/4.3.2/lib
  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o
./libgcc_s.so.1.tmp -g -fkeep-inline-functions -B./ _muldi3_s.o _negdi2_s.o
_lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o
_clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o
_absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o
_mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o
_ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o
_popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o
_paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o
_muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o
_divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o
_fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixtfdi_s.o
_fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o _floatdisf_s.o
_floatdidf_s.o _floatdixf_s.o _floatditf_s.o _floatundisf_s.o _floatundidf_s.o
_floatundixf_s.o _floatunditf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o
_umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o unwind-dw2_s.o
unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o
-lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f
./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp
./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/opt/gcc/4.3.2/i686-pc-linux-gnu/bin/ld: cannot find -lc


Here is my configure line:

export INSTALL_PREFIX="/opt/gcc/4.3.2"
export libmpfr_DIR="/opt/libmpfr/2.3.2"
export libgmp_DIR="/opt/libgmp/4.2.4"

configure --prefix="${INSTAL_PREFIX"
--libdir="${INSTALL_PREFIX}"/"${PLATFORM_LIBDIR}"
--libexecdir="${INSTALL_PREFIX}"/libexec --bindir="${INSTALL_PREFIX}"/bin
--with-mpfr=$libmpfr_DIR --with-mpfr-include=$libmpfr_DIR/include
--with-mpfr-lib=$libmpfr_DIR/lib --with-gmp=$libgmp_DIR
--with-gmp-include=$libgmp_DIR/include --with-gmp-lib=$libgmp_DIR/lib
--enable-languages=c,c++,objc --disable-libgcj --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu


I have tried this with binutils 2.18, 2.18.50, and 2.16.1; no luck.

Any help would be appreciated!

Thank you.


-- 
           Summary: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-
                    bit platform
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: imam dot toufique at intel dot com
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

* [Bug c/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
  2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
@ 2008-12-30 10:46 ` rguenth at gcc dot gnu dot org
  2008-12-30 19:07 ` [Bug bootstrap/38667] " imam dot toufique at intel dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-30 10:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-12-30 10:45 -------
/opt/gcc/4.3.2/i686-pc-linux-gnu/bin/ld: cannot find -lc

you are likely missing the glibc-devel package.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

* [Bug bootstrap/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
  2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
  2008-12-30 10:46 ` [Bug c/38667] " rguenth at gcc dot gnu dot org
@ 2008-12-30 19:07 ` imam dot toufique at intel dot com
  2008-12-30 19:13 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: imam dot toufique at intel dot com @ 2008-12-30 19:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from imam dot toufique at intel dot com  2008-12-30 19:06 -------
(In reply to comment #1)
> /opt/gcc/4.3.2/i686-pc-linux-gnu/bin/ld: cannot find -lc
> you are likely missing the glibc-devel package.

Hi, I have the glibc-devel installed, I verified it.

host> rpm -qa | grep glibc
glibc-2.3.3-98.61
glibc-devel-2.3.3-98.61
glibc-locale-2.3.3-98.61
glibc-i18ndata-2.3.3-98.61
glibc-profile-2.3.3-98.61
glibc-info-2.3.3-98.61


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

* [Bug bootstrap/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
  2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
  2008-12-30 10:46 ` [Bug c/38667] " rguenth at gcc dot gnu dot org
  2008-12-30 19:07 ` [Bug bootstrap/38667] " imam dot toufique at intel dot com
@ 2008-12-30 19:13 ` rguenth at gcc dot gnu dot org
  2008-12-30 19:53 ` imam dot toufique at intel dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-30 19:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-12-30 19:12 -------
--libdir="${INSTALL_PREFIX}"/"${PLATFORM_LIBDIR}"

this adjusts the std search paths (as well as --prefix), so you need to put a
libc there as well.  You probably want to add --with-sysroot=/ to the configure
line.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

* [Bug bootstrap/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
  2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
                   ` (3 preceding siblings ...)
  2008-12-30 19:53 ` imam dot toufique at intel dot com
@ 2008-12-30 19:53 ` imam dot toufique at intel dot com
  2008-12-30 21:27 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: imam dot toufique at intel dot com @ 2008-12-30 19:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from imam dot toufique at intel dot com  2008-12-30 19:52 -------
(In reply to comment #3)
> --libdir="${INSTALL_PREFIX}"/"${PLATFORM_LIBDIR}"
> this adjusts the std search paths (as well as --prefix), so you need to put a
> libc there as well.  You probably want to add --with-sysroot=/ to the configure
> line.

--with-sysroot option is for building cross-compilers, isn't it?  at least
thats what the manual indicates.  also, shouldn't the installer automatically
search for the glibc devel stuff?  when I built it with SLES9 64-bit I did not
have to mention the '--with-sysroot' option. 

thanks!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

* [Bug bootstrap/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
  2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
                   ` (2 preceding siblings ...)
  2008-12-30 19:13 ` rguenth at gcc dot gnu dot org
@ 2008-12-30 19:53 ` imam dot toufique at intel dot com
  2008-12-30 19:53 ` imam dot toufique at intel dot com
  2008-12-30 21:27 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: imam dot toufique at intel dot com @ 2008-12-30 19:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from imam dot toufique at intel dot com  2008-12-30 19:51 -------
(In reply to comment #3)
> --libdir="${INSTALL_PREFIX}"/"${PLATFORM_LIBDIR}"
> this adjusts the std search paths (as well as --prefix), so you need to put a
> libc there as well.  You probably want to add --with-sysroot=/ to the configure
> line.

--with-sysroot option is for building cross-compilers, isn't it?  at least
thats what the manual indicates.  also, shouldn't the installer automatically
search for the glibc devel stuff?  when I built it with SLES9 64-bit I did not
have to mention the '--with-sysroot' option. 

thanks!


-- 

imam dot toufique at intel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |imam dot toufique at intel
                   |                            |dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

* [Bug bootstrap/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform
  2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
                   ` (4 preceding siblings ...)
  2008-12-30 19:53 ` imam dot toufique at intel dot com
@ 2008-12-30 21:27 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-30 21:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2008-12-30 21:26 -------
Yes, but you are adjusting libdir.  I have no problems with just using --prefix
on alternate compilers.  But well, I don't have an idea what is really going
wrong.  You can try passing -v to the failing command and see what the
library search path is.  /usr/lib should be part of it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667


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

end of thread, other threads:[~2008-12-30 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-30  7:29 [Bug c/38667] New: gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform imam dot toufique at intel dot com
2008-12-30 10:46 ` [Bug c/38667] " rguenth at gcc dot gnu dot org
2008-12-30 19:07 ` [Bug bootstrap/38667] " imam dot toufique at intel dot com
2008-12-30 19:13 ` rguenth at gcc dot gnu dot org
2008-12-30 19:53 ` imam dot toufique at intel dot com
2008-12-30 19:53 ` imam dot toufique at intel dot com
2008-12-30 21:27 ` rguenth at gcc dot gnu dot org

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