Home > Cannot Find > Gcc Collect2: Cannot Find `ld'

Gcc Collect2: Cannot Find `ld'

Contents

Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 3 of 3 Thread: collect2: cannot find 'id' Adv Reply November 24th, 2010 #5 frozz_night View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Oct 2010 Beans 4 Re: gcc problem collect2: cannot find what does it mean by "used to" in the context below? have a peek at this web-site

How to combine different predictions together? The time now is 05:05 PM. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Search this Thread 03-11-2010, 02:12 PM #1 TecH T4nK X10 LQ Newbie Registered: May 2009 Posts: 14 Rep: gcc collect2: cannot find `ld' Code: collect2: cannot find `ld' I'm

Gcc Collect2: Cannot Find `ld'

Are there continuous functions for which the epsilon-delta property doesn't hold? rm -f /node-v5.2.0/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a && ar crs /node-v5.2.0/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a /node-v5.2.0/out/Release/obj.target/v8_nosnapshot/gen/libraries.o /node-v5.2.0/out/Release/obj.target/v8_nosnapshot/gen/code-stub-libraries.o /node-v5.2.0/out/Release/obj.target/v8_nosnapshot/gen/experimental-libraries.o /node-v5.2.0/out/Release/obj.target/v8_nosnapshot/gen/extras-libraries.o /node-v5.2.0/out/Release/obj.target/v8_nosnapshot/deps/v8/src/snapshot/snapshot-empty.o ln -f "/node-v5.2.0/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a" "/node-v5.2.0/out/Release/libv8_nosnapshot.a" 2>/dev/null || (rm -rf "/node-v5.2.0/out/Release/libv8_nosnapshot.a" && cp -af "/node-v5.2.0/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a" "/node-v5.2.0/out/Release/libv8_nosnapshot.a") g++ '-DV8_TARGET_ARCH_X64' '-DENABLE_DISASSEMBLER' -I../deps/v8 -pthread Could that be it? Previously I was manually setting CC, CXX (and later LD).

I guess I was missing another environment variable or something ... GNU C version 4.0.3 (i686-pc-linux-gnu) compiled by GNU C version 4.0.3. mhart commented Dec 10, 2015 @smebberson Ah, I see you have an impressively similar Dockerfile here: https://github.com/smebberson/docker-alpine/blob/master/alpine-nodejs/Dockerfile 😆 Try mine as is and let me know how you go smebberson commented Collect2 Cannot Find 'ld' Centos The project files all seem to fine...

Compiling now. Hopefully this is just a temporary solution. more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science https://askubuntu.com/questions/798453/collect2-fatal-error-cannot-find-ld-compilation-terminated Browse other questions tagged linux gcc libraries linker or ask your own question.

Node.js Foundation member jbergstroem commented Dec 11, 2015 Try disabling snapshots (/.configure --without-snapshot); they might not be available on your architecture. 👍 2 smebberson commented Dec 11, 2015 @jbergstroem, that Node Collect2: Fatal Error: Cannot Find 'ld' Adv Reply Quick Navigation New to Ubuntu Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Ubuntu Forum Community Ubuntu Official Flavours Support New c++ linux g++ share|improve this question edited Feb 27 at 0:44 Sean M 34412 asked May 23 '13 at 9:20 ZoOo 838265 Need more info. To me it all seems like magic and voodoo is at work, but I hope good old fashioned science/logic can explain what the real problem is.

Collect2 Fatal Error Cannot Find 'ld' Compilation Terminated

Have you installed build-essentials? http://stackoverflow.com/questions/35970824/gcc-collect2-fatal-error-cannot-find-ld Well, I can confirm that I can also build it with: with the binutils-gold package with the --without-snapshot configure flag without the patch hefangshi commented Dec 29, 2015 We also encount Gcc Collect2: Cannot Find `ld' rm -f /node-v5.1.1/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a && ar crs /node-v5.1.1/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a /node-v5.1.1/out/Release/obj.target/v8_nosnapshot/gen/libraries.o /node-v5.1.1/out/Release/obj.target/v8_nosnapshot/gen/code-stub-libraries.o /node-v5.1.1/out/Release/obj.target/v8_nosnapshot/gen/experimental-libraries.o /node-v5.1.1/out/Release/obj.target/v8_nosnapshot/gen/extras-libraries.o /node-v5.1.1/out/Release/obj.target/v8_nosnapshot/deps/v8/src/snapshot/snapshot-empty.o ln -f "/node-v5.1.1/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a" "/node-v5.1.1/out/Release/libv8_nosnapshot.a" 2>/dev/null || (rm -rf "/node-v5.1.1/out/Release/libv8_nosnapshot.a" && cp -af "/node-v5.1.1/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a" "/node-v5.1.1/out/Release/libv8_nosnapshot.a") touch /node-v5.1.1/out/Release/obj.target/deps/v8/tools/gyp/v8_maybe_snapshot.stamp touch /node-v5.1.1/out/Release/obj.target/deps/v8/tools/gyp/v8.stamp g++ Collect2 Cannot Find 'ld' Ubuntu this is rather bizarre.

