public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gcc323 + specific glibc
       [not found] <1068841966.312.765.camel@chrisc.laptop>
@ 2003-11-14 21:07 ` Dara Hazeghi
  0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-11-14 21:07 UTC (permalink / raw)
  To: csc; +Cc: chrisc, gcc-help


--- Chris Croswhite <csc@cadence.com> wrote:
> 
> checking whether the C compiler
> (/opt/RH72-BUILD-PKGS/gcc-3.2.3/OB2/gcc/xgcc
> -B/opt/RH72-BUILD-PKGS/gcc-3.2.3/OB2/gcc/
>
-B/opt/RH72-BUILD-PKGS/gcc323-2/i586-pc-linux-gnu/bin/
>
-B/opt/RH72-BUILD-PKGS/gcc323-2/i586-pc-linux-gnu/lib/
> -isystem
>
/opt/RH72-BUILD-PKGS/gcc323-2/i586-pc-linux-gnu/include
> -O2 -g -O2 )
> works... no
> configure: error: installation or configuration
> problem: C compiler
> cannot create executables.
> make: *** [configure-target-libiberty] Error 1
> [root@rcl003 OB2]# ls -l
> /opt/RH72-BUILD-PKGS/gcc-3.2.3/OB2/gcc/xgcc
> -rwxr-xr-x    1 root     root       153059 Nov 14
> 11:16
> /opt/RH72-BUILD-PKGS/gcc-3.2.3/OB2/gcc/xgcc
> [root@rcl003 OB2]#
> /opt/RH72-BUILD-PKGS/gcc-3.2.3/OB2/gcc/xgcc -v
> Using built-in specs.
> Configured with: ../configure --disable-nls
> --enable-languages=c,c++
> --with-gnu-as --with-gnu-ld
> --prefix=/opt/RH72-BUILD-PKGS/gcc323-2
> --with-headers=../../GLIBC-2.2.4-IMAGE/include
> --with-libs=../../GLIBC-2.2.4-IMAGE/lib
> --target=i586-pc-linux-gnu
> Thread model: posix
> gcc version 3.2.3
> [root@rcl003 OB2]# 
> 
> Any other suggestions?

Yeah, take a look at
/opt/RH72-BUILD-PKGS/gcc-3.2.3/OB2/i586-pc-linux-gnu/libiberty/config.log
, and see how the test is failing. If you could attach
the config.log and send it may way, I'll take a look
too...

Also, if you're building in a subdirectory of your
source directory (looks like you are), I'd suggest you
not. It's not expected to work.

Dara

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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

* Re: gcc323 + specific glibc
@ 2003-11-14  8:13 Dara Hazeghi
  0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-11-14  8:13 UTC (permalink / raw)
  To: csc; +Cc: gcc-help

Hello,

one slightly hackish approach is to lie to gcc, and
make it think that it is cross-compiling. 3.2.3
doesn't support sysroot, so it's not surprising that
should fail.

Probably if you do --target=i386-redhat-linux (or some
such), configure will be stupid enough to think it's
cross-compiling, and you can use --with-headers= and
--with-libs= as you tried previously (this worked for
me a while back, when targeting libc1). Note that
you'll need to edit the libc.so from the old libc
image (it's a text file, but the paths in it will
probably be wrong) to get a fully functional 'cross'
compiler.

Cheers,

Dara

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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

* gcc323 + specific glibc
@ 2003-11-12 19:22 Chris Croswhite
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Croswhite @ 2003-11-12 19:22 UTC (permalink / raw)
  To: gcc-help

Because my systems have moved to a newer glibc and my executable needs
an older glibc, I need to get gcc323 to search a specific path for
headers and libs.  During configuration I am using this:
../configure --enable-languages=c,c++ --disable-multilibs --disable-nls
--sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE
--prefix=/opt/RH72-BUILD-PKGS/gcc323

This compiles fine, however, "print-search-path" includes /lib and
/usr/lib which is not what I want.

I have tried using the --with-headers= and --with-libs=, however, the
make file complains "*** --with-headers is only supported when cross
compiling".

What am I missing?

TIA,
Chris

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

end of thread, other threads:[~2003-11-14 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1068841966.312.765.camel@chrisc.laptop>
2003-11-14 21:07 ` gcc323 + specific glibc Dara Hazeghi
2003-11-14  8:13 Dara Hazeghi
  -- strict thread matches above, loose matches on Subject: below --
2003-11-12 19:22 Chris Croswhite

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