search for: collect2

Displaying 20 results from an estimated 1932 matches for "collect2".

2007 Sep 26
2
[LLVMdev] Compiling zlib to static bytecode archive
On Wednesday 26 September 2007, Chris Lattner wrote: > > llvm-gcc calling llvm-ld: > > llvm-gcc -> llvm-ld -> gcc -> collect2 -> ld > > > > enhance collect2: > > llvm-gcc -> llvm-collect2 -> llvm-ld -> gcc -> collect2 -> ld > > I'd rather enhance collect2 like this: > > llvm-gcc -> llvm-collect2(liblto) -> ld > > Where llvm-collect2 is just collect2 that dl...
2010 Nov 05
1
Asterisk 1.8 Installation Problem
...debug_abbrev size (1228). ../channels/chan_mgcp.eo: In function `mgcp_hangup': chan_mgcp.c:(.text+0xaf04): undefined reference to `ast_pktccops_gate_alloc' ../channels/chan_mgcp.eo: In function `start_rtp': chan_mgcp.c:(.text+0xbdb2): undefined reference to `ast_pktccops_gate_alloc' collect2: ld returned 1 exit status make[1]: *** [asterisk] Error 1 make: *** [main] Error 2 I don?t know if this helps but I`ve also copied a part of the config.log file which contains the ld word: [root at asterisk3 asterisk-1.8.0]# less config.log | grep ld configure:3302: checking build system type c...
2007 Sep 23
2
[LLVMdev] Compiling zlib to static bytecode archive
...elimated as dead code because a function is only called in one particular way. By the way, the example from that document does not work with the current llvm-gcc (GCC 4.0, LLVM 2.1-pre1). The last command fails: $ llvm-gcc a.o main.o -o main a.o: file not recognized: File format not recognized collect2: ld returned 1 exit status Linking with llvm-ld does work: $ llvm-ld a.o main.o -native -o main $ ./main $ echo $? 42 The link step combines one or more input files into one output file. The input files can be all bytecode, all native or mixed. The output file can be bytecode or native. Since...
2007 Sep 26
0
[LLVMdev] Compiling zlib to static bytecode archive
On Sep 25, 2007, at 6:12 PM, Maarten ter Huurne wrote: > On Wednesday 26 September 2007, Chris Lattner wrote: > >>> llvm-gcc calling llvm-ld: >>> llvm-gcc -> llvm-ld -> gcc -> collect2 -> ld >>> >>> enhance collect2: >>> llvm-gcc -> llvm-collect2 -> llvm-ld -> gcc -> collect2 -> ld >> >> I'd rather enhance collect2 like this: >> >> llvm-gcc -> llvm-collect2(liblto) -> ld >> >> Where llvm-...
2007 Sep 26
3
[LLVMdev] Compiling zlib to static bytecode archive
On Wednesday 26 September 2007, Chris Lattner wrote: > > Assuming those steps are correct, step 6 and 7 could be implemented > > by using > > the original collect2 and adding the generated native object to the > > list of > > files to link. In other words, llvm-collect2 could be a separate > > process, > > which is called instead of collect2, does some processing and then > > runs the > > original, unmodified collect2: >...
2007 Sep 26
0
[LLVMdev] Compiling zlib to static bytecode archive
...ly called in one particular way. make sense! > By the way, the example from that document does not work with the > current > llvm-gcc (GCC 4.0, LLVM 2.1-pre1). The last command fails: > > $ llvm-gcc a.o main.o -o main > a.o: file not recognized: File format not recognized > collect2: ld returned 1 exit status Again, this is because your native linker doesn't support liblto. > Linking with llvm-ld does work: > > $ llvm-ld a.o main.o -native -o main > $ ./main > $ echo $? > 42 > > The link step combines one or more input files into one output >...
2009 Jul 20
0
No subject
...ast_pktccops_gate_alloc'</EM></DIV> <DIV><EM>../channels/chan_mgcp.eo: In function `start_rtp':</EM></DIV> <DIV><EM>chan_mgcp.c:(.text+0xbdb2): undefined reference to=20 `ast_pktccops_gate_alloc'</EM></DIV> <DIV><EM>collect2: ld returned 1 exit status</EM></DIV> <DIV><EM>make[1]: *** [asterisk] Error 1</EM></DIV> <DIV><EM>make: *** [main] Error 2</EM></DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>I don=E2=80=99t know if t...
2007 Sep 27
0
[LLVMdev] Compiling zlib to static bytecode archive
On Wed, 26 Sep 2007, Maarten ter Huurne wrote: >>> process, >>> which is called instead of collect2, does some processing and then >>> runs the >>> original, unmodified collect2: >>> llvm-gcc -> llvm-collect2(liblto) -> collect2 -> ld >> >> Sure, this would also work. Is there any reason not to merge them >> together? > > Ease of main...
2007 Sep 21
0
[LLVMdev] Compiling zlib to static bytecode archive
...t; systemwide > ld? I tried setting the environment variables COMPILER_PATH=/usr/ > local/bin > and GCC_EXEC_PREFIX=llvm- but that had no effect. I see two solutions to this. One is to have llvm-gcc call llvm-ld when it has some option passed to it. Another would be to enhance 'collect2' to know about LLVM files. 'collect2' is a GCC utility invoked at link time, it would be the perfect place to add hooks. The thing we're missing most right now is a volunteer to tackle this project :) -Chris
2007 Sep 28
1
[LLVMdev] Compiling zlib to static bytecode archive
...ay 27 September 2007, Chris Lattner wrote: > >> Sure, this would also work. Is there any reason not to merge them > >> together? > > > > Ease of maintenance, mainly. Having it in a separate file makes it > > easier to migrate the code to new GCC releases. Also, collect2.c is > > already 2658 lines, which is more than I typically like to have in a > > single source file. > > My impression is that collect2 doesn't change very much. In any case, > the idea here would be that collect2 only has minimally invasive hooks to > call into liblto...
2007 Sep 21
2
[LLVMdev] Compiling zlib to static bytecode archive
...creation of "libz.a" works, but after that, zlib's Makefile wants to compile and link some example programs. The linking step fails: llvm-gcc --emit-llvm -DNO_vsnprintf -DUSE_MMAP -o example example.o \ -L. libz.a example.o: file not recognized: File format not recognized collect2: ld returned 1 exit status I can link it by hand using llvm-ld instead of llvm-gcc, like this: llvm-ld -o example example.o libz.a However, it is not possible to let the zlib Makefile issue that command without patching the Makefile, because the fragment that does the linking is hardcoded to...
2007 Oct 30
0
[LLVMdev] collect2 hack
...verything compiles fine (which is great), but I see that compiling/linking into bitcode files still hasn't been solved in a satisfying way. Until that gets resolved, I'm sending an updated script, that will do the trick. Usage: cd $LLVM_PATH/libexec/gcc/x86_64-unknown-linux-gnu/4.0.1/ mv collect2 llvm-collect2 copy the attached file to that directory The new collect will call llvm-collect2, unless you pass -enable-ld to it, in which case it will call llvm-ld, and link the bc files. To build an average app into bc files: 1) configure with standard llvm-gcc (don't pass -enable-ld to ll...
2014 Jul 24
3
/usr/bin/ld: cannot find -lncurses
Hi all, I am having this error when i tried to compile a program /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status Kindly help me out. Regard.
2006 Dec 12
1
[LLVMdev] How to compile apps to bc files with the new llvm-gcc4?
...ontend collects the arguments.) Even if emitting > bytecode only happens with "-O4", you still run into the same problem at > link time. Unless you override LD in your makefile or some other hack, > which, BTW, doesn't necessarily work either. I hacked a replacement for llvm-collect2 (explained below), but such hackery is really not a way to go in the long term. I'm very hopeful that Chandler's work will solve the problem for good. Hack explained: 1) rename llvm/libexec/gcc/x86_64-unknown-linux-gnu/4.0.1/collect2 to collect2-llvm 2) put the attached script collect2 in...
2015 Jun 12
5
[LLVMdev] How to change the linker of clang
1) Build clang with GCC-4.9.2, when compling other application s with clang/clang++, the default linker is ld, can I replace it with other linker tool, if we can, how to do it? I.E. can we use collect2 instead? 2) how to specify the path, if we do not use the default vertion GCC? Best Regards! Eric Lew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150612/a1592180/attachment.html>
2004 Sep 20
0
Installation problem; collect2: ld returned 1 exit status
...x2334):/usr/src/asterisk/app.c:497: undefined reference to `ast_waitstream' app.o(.text+0x233f):/usr/src/asterisk/app.c:498: undefined reference to `ast_stopstream' asterisk.o(.text+0xcee): In function `main': /usr/src/asterisk/asterisk.c:1836: undefined reference to `ast_file_init' collect2: ld returned 1 exit status make: *** [asterisk] Error 1 / Stig Henning -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040920/d57ccc40/attachment.htm
2006 Dec 11
0
[LLVMdev] How to compile apps to bc files with the new llvm-gcc4?
Reid Spencer wrote: > Chandler/Domagoj, > > On Sun, 2006-12-10 at 10:53 -0500, Chandler Carruth wrote: > >>Unless I'm missing something, the problem lies directly with the fact >>that you are trying to do a link-stage operation with the GCC >>frontend. GCC, by default, probably runs "ld" or another system >>linker, which grabs the executable from
2014 Feb 04
3
[LLVMdev] linux build broken on Ubuntu 12.04 x86_64
...d/utils/fpcmp' llvm[2]: Linking Debug+Asserts executable fpcmp /mnt/ssd/work/svn/lgs/build/Debug+Asserts/lib/libLLVMSupport.a(Process.o): In function `llvm::sys::Process::GetRandomNumber()': /mnt/ssd/work/svn/lgs/llvm/lib/Support/Unix/Process.inc:371: undefined reference to `arc4random' collect2: error: ld returned 1 exit status make[2]: *** [/mnt/ssd/work/svn/lgs/build/Debug+Asserts/bin/fpcmp] Error 1 make[2]: Leaving directory `/mnt/ssd/work/svn/lgs/build/utils/fpcmp' make[1]: *** [fpcmp/.makeall] Error 2 make[1]: Leaving directory `/mnt/ssd/work/svn/lgs/build/utils' make: *** [a...
2012 Mar 06
1
Help about error in linking to libspeex.a
Thanks for the reply, i added (LDFLAGS += -L/usr/local/lib -lspeex -lm) to Makefilebut the error is still appearing ! /tmp/ccDFH8gi.o(.text+0x179c): In function `main': : undefined reference to `BlinkC$speex_bits_init' collect2: ld returned 1 exit status make: *** [exe0] Error 1 i am trying to guess what is missed to correctly link to the lib .Do you have suggestions? Regards, Mash'al ________________________________ From: "speex-dev-request at xiph.org" <speex-dev-request at xiph.org> To: spee...
2015 Feb 26
3
[RFC PATCH v2] Encode optimize using libNe10
...' celt/tests/test_unit_dft.o: In function `pitch_search': /home/tterribe/src/xiph/git/xiph/opus/build/../celt/pitch.c:358: undefined reference to `CELT_PITCH_XCORR_IMPL' /home/tterribe/src/xiph/git/xiph/opus/build/../celt/pitch.c:358: undefined reference to `CELT_PITCH_XCORR_IMPL' collect2: error: ld returned 1 exit status The configure test fails with the NE10 options, because the test program is not being linked against $LIBM: configure:13471: gcc -std=gnu99 -o conftest -I/home/tterribe/src/xiph/git/arm/Ne10/inc conftest.c -L/home/tterribe/src/xiph/git/arm/Ne10/build/module...