Author Topic: collect2: cannot find `ld'  (Read 14278 times)

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
collect2: cannot find `ld'
« on: 2008-Jul-03 »
Hi Gernot,

Any idea what's causing this error (I have the latest patch).

There's no indication if it's in my source and as it happens on linking could it be something in GLB?

*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2008.179 - 3D, NET
Wordcount:3328 commands

compiling:

linking:
collect2: cannot find `ld'
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 19.4 sec. Time: 19:36
Build: 0 succeeded.
*** 1 FAILED ***


Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10766
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: collect2: cannot find `ld'
« Reply #1 on: 2008-Jul-04 »
ouch! Is there no file:
GLBasic\compiler\platform\win32\bin\ld.exe

There's something seriously wrong. When did it start? Did you install anything else beside GLBasic?

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: collect2: cannot find `ld'
« Reply #2 on: 2008-Jul-04 »
I'd missed a couple of patches and I everything was running ok previously.

Hmmm... I have got that file:

C:\Program Files\GLBasic\Compiler\platform\Win32\Bin\ld.exe

I've recently installed VS2008 but I think that's all.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10766
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: collect2: cannot find `ld'
« Reply #3 on: 2008-Jul-06 »
A new install/update didn't help either?

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: collect2: cannot find `ld'
« Reply #4 on: 2008-Jul-07 »
No.

I installed v 5.235 from the CD and all my programs worked.  I then did the internet update to the latest version and nothing will compile.  Did you say you upgraded the GCC compiler recently ... could that be something to do with this?

BTW, it does this with anything I try to compile, even just a simple test program...

SETSCREEN 640,480,0
SHOWSCREEN
MOUSEWAIT

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10766
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: collect2: cannot find `ld'
« Reply #5 on: 2008-Jul-07 »
I installed the very new thing on a PC and did the update, and it worked.
Do you have a copy of MinGW on your computer, maybe?
It's very strange.

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: collect2: cannot find `ld'
« Reply #6 on: 2008-Jul-07 »
Ah, it's that MinGW bug again.  If I rename the mingw folder, GLBasic works again. 

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10766
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: collect2: cannot find `ld'
« Reply #7 on: 2008-Jul-07 »
 :rant:
I'll have a look.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5088
  • O Rly?
    • View Profile
Re: collect2: cannot find `ld'
« Reply #8 on: 2008-Jul-07 »
Angry Gernot  :noggin:


 :nana:
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: collect2: cannot find `ld'
« Reply #9 on: 2008-Aug-08 »
Any luck with this one?  Still occurs if MINGW folder is not disabled (renamed).  I'm on Vista BTW.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10766
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: collect2: cannot find `ld'
« Reply #10 on: 2008-Aug-09 »
it worked for me. What versinn of mingw do you have?

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: collect2: cannot find `ld'
« Reply #11 on: 2008-Aug-09 »
Ver 5.1.3.

It looks like 5.1.4 is the latest.  Installing ...

Yay... success.  No more ld errors.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10766
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: collect2: cannot find `ld'
« Reply #12 on: 2008-Aug-11 »
aces. I can't seem to get that version to try and fix it...

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: collect2: cannot find `ld'
« Reply #13 on: 2008-Aug-11 »
The main thing is that there is a sensible work around, ie: get the latest MinGW.  I don't suppose that will be a problem for most who are still using MinGW 5.1.3 and GLBasic.

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 550
    • View Profile
Re: collect2: cannot find `ld'
« Reply #14 on: 2015-Nov-07 »
I'm having the exact same error message.

collect2: cannot find `ld`

It happens when I try compiling for Linux, or Mac. When I compile for Windows everything works well. I have unzipped the latest Linux and Mac compilers in Compiler/platform/.

I used to have Cygwin installed but that was a long time ago. Never had MinGW installed. ld.exe does exist in the Windows compiler directory.

 :doubt:

Can it be a conflict with older GLBasic versions I still have on disk maybe?
« Last Edit: 2015-Nov-07 by r0ber7 »