mhart commented Dec 9, 2015 Now trying with the original common.gypi after installing binutils-gold mhart commented Dec 9, 2015 I wonder if linux_use_bundled_gold and/or linux_use_bundled_binutils are the flags to modify? Check This Out Results 1 to 9 of 9 Thread: Collect2: cannot find ld Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch In the following cases this error come up. I had put my extra library in /opt/lib so I did: $ export LIBRARY_PATH=/opt/lib/ and then ran make for successful compilation and linking. Collect2 Cannot Find Ld Linux

I just tried to run your exact Dockerfile code and it fails with: /usr/lib/gcc/x86_64-alpine-linux-musl/4.9.2/../../../../x86_64-alpine-linux-musl/bin/ld.gold: fatal error: /node-v5.2.0/out/Release/mksnapshot: Not supported collect2: error: ld returned 1 exit status deps/v8/tools/gyp/mksnapshot.target.mk:139: recipe for target '/node-v5.2.0/out/Release/mksnapshot' I came across another post on the Internets that suggested to run make with LD_DEBUG=all: LD_DEBUG=all make Although I got a TON of debugging output, it wasn't actually helpful. If you'd like to contribute content, let us know. Source Or, 4.2.3 didn't support snapshot feature by default?

If its name is followed by version number: .so.1.2 or something like this. Gcc Cannot Find Ld The workaround is to build with --without-snapshot or install the gold linker. Powered by vBulletin Version 4.2.2Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.

Is the result of the general election final on 8th of Nov, 2016?

To start viewing messages, select the forum that you want to visit from the selection below. ** If you are logged in, most ads will not be displayed. ** Linuxforums now Not the answer you're looking for? Try us on IRC -- #linuxforums on freenode Reply With Quote 07-16-2008 #3 sam159 View Profile View Forum Posts Private Message View Articles Just Joined! Collect2 Cannot Find Ld Windows We solved this using GNU linker instead of gold linker to which CMake seems to default.

How do I handle this? And installed it at the same location as the compiler? –Some programmer dude Mar 13 at 17:00 @JoachimPileborg After I found collect2 program source I went through it and Password Linux - Newbie This Linux forum is for members that are new to Linux. http://haywirerobotics.com/cannot-find/cygwin-gcc-cannot-find.html Quote: ls -l /usr/bin/ld -rwxr-x--- 1 root compiler 323432 Jul 25 2008 /usr/bin/ld file /usr/bin/ld /usr/bin/ld: writable, executable, regular file, no read permission TecH T4nK X10 View Public Profile View

Registration is fast, simple and absolutely free so please, join our community today! You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Join them; it only takes a minute: Sign up usr/bin/ld: cannot find -l up vote 167 down vote favorite 50 I'm trying to compile my program and it returns this error What's the output of Code: ls -l /usr/bin/ld file /usr/bin/ld Tinkster View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts

Review your favorite Linux distribution. Any ideas? –XXO2 Mar 16 at 17:41 add a comment| active oldest votes Know someone who can answer? The verbose option showed this clearly. Join Date Jul 2008 Location Ipswich, UK Posts 5 Code: $ echo $PATH /home/sam/bin:/home/sam/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin so *should* be fine...

which distro are you using, how did you install gcc & its mates? Thanks for your help ! –ZoOo May 23 '13 at 11:16 | show 3 more comments 7 Answers 7 active oldest votes up vote 64 down vote accepted If your library Over 90 percent of questions asked here gets answered. Last edited by lolzwut; March 11th, 2010 at 08:03 PM.

How do I handle this?