delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/03/26/21:48:08

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <44274EE0.8050206@qut.edu.au>
Date: Mon, 27 Mar 2006 12:33:04 +1000
From: "R. Hayward" <r DOT hayward AT qut DOT edu DOT au>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: collect2 failure to load libc.a
X-Junkmail-Whitelist: YES (by domain whitelist at mail-router02.qut.edu.au)
Reply-To: djgpp AT delorie DOT com

I can't seem to find the source of the following problem. I've got two 
boxes running XP, both with the same installation of djgpp:

bnu2161b.zip
bnu2161d.zip
djdev203.zip
faq230b.zip
gcc410b.zip
gcc410d.zip
gdb611b.zip
gdb611d.zip
mak3791b.zip
mak3791d.zip
pakk023b.zip
rhid15ab.zip
txi48b.zip
txi48d.zip

On one, compiling and linking the file a.c works fine, on the other it 
seems collect2.exe can not open libc.a

I repeated all this with v2.03 refresh and got the same results. Flummoxed!

Open to any suggestions




C:\Temp>ver

Microsoft Windows XP [Version 5.1.2600]

C:\Temp>gcc a.c
c:/djgpp/bin/ld.exe: cannot find -lgcc
collect2: ld returned 1 exit status

C:\Temp>gcc a.c -Xlinker -L. -Xlinker --verbose > linker.log
c:/djgpp/bin/ld.exe: cannot find -lc
collect2: ld returned 1 exit status

C:\Temp>dir
 Volume in drive C is SYSTEM
 Volume Serial Number is E461-FF46

 Directory of C:\Temp

27/03/2006  12:06 PM    <DIR>          .
27/03/2006  12:06 PM    <DIR>          ..
27/03/2006  08:15 AM                71 a.c
27/03/2006  09:13 AM           637,286 libc.a
11/03/2006  08:59 PM            64,006 libgcc.a
27/03/2006  12:06 PM             2,502 linker.log
               4 File(s)        703,865 bytes
               2 Dir(s)  11,220,451,840 bytes free

C:\Temp>

======================================linker.log========================================

GNU ld version 2.16.1
  Supported emulations:
   i386go32
using internal linker script:
==================================================
/* Default linker script, for normal executables */
OUTPUT_FORMAT("coff-go32-exe")
ENTRY(start)
SECTIONS
{
  .text  0x1000+SIZEOF_HEADERS : {
    *(.text)
    *(.text.*)
    *(.gnu.linkonce.t*)
    *(.const*)
    *(.ro*)
    *(.gnu.linkonce.r*)
    etext  =  . ; PROVIDE(_etext = .) ;
    . = ALIGN(0x200);
  }
  .data  ALIGN(0x200) : {
    djgpp_first_ctor = . ;
    *(SORT(.ctors.*))
    *(.ctor)
    *(.ctors)
    djgpp_last_ctor = . ;
    djgpp_first_dtor = . ;
    *(SORT(.dtors.*))
    *(.dtor)
    *(.dtors)
    djgpp_last_dtor = . ;
    __environ = . ;
    PROVIDE(_environ = .) ;
    LONG(0) ;
    *(.data)
    *(.data.*)
    *(.gcc_exc*)
    ___EH_FRAME_BEGIN__ = . ;
    *(.eh_fram*)
    ___EH_FRAME_END__ = . ;
    LONG(0);
    *(.gnu.linkonce.d*)
    edata  =  . ; PROVIDE(_edata = .) ;
    . = ALIGN(0x200);
  }
  .bss  SIZEOF(.data) + ADDR(.data) :
  {
    *(.bss .bss.* .gnu.linkonce.b.*)
    *(COMMON)
     end = . ; PROVIDE(_end = .) ;
     . = ALIGN(0x200);
  }
  /* Stabs debugging sections.  */
  .stab 0 : { *(.stab) }
  .stabstr 0 : { *(.stabstr) }
  /* DWARF 2 */
  .debug_aranges  0 : { *(.debug_aranges) }
  .debug_pubnames 0 : { *(.debug_pubnames) }
  .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  .debug_abbrev   0 : { *(.debug_abbrev) }
  .debug_line     0 : { *(.debug_line) }
  .debug_frame    0 : { *(.debug_frame) }
  .debug_str      0 : { *(.debug_str) }
  .debug_loc      0 : { *(.debug_loc) }
  .debug_macinfo  0 : { *(.debug_macinfo) }
}


==================================================
attempt to open c:/djgpp/lib/crt0.o succeeded
c:/djgpp/lib/crt0.o
attempt to open c:/djgpp/tmp/ccQJUGue.o succeeded
c:/djgpp/tmp/ccQJUGue.o
attempt to open c:/djgpp/bin/../lib/gcc/djgpp/4.10/libgcc.a succeeded
(c:/djgpp/bin/../lib/gcc/djgpp/4.10/libgcc.a)unwind-dw2-fde.o
attempt to open c:/djgpp/bin/../lib/gcc/djgpp/4.10/libc.a failed
attempt to open c:/djgpp/bin/../lib/gcc/libc.a failed
attempt to open c:/djgpp/lib/libc.a failed
attempt to open c:/djgpp/lib/gcc/djgpp/4.10/libc.a failed
attempt to open c:/djgpp/lib/libc.a failed
attempt to open c:/djgpp/bin/../lib/gcc/djgpp/4.10/../../../libc.a failed
attempt to open c:/djgpp/lib/libc.a failed
attempt to open ./libc.a failed
attempt to open c:/djgpp/bin/../lib/libc.a failed

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019