public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/60530] openssh-6.5p1 can't be built with lto - revision 208516
Date: Fri, 14 Mar 2014 18:43:00 -0000	[thread overview]
Message-ID: <bug-60530-4-0GQxmKFGv8@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60530-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to David Kredba from comment #0)
> Created attachment 32351 [details]
> Un-reduced preprocessed source file gzipped
> 
> The only one object file causing the erro from -o ssh ssh.o readconf.o
> clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o mux.o
> roaming_common.o roaming_client.o is ssh.o.
> 
> x86_64-pc-linux-gnu-gcc -o ssh ssh.i -L. -Lopenbsd-compat/ -flto=4
> -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -Wl,-flto -O2 -ggdb -pipe
> -march=native -mtune=native -mno-3dnow -mno-sse4.2 -mno-avx -Wl,-z,relro
> -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -flto=4
> -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -Wl,-flto -O2 -ggdb -pipe
> -march=native -mtune=native -mno-3dnow -mno-sse4.2 -mno-avx -pie -lssh
> -lopenbsd-compat  -lssl -lcrypto  -ldl -lutil -lz -lnsl  -lcrypt -lresolv
> -lpthread 
> umac.c:1193:3: warning: type of 'umac_ctx' does not match original
> declaration
>  } umac_ctx;
>    ^
> ./umac.c:1193:3: note: previously declared here
>  } umac_ctx;
>    ^
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140311/../../../../x86_64-pc-
> linux-gnu/bin/ld: /tmp/ccKc90pS.ltrans0.ltrans.o: relocation R_X86_64_32
> against `.rodata.str1.1' can not be used when making a shared object;
> recompile with -fPIC
> /tmp/ccKc90pS.ltrans0.ltrans.o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status

When -pie is used, you need to add -fpie.


  parent reply	other threads:[~2014-03-14 18:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-60530-4@http.gcc.gnu.org/bugzilla/>
2014-03-14 18:21 ` nheghathivhistha at gmail dot com
2014-03-14 18:43 ` hjl.tools at gmail dot com [this message]
2014-03-15 16:10 ` nheghathivhistha at gmail dot com
2014-03-16  7:30 ` nheghathivhistha at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-60530-4-0GQxmKFGv8@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).