public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* want egcs 1.0.3 to make binary against glibc6
@ 1999-03-21 23:10 Yasushi Shoji
  1999-03-22  8:22 ` David Starner
  1999-03-31 23:46 ` Yasushi Shoji
  0 siblings, 2 replies; 4+ messages in thread
From: Yasushi Shoji @ 1999-03-21 23:10 UTC (permalink / raw)
  To: egcs

hi all,

hope this is not off topic.

i just installed glibc 2.1.1pre1 on my linux box,
that i installed slackware 3.5 on a while ago.
installation went pretty good, at lease i think :)
and i chage spec file as HOWTO says so that i can
build binaries against libc.so.6.

however, it still makes binaries against old libc.so.5
that i moved to /usr/i586-pc-linux-gnulibc1/lib.

if i linked /usr/lib/gcc-lib/i586-pc-linux-gnulibc2 to
/usr/lib/gcc-lib/i586-pc-linux-gnulibc1 and put
'-b i586-pc-linux-gnulibc2' flag to comiple hello.c,
i makes a.out against libc.so.6.

how can i chage the default behavior to make binaries
against libc.so.6?

following is the gcc output with and without '-b ...'
flag.

--------- with out ------------

kohi:~/test$ cat hello.c 
#include <stdio.h>
int main(void) {
        printf("hello\n");
        return 0;
}

kohi:~/test$ gcc -v hello.c 
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90 -Di386 -D__ELF__ -Dunix -Dlinux -D__i386__ -D__ELF__ -D__unix__ -D__linux__ -D__i386 -D__unix -D__linux -Asystem(posix) -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386) hello.c /tmp/cca16777.i
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i586-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/cc1 /tmp/cca16777.i -quiet -dumpbase hello.c -version -o /tmp/cca16777.s
GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (i586-pc-linux-gnulibc1) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
 as -V -Qy -o /tmp/cca167771.o /tmp/cca16777.s
GNU assembler version 980303 (i586-linux), using BFD version 2.8.1.0.23
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/i586-pc-linux-gnulibc1/lib/crt1.o /usr/i586-pc-linux-gnulibc1/lib/crti.o /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/crtbegin.o -L/usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29 -L/usr/i586-pc-linux-gnulibc1/lib /tmp/cca167771.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/crtend.o /usr/i586-pc-linux-gnulibc1/lib/crtn.o

kohi:~/test$ ldd a.out
        libc.so.5 => not found

------------ with '-b i586-pc-linux-gnulibc2' ------------------

kohi:~/test$ gcc -v hello.c -b i586-pc-linux-gnulibc2
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90 -Di386 -D__ELF__ -Dunix -Dlinux -D__i386__ -D__ELF__ -D__unix__ -D__linux__ -D__i386 -D__unix -D__linux -Asystem(posix) -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386) hello.c /tmp/cca16787.i
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i586-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/cc1 /tmp/cca16787.i -quiet -dumpbase hello.c -version -o /tmp/cca16787.s
GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (i586-pc-linux-gnulibc1) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
 as -V -Qy -o /tmp/cca167871.o /tmp/cca16787.s
GNU assembler version 980303 (i586-linux), using BFD version 2.8.1.0.23
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/crtbegin.o -L/usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29 /tmp/cca167871.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/crtend.o /usr/lib/crtn.o

