public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/53751] New: [lto] collect2 generates a resolution file name -lm.res
@ 2012-06-22 12:01 vincenzo.innocente at cern dot ch
  2012-06-22 12:13 ` [Bug lto/53751] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-06-22 12:01 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53751
           Summary: [lto] collect2 generates a resolution file name
                    -lm.res
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vincenzo.innocente@cern.ch


a file with a trailing dash is always a bit annoying...

touch CosmicClusterAlgo.cc EndcapPiZeroDiscriminatorAlgo.cc
HybridClusterAlgo.cc Multi5x5BremRecoveryClusterAlgo.cc PreshowerClusterAlgo.cc
a1.cc
c++ -c -flto -fPIC -fno-fat-lto-objects -ffunction-sections
CosmicClusterAlgo.cc EndcapPiZeroDiscriminatorAlgo.cc HybridClusterAlgo.cc
Multi5x5BremRecoveryClusterAlgo.cc PreshowerClusterAlgo.cc a1.cc
c++ -Wl,-v -O2 -g -fPIC -fno-fat-lto-objects -ffunction-sections -flto
-std=gnu++11 -msse3 CosmicClusterAlgo.o EndcapPiZeroDiscriminatorAlgo.o
HybridClusterAlgo.o Multi5x5BremRecoveryClusterAlgo.o PreshowerClusterAlgo.o
a1.o -shared -o libbho.so  -save-tempscollect2 version 4.7.2 20120615
(prerelease) [gcc-4_7-branch revision 188650]
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld -plugin
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/liblto_plugin.so
-plugin-opt=/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
-plugin-opt=-fresolution=-lm.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr
-m elf_x86_64 -shared -o libbho.so /usr/lib/../lib64/crti.o
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtbeginS.o
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../..
-v CosmicClusterAlgo.o EndcapPiZeroDiscriminatorAlgo.o HybridClusterAlgo.o
Multi5x5BremRecoveryClusterAlgo.o PreshowerClusterAlgo.o a1.o -lstdc++ -lm
-lgcc_s -lc -lgcc_s
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtendS.o
/usr/lib/../lib64/crtn.o
GNU gold (GNU Binutils 2.22.52.20120515) 1.11
[Leaving LTRANS /tmp/innocent/ccSYvTei.args]
[Leaving LTRANS libbho.so.ltrans.out]
[Leaving LTRANS /tmp/innocent/ccSuSfbA.args]
[Leaving LTRANS libbho.so.ltrans0.o]

ls
-lm.res               CosmicClusterAlgo.res            
EndcapPiZeroDiscriminatorAlgo.o  HybridClusterAlgo.o                
Multi5x5BremRecoveryClusterAlgo.o  PreshowerClusterAlgo.o  a1.o      
libbho.so.ltrans.out
CosmicClusterAlgo.cc  CosmicClusterAlgo.s              
EndcapPiZeroDiscriminatorAlgo.s  HybridClusterAlgo.s                
Multi5x5BremRecoveryClusterAlgo.s  PreshowerClusterAlgo.s  a1.res    
libbho.so.ltrans0.o
CosmicClusterAlgo.ii  EndcapPiZeroDiscriminatorAlgo.cc  HybridClusterAlgo.cc   
         Multi5x5BremRecoveryClusterAlgo.cc  PreshowerClusterAlgo.cc           
a1.cc                   a1.s       libbho.so.ltrans0.s
CosmicClusterAlgo.o   EndcapPiZeroDiscriminatorAlgo.ii  HybridClusterAlgo.ii   
         Multi5x5BremRecoveryClusterAlgo.ii  PreshowerClusterAlgo.ii           
a1.ii                   libbho.so


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

* [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res
  2012-06-22 12:01 [Bug lto/53751] New: [lto] collect2 generates a resolution file name -lm.res vincenzo.innocente at cern dot ch
@ 2012-06-22 12:13 ` rguenth at gcc dot gnu.org
  2012-06-22 12:20 ` vincenzo.innocente at cern dot ch
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-22 12:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-22 12:13:40 UTC ---
There is a dup for this somewhere.  Only happens if you do not specify a
linker output file (and thus a.out is used).


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

* [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res
  2012-06-22 12:01 [Bug lto/53751] New: [lto] collect2 generates a resolution file name -lm.res vincenzo.innocente at cern dot ch
  2012-06-22 12:13 ` [Bug lto/53751] " rguenth at gcc dot gnu.org
