* glibc build
@ 2001-04-20 5:14 George Gensure,,,
2001-04-20 18:55 ` Bryan Chua
0 siblings, 1 reply; 11+ messages in thread
From: George Gensure,,, @ 2001-04-20 5:14 UTC (permalink / raw)
To: linux-mips
I get the following error while trying to cross-build glibc for mips on
an i686. Can anyone give any insight?
../sysdeps/mips/setjmp.S: Assembler messages:
../sysdeps/mips/setjmp.S:43: Error: Can not represent
BFD_RELOC_16_PCREL_S2 relocation in this object file format
make[2]: *** [/usr/local/crossbuild/glibc-build/setjmp/setjmp.o] Error 1
make[2]: Leaving directory `/usr/local/crossbuild/glibc-2.2/setjmp'
make[1]: *** [setjmp/subdir_lib] Error 2
make[1]: Leaving directory `/usr/local/crossbuild/glibc-2.2'
make: *** [install] Error 2
George
werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 5:14 George Gensure,,,
@ 2001-04-20 18:55 ` Bryan Chua
2001-04-20 19:53 ` George Gensure
0 siblings, 1 reply; 11+ messages in thread
From: Bryan Chua @ 2001-04-20 18:55 UTC (permalink / raw)
To: George Gensure,,,; +Cc: linux-mips
I ran into this at some point and tracked it down to adding -D__PIC__ to
CFLAGS. I don't think it is necessary on newer (unreleased) compilers.
-- bryan
"George Gensure,,," wrote:
> I get the following error while trying to cross-build glibc for mips on
> an i686. Can anyone give any insight?
>
> ../sysdeps/mips/setjmp.S: Assembler messages:
> ../sysdeps/mips/setjmp.S:43: Error: Can not represent
> BFD_RELOC_16_PCREL_S2 relocation in this object file format
> make[2]: *** [/usr/local/crossbuild/glibc-build/setjmp/setjmp.o] Error 1
> make[2]: Leaving directory `/usr/local/crossbuild/glibc-2.2/setjmp'
> make[1]: *** [setjmp/subdir_lib] Error 2
> make[1]: Leaving directory `/usr/local/crossbuild/glibc-2.2'
> make: *** [install] Error 2
>
> George
> werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* glibc build
@ 2001-04-20 19:14 George Gensure,,,
2001-04-20 20:06 ` Bryan Chua
0 siblings, 1 reply; 11+ messages in thread
From: George Gensure,,, @ 2001-04-20 19:14 UTC (permalink / raw)
To: chua; +Cc: linux-mips
Where is the CFLAGS that I should add to? In the Subdirectories?
George
werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 18:55 ` Bryan Chua
@ 2001-04-20 19:53 ` George Gensure
2001-04-20 19:53 ` George Gensure
0 siblings, 1 reply; 11+ messages in thread
From: George Gensure @ 2001-04-20 19:53 UTC (permalink / raw)
To: Bryan Chua; +Cc: linux-mips
I added the following entry to the environment variable CFLAGS and to the
CFLAGS entry in glibcbug - -D__PIC__ ... got the same error.
George
werkt@csh.rit.edu
On Fri, 20 Apr 2001, Bryan Chua wrote:
> I ran into this at some point and tracked it down to adding -D__PIC__ to
> CFLAGS. I don't think it is necessary on newer (unreleased) compilers.
>
> -- bryan
>
> "George Gensure,,," wrote:
>
> > I get the following error while trying to cross-build glibc for mips on
> > an i686. Can anyone give any insight?
> >
> > ../sysdeps/mips/setjmp.S: Assembler messages:
> > ../sysdeps/mips/setjmp.S:43: Error: Can not represent
> > BFD_RELOC_16_PCREL_S2 relocation in this object file format
> > make[2]: *** [/usr/local/crossbuild/glibc-build/setjmp/setjmp.o] Error 1
> > make[2]: Leaving directory `/usr/local/crossbuild/glibc-2.2/setjmp'
> > make[1]: *** [setjmp/subdir_lib] Error 2
> > make[1]: Leaving directory `/usr/local/crossbuild/glibc-2.2'
> > make: *** [install] Error 2
> >
> > George
> > werkt@csh.rit.edu
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 19:53 ` George Gensure
@ 2001-04-20 19:53 ` George Gensure
0 siblings, 0 replies; 11+ messages in thread
From: George Gensure @ 2001-04-20 19:53 UTC (permalink / raw)
To: Bryan Chua; +Cc: linux-mips
I added the following entry to the environment variable CFLAGS and to the
CFLAGS entry in glibcbug - -D__PIC__ ... got the same error.
George
werkt@csh.rit.edu
On Fri, 20 Apr 2001, Bryan Chua wrote:
> I ran into this at some point and tracked it down to adding -D__PIC__ to
> CFLAGS. I don't think it is necessary on newer (unreleased) compilers.
>
> -- bryan
>
> "George Gensure,,," wrote:
>
> > I get the following error while trying to cross-build glibc for mips on
> > an i686. Can anyone give any insight?
> >
> > ../sysdeps/mips/setjmp.S: Assembler messages:
> > ../sysdeps/mips/setjmp.S:43: Error: Can not represent
> > BFD_RELOC_16_PCREL_S2 relocation in this object file format
> > make[2]: *** [/usr/local/crossbuild/glibc-build/setjmp/setjmp.o] Error 1
> > make[2]: Leaving directory `/usr/local/crossbuild/glibc-2.2/setjmp'
> > make[1]: *** [setjmp/subdir_lib] Error 2
> > make[1]: Leaving directory `/usr/local/crossbuild/glibc-2.2'
> > make: *** [install] Error 2
> >
> > George
> > werkt@csh.rit.edu
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 19:14 glibc build George Gensure,,,
@ 2001-04-20 20:06 ` Bryan Chua
2001-04-20 20:21 ` George Gensure
2001-04-20 21:20 ` Ralf Baechle
0 siblings, 2 replies; 11+ messages in thread
From: Bryan Chua @ 2001-04-20 20:06 UTC (permalink / raw)
To: George Gensure,,,; +Cc: linux-mips
CFLAGS=-D__PIC__ make all [check] install
the target "check" will not work if you are cross compiling, so you
might as well install... You end up coming across this in several
places.
-- bryan
"George Gensure,,," wrote:
> Where is the CFLAGS that I should add to? In the Subdirectories?
>
> George
> werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 20:06 ` Bryan Chua
@ 2001-04-20 20:21 ` George Gensure
2001-04-20 20:21 ` George Gensure
2001-04-20 21:20 ` Ralf Baechle
1 sibling, 1 reply; 11+ messages in thread
From: George Gensure @ 2001-04-20 20:21 UTC (permalink / raw)
To: Bryan Chua; +Cc: linux-mips
I went throught and deleted all of those entries in assembly files which
caused problems, but I end up with similar problems later, only the
assembler seems to have been running from standard input..
George
werkt@csh.rit.edu
On Fri, 20 Apr 2001, Bryan Chua wrote:
> CFLAGS=-D__PIC__ make all [check] install
>
> the target "check" will not work if you are cross compiling, so you
> might as well install... You end up coming across this in several
> places.
>
> -- bryan
>
> "George Gensure,,," wrote:
>
> > Where is the CFLAGS that I should add to? In the Subdirectories?
> >
> > George
> > werkt@csh.rit.edu
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 20:21 ` George Gensure
@ 2001-04-20 20:21 ` George Gensure
0 siblings, 0 replies; 11+ messages in thread
From: George Gensure @ 2001-04-20 20:21 UTC (permalink / raw)
To: Bryan Chua; +Cc: linux-mips
I went throught and deleted all of those entries in assembly files which
caused problems, but I end up with similar problems later, only the
assembler seems to have been running from standard input..
George
werkt@csh.rit.edu
On Fri, 20 Apr 2001, Bryan Chua wrote:
> CFLAGS=-D__PIC__ make all [check] install
>
> the target "check" will not work if you are cross compiling, so you
> might as well install... You end up coming across this in several
> places.
>
> -- bryan
>
> "George Gensure,,," wrote:
>
> > Where is the CFLAGS that I should add to? In the Subdirectories?
> >
> > George
> > werkt@csh.rit.edu
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 20:06 ` Bryan Chua
2001-04-20 20:21 ` George Gensure
@ 2001-04-20 21:20 ` Ralf Baechle
2001-04-20 22:37 ` Bryan Chua
1 sibling, 1 reply; 11+ messages in thread
From: Ralf Baechle @ 2001-04-20 21:20 UTC (permalink / raw)
To: Bryan Chua; +Cc: George Gensure,,,, linux-mips
On Fri, Apr 20, 2001 at 01:06:52PM -0700, Bryan Chua wrote:
> CFLAGS=-D__PIC__ make all [check] install
>
> the target "check" will not work if you are cross compiling, so you
> might as well install... You end up coming across this in several
> places.
None of the compiler we ever recommended to use had this bug, so I
wonder what compiler you're trying to use.
Ralf
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 21:20 ` Ralf Baechle
@ 2001-04-20 22:37 ` Bryan Chua
2001-04-30 9:28 ` Maciej W. Rozycki
0 siblings, 1 reply; 11+ messages in thread
From: Bryan Chua @ 2001-04-20 22:37 UTC (permalink / raw)
To: Ralf Baechle; +Cc: George Gensure,,,, linux-mips
binutils 2.8.1, 2.9.1, 2.10, 2.10.1 (with and without patches) 2.11
gcc 2.95.2, 2.95.2.1, 2.95.3
The bug was that the specs file in 2.95.? seems to be missing a
-K__PIC__ in the spec for *cpp %{.S...}
It does seem to be in the current snapshot as of a few weeks ago and is
thus not necessary, but also not released.
-- bryan
Ralf Baechle wrote:
> On Fri, Apr 20, 2001 at 01:06:52PM -0700, Bryan Chua wrote:
>
> > CFLAGS=-D__PIC__ make all [check] install
> >
> > the target "check" will not work if you are cross compiling, so you
> > might as well install... You end up coming across this in several
> > places.
>
> None of the compiler we ever recommended to use had this bug, so I
> wonder what compiler you're trying to use.
>
> Ralf
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc build
2001-04-20 22:37 ` Bryan Chua
@ 2001-04-30 9:28 ` Maciej W. Rozycki
0 siblings, 0 replies; 11+ messages in thread
From: Maciej W. Rozycki @ 2001-04-30 9:28 UTC (permalink / raw)
To: Bryan Chua; +Cc: Ralf Baechle, George Gensure,,,, linux-mips
On Fri, 20 Apr 2001, Bryan Chua wrote:
> gcc 2.95.2, 2.95.2.1, 2.95.3
>
> The bug was that the specs file in 2.95.? seems to be missing a
> -K__PIC__ in the spec for *cpp %{.S...}
None of 2.95.* compilers works for MIPS/Linux without additional patches.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-04-30 9:33 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-20 19:14 glibc build George Gensure,,,
2001-04-20 20:06 ` Bryan Chua
2001-04-20 20:21 ` George Gensure
2001-04-20 20:21 ` George Gensure
2001-04-20 21:20 ` Ralf Baechle
2001-04-20 22:37 ` Bryan Chua
2001-04-30 9:28 ` Maciej W. Rozycki
-- strict thread matches above, loose matches on Subject: below --
2001-04-20 5:14 George Gensure,,,
2001-04-20 18:55 ` Bryan Chua
2001-04-20 19:53 ` George Gensure
2001-04-20 19:53 ` George Gensure
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox