This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Discussion about merging Go frontend


On 03/11/2010 04:41, Dave Korn wrote:

>   Something went wrong:
> 
>> Executing on host: /home/davek/gcc/obj/gcc/xgcc -B/home/davek/gcc/obj/gcc/
>> linker_plugin10991.c -flto -fuse-linker-plugin -o linker_plugin10991.exe
>> (timeout = 300)
>> gold: fatal error: /usr/lib/../lib64/libc.so: file not recognized
>> collect2: ld returned 1 exit status
>> compiler exited with status 1
>> output is:
>> gold: fatal error: /usr/lib/../lib64/libc.so: file not recognized
>> collect2: ld returned 1 exit status
>>
>> UNSUPPORTED: /n/10/davek/gcc/gcc/gcc/testsuite/gcc.dg/lto/20100722-1_0.c
> 
>   The libc.so in question is a linker script:
> 
>> davek@gcc10:~/state/patched/2010_11_03_02_55_55/patched$ cat /usr/lib/../lib64/libc.so
>> /* GNU ld script
>>    Use the shared library, but some functions are only in
>>    the static library, so try that secondarily.  */
>> OUTPUT_FORMAT(elf64-x86-64)
>> GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux-x86-64.so.2 ) )
> 
>   Unfortunately I didn't think to use the -savecompilers option, so I'll have
> to build it again before I can figure out what went wrong.

  Actually, I think I can see it anyway.  simple_object_start_read returns
that when it doesn't recognize the object format.  We should just return
without claiming the file in that case.  It can be distinguished by getting a
NULL return and an errmsg from the call to simple_object_start_read(), but the
err value being zero.

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]