@ 2012-06-22 12:20 ` vincenzo.innocente at cern dot ch
  2012-06-22 12:29 ` [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res (with -save-temps) vincenzo.innocente at cern dot ch
  2021-09-12 19:40 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-06-22 12:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-06-22 12:19:58 UTC ---
that was I suspected first.
but  I have
-shared -o libbho.so
and libbho.so is generated


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

* [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res (with -save-temps)
  2012-06-22 12:01 [Bug lto/53751] New: [lto] collect2 generates a resolution file name -lm.res vincenzo.innocente at cern dot ch
  2012-06-22 12:13 ` [Bug lto/53751] " rguenth at gcc dot gnu.org
  2012-06-22 12:20 ` vincenzo.innocente at cern dot ch
@ 2012-06-22 12:29 ` vincenzo.innocente at cern dot ch
  2021-09-12 19:40 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-06-22 12:29 UTC (permalink / raw)
  To: gcc-bugs

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

vincenzo Innocente <vincenzo.innocente at cern dot ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[lto] collect2 generates a  |[lto] collect2 generates a
                   |resolution file name        |resolution file name
                   |-lm.res                     |-lm.res (with -save-temps)

--- Comment #3 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-06-22 12:28:56 UTC ---
with just one file, minimal opt
first ok
second -lm.res

touch a1.cc
c++ -Wl,-v -fPIC -flto a1.cc -shared -o bho.so -save-temps
c++ -Wl,-v -fPIC -flto a1.o -shared -o bho.so -save-temps

collect2 version 4.7.2 20120615 (prerelease) [gcc-4_7-branch revision 188650]
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld -plugin
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/liblto_plugin.so
-plugin-opt=/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
-plugin-opt=-fresolution=a1.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr
-m elf_x86_64 -shared -o bho.so /usr/lib/../lib64/crti.o
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtbeginS.o
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../..
-v a1.o -lstdc++ -lm -lgcc_s -lc -lgcc_s
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtendS.o
/usr/lib/../lib64/crtn.o
GNU gold (GNU Binutils 2.22.52.20120515) 1.11
[Leaving LTRANS /tmp/innocent/cc29ngrg.args]
[Leaving LTRANS bho.so.ltrans.out]
[Leaving LTRANS /tmp/innocent/cc4SuQ5u.args]
[Leaving LTRANS bho.so.ltrans0.o]

c++ -Wl,-v -fPIC -flto a1.o -shared -o bho.so -save-temps
collect2 version 4.7.2 20120615 (prerelease) [gcc-4_7-branch revision 188650]
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld -plugin
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/liblto_plugin.so
-plugin-opt=/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
-plugin-opt=-fresolution=-lm.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr
-m elf_x86_64 -shared -o bho.so /usr/lib/../lib64/crti.o
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtbeginS.o
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../..
-v a1.o -lstdc++ -lm -lgcc_s -lc -lgcc_s
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtendS.o
/usr/lib/../lib64/crtn.o
GNU gold (GNU Binutils 2.22.52.20120515) 1.11
[Leaving LTRANS /tmp/innocent/ccto8gdr.args]
[Leaving LTRANS bho.so.ltrans.out]
[Leaving LTRANS /tmp/innocent/cczK9K70.args]
[Leaving LTRANS bho.so.ltrans0.o]


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

* [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res (with -save-temps)
  2012-06-22 12:01 [Bug lto/53751] New: [lto] collect2 generates a resolution file name -lm.res vincenzo.innocente at cern dot ch
                   ` (2 preceding siblings ...)
  2012-06-22 12:29 ` [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res (with -save-temps) vincenzo.innocente at cern dot ch
@ 2021-09-12 19:40 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-12 19:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53751

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this has been fixed with the patches which change the name based on the
output file name instead of the first input.

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

end of thread, other threads:[~2021-09-12 19:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-22 12:01 [Bug lto/53751] New: [lto] collect2 generates a resolution file name -lm.res vincenzo.innocente at cern dot ch
2012-06-22 12:13 ` [Bug lto/53751] " rguenth at gcc dot gnu.org
2012-06-22 12:20 ` vincenzo.innocente at cern dot ch
2012-06-22 12:29 ` [Bug lto/53751] [lto] collect2 generates a resolution file name -lm.res (with -save-temps) vincenzo.innocente at cern dot ch
2021-09-12 19:40 ` pinskia at gcc dot gnu.org

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