|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts) |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I cannot build any of the "hello world" programs using kdevelop after upgrading from 10.1 to 11.1 The programs automake and compile fine, but then the linker goes into a loop. I have a gut feeling that kdevelop is pointing to the wrong libraries. How do I either:
Fix the linker issues? or Get the installer to perform a truely clean install? Thanks in advance to for any help. |
|
|||
|
Quote:
Quote:
|
|
|||
|
The linker appears to be running.
Here's the output I get when I try to build "hello world" cd '/home/stuart/GA/hello/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" gmake -k gmake all-recursive Making all in src linking hello (libtool) /bin/sh: ../libtool: Too many open files in system ../libtool: cannot make pipe for command substitution: Too many open files in system ../libtool: line 718: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 719: *** Future versions of Libtool will require -mode=MODE be specified.: command not found ../libtool: line 751: : warning: cannot infer operation mode without MODE-ARGS: command not found ../libtool: line 6512: : you must specify a MODE: command not found ../libtool: line 6513: Try ` --help' for more information.: command not found ../libtool: cannot make pipe for command substitution: Too many open files in system ../libtool: line 718: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 719: *** Future versions of Libtool will require -mode=MODE be specified.: command not found ../libtool: line 751: : warning: cannot infer operation mode without MODE-ARGS: command not found The error messages just loop forever. If I try to build a hello world program using the command line, the results are more perplexing. A "C" style hello world program using printf works just fine. However a "C++" style hello world program gives the following errors: stuart@linux-bzjh:~/GA/hello/src> gcc hello.cpp /tmp/ccWPn1dP.o: In function `main': hello.cpp .text+0x1c): undefined reference to `std::cout'/tmp/ccWPn1dP.o: In function `__static_initialization_and_destruction_0(int, int)': Messages snipped hello.cpp .text+0x60): undefined reference to `std::ios_base::Init::Init()'hello.cpp .text+0x65): undefined reference to `std::ios_base::Init::~Init()'/tmp/ccWPn1dP.o .eh_frame+0x11): undefined reference to `__gxx_personality_v0'collect2: ld returned 1 exit status Is there any easy way to fix this? Also, I've copied everything I care about to a USB drive. What is the easiest way to perform a clean install? I choose "install" when I upgraded, but it looks like the installer left most of the old system intact. |
|
|||
|
Two things to try.
When you make a hello world outside kdevelop, use "g++" rather than "gcc." If you use gcc, the error you show appears. Code:
g++ -o hello hello.c Code:
make distclean |
|
|||
|
Quote:
Quote:
I tried building the kdevelop program from the command line. Here's the output: Code:
stuart@linux-bzjh:~/GA/hello/debug/src> make /bin/sh ../libtool --tag=CXX --mode=link g++ -O0 -g3 -o hello hello.o ../libtool: line 457: /usr/bin/sed: Too many open files in system /bin/sh: ../libtool: Too many open files in system ../libtool: cannot make pipe for command substitution: Too many open files in system ../libtool: line 718: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 719: *** Future versions of Libtool will require -mode=MODE be specified.: command not found ../libtool: line 751: : warning: cannot infer operation mode without MODE-ARGS: command not found ../libtool: line 6512: : you must specify a MODE: command not found ../libtool: line 6513: Try ` --help' for more information.: command not found ../libtool: cannot make pipe for command substitution: Too many open files in system |
|
|||
|
A few more suggestions.
|
![]() |
| Bookmarks |
| Tags |
| hello world, kdevelop, upgrade |
| Thread Tools | |
| Display Modes | |
|
|