kohi:~/test$ ldd a.out 
        libc.so.6 => /lib/libc.so.6 (0x40015000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


kohi:~/test$ ls -l /usr/lib/gcc-lib/
total 1
drwxr-xr-x   3 root     root         1024 May 15  1998 i586-pc-linux-gnulibc1/
lrwxrwxrwx   1 root     root           22 Mar 20 21:19 i586-pc-linux-gnulibc2 -> i586-pc-linux-gnulibc1/

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

* Re: want egcs 1.0.3 to make binary against glibc6
  1999-03-21 23:10 want egcs 1.0.3 to make binary against glibc6 Yasushi Shoji
@ 1999-03-22  8:22 ` David Starner
  1999-03-31 23:46   ` David Starner
  1999-03-31 23:46 ` Yasushi Shoji
  1 sibling, 1 reply; 4+ messages in thread
From: David Starner @ 1999-03-22  8:22 UTC (permalink / raw)
  To: Yasushi Shoji, egcs

Yasushi Shoji wrote:
> 
> hi all,
> 
> hope this is not off topic.
> 
> i just installed glibc 2.1.1pre1 on my linux box,
> that i installed slackware 3.5 on a while ago.
> installation went pretty good, at lease i think :)
> and i chage spec file as HOWTO says so that i can
> build binaries against libc.so.6.
> 
> however, it still makes binaries against old libc.so.5
> that i moved to /usr/i586-pc-linux-gnulibc1/lib.

Right. Libc5/libc6 are two different system types according to Egcs.
You'll need to compile a new egcs to handle libc6. On the good side,
it's a nice chance to upgrade to Egcs 1.1.2, and it's not that hard to
build a compiler. (Really. "configure; make bootstrap; su; make
install;")

-- 
David Starner - OSU student - dstarner98@aasaa.ofe.org
If you want a real optimist, look up Ray Bradbury. Guy's nuts. 
He actually likes people. -David Brin

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

* want egcs 1.0.3 to make binary against glibc6
  1999-03-21 23:10 want egcs 1.0.3 to make binary against glibc6 Yasushi Shoji
  1999-03-22  8:22 ` David Starner
@ 1999-03-31 23:46 ` Yasushi Shoji
  1 sibling, 0 replies; 4+ messages in thread
From: Yasushi Shoji @ 1999-03-31 23:46 UTC (permalink / raw)
  To: egcs

hi all,

hope this is not off topic.

i just installed glibc 2.1.1pre1 on my linux box,
that i installed slackware 3.5 on a while ago.
installation went pretty good, at lease i think :)
and i chage spec file as HOWTO says so that i can
build binaries against libc.so.6.

however, it still makes binaries against old libc.so.5
that i moved to /usr/i586-pc-linux-gnulibc1/lib.

if i linked /usr/lib/gcc-lib/i586-pc-linux-gnulibc2 to
/usr/lib/gcc-lib/i586-pc-linux-gnulibc1 and put
'-b i586-pc-linux-gnulibc2' flag to comiple hello.c,
i makes a.out against libc.so.6.

how can i chage the default behavior to make binaries
against libc.so.6?

following is the gcc output with and without '-b ...'
flag.

--------- with out ------------

kohi:~/test$ cat hello.c 
#include <stdio.h>
int main(void) {
        printf("hello\n");
        return 0;
}

kohi:~/test$ gcc -v hello.c 
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90 -Di386 -D__ELF__ -Dunix -Dlinux -D__i386__ -D__ELF__ -D__unix__ -D__linux__ -D__i386 -D__unix -D__linux -Asystem(posix) -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386) hello.c /tmp/cca16777.i
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i586-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/cc1 /tmp/cca16777.i -quiet -dumpbase hello.c -version -o /tmp/cca16777.s
GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (i586-pc-linux-gnulibc1) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
 as -V -Qy -o /tmp/cca167771.o /tmp/cca16777.s
GNU assembler version 980303 (i586-linux), using BFD version 2.8.1.0.23
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/i586-pc-linux-gnulibc1/lib/crt1.o /usr/i586-pc-linux-gnulibc1/lib/crti.o /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/crtbegin.o -L/usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29 -L/usr/i586-pc-linux-gnulibc1/lib /tmp/cca167771.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/crtend.o /usr/i586-pc-linux-gnulibc1/lib/crtn.o

kohi:~/test$ ldd a.out
        libc.so.5 => not found

------------ with '-b i586-pc-linux-gnulibc2' ------------------

kohi:~/test$ gcc -v hello.c -b i586-pc-linux-gnulibc2
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90 -Di386 -D__ELF__ -Dunix -Dlinux -D__i386__ -D__ELF__ -D__unix__ -D__linux__ -D__i386 -D__unix -D__linux -Asystem(posix) -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386) hello.c /tmp/cca16787.i
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i586-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/cc1 /tmp/cca16787.i -quiet -dumpbase hello.c -version -o /tmp/cca16787.s
GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (i586-pc-linux-gnulibc1) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
 as -V -Qy -o /tmp/cca167871.o /tmp/cca16787.s
GNU assembler version 980303 (i586-linux), using BFD version 2.8.1.0.23
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/crtbegin.o -L/usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29 /tmp/cca167871.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i586-pc-linux-gnulibc2/egcs-2.90.29/crtend.o /usr/lib/crtn.o

kohi:~/test$ ldd a.out 
        libc.so.6 => /lib/libc.so.6 (0x40015000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


kohi:~/test$ ls -l /usr/lib/gcc-lib/
total 1
drwxr-xr-x   3 root     root         1024 May 15  1998 i586-pc-linux-gnulibc1/
lrwxrwxrwx   1 root     root           22 Mar 20 21:19 i586-pc-linux-gnulibc2 -> i586-pc-linux-gnulibc1/

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

* Re: want egcs 1.0.3 to make binary against glibc6
  1999-03-22  8:22 ` David Starner
@ 1999-03-31 23:46   ` David Starner
  0 siblings, 0 replies; 4+ messages in thread
From: David Starner @ 1999-03-31 23:46 UTC (permalink / raw)
  To: Yasushi Shoji, egcs

Yasushi Shoji wrote:
> 
> hi all,
> 
> hope this is not off topic.
> 
> i just installed glibc 2.1.1pre1 on my linux box,
> that i installed slackware 3.5 on a while ago.
> installation went pretty good, at lease i think :)
> and i chage spec file as HOWTO says so that i can
> build binaries against libc.so.6.
> 
> however, it still makes binaries against old libc.so.5
> that i moved to /usr/i586-pc-linux-gnulibc1/lib.

Right. Libc5/libc6 are two different system types according to Egcs.
You'll need to compile a new egcs to handle libc6. On the good side,
it's a nice chance to upgrade to Egcs 1.1.2, and it's not that hard to
build a compiler. (Really. "configure; make bootstrap; su; make
install;")

-- 
David Starner - OSU student - dstarner98@aasaa.ofe.org
If you want a real optimist, look up Ray Bradbury. Guy's nuts. 
He actually likes people. -David Brin

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

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-21 23:10 want egcs 1.0.3 to make binary against glibc6 Yasushi Shoji
1999-03-22  8:22 ` David Starner
1999-03-31 23:46   ` David Starner
1999-03-31 23:46 ` Yasushi Shoji

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