public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Some error when installing the gcc9.4.0,when "make".
@ 2022-06-05  7:06 涂家礼
       [not found] ` <dded06c330c45362fa72cc19f31991c187022986.camel@xry111.site>
  2022-06-16 13:17 ` Segher Boessenkool
  0 siblings, 2 replies; 4+ messages in thread
From: 涂家礼 @ 2022-06-05  7:06 UTC (permalink / raw)
  To: gcc-help

Hello. I want to know how to solve a problem when install gcc without root and offline. I am installing GCC9.4.0, but there are some errors when executing make command, as follows:




make[4]: Entering directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0/lto-plugin'
/bin/sh ./libtool  --tag=CC --tag=disable-static  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../lto-plugin  -I../../    lto-plugin/../include -DHAVE_CONFIG_H  -Wall -g -c -o lto-plugin.lo ../../lto-plugin/lto-plugin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../lto-plugin -I../../lto-plugin/../include -DHAVE_CONFIG_H -Wall -g     -c ../../lto-plugin/lto-plugin.c  -fPIC -DPIC -o .libs/lto-plugin.o
make[4]: Warning: File `../libiberty/pic/libiberty.a' has modification time 8.1 s in the future
/bin/sh ./libtool --tag=CC --tag=disable-static  --mode=link gcc -Wall -g -Wc,-static-libgcc  -module -bindir /public    /home/jltu/gcc_build/libexec/gcc/x86_64-pc-linux-gnu/9.4.0    -Xcompiler '-static-libstdc++' -Xcompiler '-static-libg    cc' -o liblto_plugin.la -rpath /public/home/jltu/gcc_build/libexec/gcc/x86_64-pc-linux-gnu/9.4.0 lto-plugin.lo  -Wc,.    ./libiberty/pic/libiberty.a
libtool: link: gcc -shared  -fPIC -DPIC  .libs/lto-plugin.o    -static-libgcc -static-libstdc++ -static-libgcc ../lib    iberty/pic/libiberty.a   -Wl,-soname -Wl,liblto_plugin.so.0 -o .libs/liblto_plugin.so.0.0.0
/usr/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.4.0/crtbeginS.o: unrecognized relocation (0x2a) in section `.te    xt'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [liblto_plugin.la] Error 1
make[4]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0/lto-plugin'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0/lto-plugin'
make[2]: *** [all-stage1-lto-plugin] Error 2
make[2]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0'
make: *** [all] Error 2





Regards 
Jiali Tu

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

* Re: Re: Some error when installing the gcc9.4.0,when "make".
       [not found] ` <dded06c330c45362fa72cc19f31991c187022986.camel@xry111.site>
@ 2022-06-16  8:25   ` 涂家礼
  0 siblings, 0 replies; 4+ messages in thread
From: 涂家礼 @ 2022-06-16  8:25 UTC (permalink / raw)
  To: Xi Ruoyao; +Cc: gcc-help

Thank you , the problem does!

&quot;Xi Ruoyao&quot; &lt;xry111@xry111.site&gt;写道:
> On Sun, 2022-06-05 at 15:06 +0800, 涂家礼 wrote:
> 
> /* snip */
> 
> > /usr/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.4.0/crtbeginS.o: unrecognized relocation (0x2a) in section `.text'
> > /usr/bin/ld: final link failed: Bad value
> > collect2: error: ld returned 1 exit status
> > make[4]: *** [liblto_plugin.la] Error 1
> > make[4]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0/lto-plugin'
> > make[3]: *** [all] Error 2
> > make[3]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0/lto-plugin'
> > make[2]: *** [all-stage1-lto-plugin] Error 2
> > make[2]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0'
> > make[1]: *** [stage1-bubble] Error 2
> > make[1]: Leaving directory `/public/home/jltu/gcc-9.4.0/gcc-9.4.0'
> > make: *** [all] Error 2
> 
> According to a stackoverflow.com answer [1] it seems happening because
> your binutils is too old.
> 
> [1]: https://stackoverflow.com/questions/52737698
> 
> -- 
> Xi Ruoyao <xry111@xry111.site>
> School of Aerospace Science and Technology, Xidian University

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

* Re: Some error when installing the gcc9.4.0,when "make".
  2022-06-05  7:06 Some error when installing the gcc9.4.0,when "make" 涂家礼
       [not found] ` <dded06c330c45362fa72cc19f31991c187022986.camel@xry111.site>
@ 2022-06-16 13:17 ` Segher Boessenkool
  2022-06-20  7:35   ` 涂家礼
  1 sibling, 1 reply; 4+ messages in thread
From: Segher Boessenkool @ 2022-06-16 13:17 UTC (permalink / raw)
  To: 涂家礼; +Cc: gcc-help

Hi!

On Sun, Jun 05, 2022 at 03:06:39PM +0800, 涂家礼 wrote:
> make[4]: Warning: File `../libiberty/pic/libiberty.a' has modification time 8.1 s in the future

This could be a serious problem.  But, it seems unrelated to your
problem.  OTOH, "make" very much does not like things that time travel.

> /usr/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.4.0/crtbeginS.o: unrecognized relocation (0x2a) in section `.text'

Your /usr/bin/ld does not know about the relocation
R_X86_64_REX_GOTPCRELX (which is numeric 42) apparently.  Use a newer
linker?  You likely used a newer linker and assembler etc. to compile
stuff, to get this far, so figure out why not now?


Segher

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

* Re: Re: Some error when installing the gcc9.4.0,when "make".
  2022-06-16 13:17 ` Segher Boessenkool
@ 2022-06-20  7:35   ` 涂家礼
  0 siblings, 0 replies; 4+ messages in thread
From: 涂家礼 @ 2022-06-20  7:35 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: gcc-help

Thank you, I don't have root access to this computer to correct the system time, and after I backed out to an older gcc and updated a bunch of dependencies, I found that gcc 9.4.0 appears to be working correctly for an offline non-root install.

&quot;Segher Boessenkool&quot; &lt;segher@kernel.crashing.org&gt;写道:
> Hi!
> 
> On Sun, Jun 05, 2022 at 03:06:39PM +0800, 涂家礼 wrote:
> > make[4]: Warning: File `../libiberty/pic/libiberty.a' has modification time 8.1 s in the future
> 
> This could be a serious problem.  But, it seems unrelated to your
> problem.  OTOH, "make" very much does not like things that time travel.
> 
> > /usr/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.4.0/crtbeginS.o: unrecognized relocation (0x2a) in section `.text'
> 
> Your /usr/bin/ld does not know about the relocation
> R_X86_64_REX_GOTPCRELX (which is numeric 42) apparently.  Use a newer
> linker?  You likely used a newer linker and assembler etc. to compile
> stuff, to get this far, so figure out why not now?
> 
> 
> Segher

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

end of thread, other threads:[~2022-06-20  7:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05  7:06 Some error when installing the gcc9.4.0,when "make" 涂家礼
     [not found] ` <dded06c330c45362fa72cc19f31991c187022986.camel@xry111.site>
2022-06-16  8:25   ` 涂家礼
2022-06-16 13:17 ` Segher Boessenkool
2022-06-20  7:35   ` 涂家礼

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