PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : C++ configure Probleme - crosscompiler ausschalten



stefan-tiger
13-05-2005, 18:19
Hallo, beim benutzen mit kdevelop bin ich auf ein Fehler mit configure gestoßen, den ich bis auf folgendes reduzieren konnte:

Ich hab zwei Konsolen offen:

Konsole1:

bash-2.05b$ pwd
/home/stefan/programmieren/svn/tutorial5
bash-2.05b$ ./configure --enable--debug=full
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... b.out
checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Konsole2:

bash-2.05b$ pwd
/home/stefan/programmieren/svn/tutorial5
bash-2.05b$ ./configure --enable-debug=full
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
...
...
...

Das ist ja seltsam: ich führe configure im selben Verzeichnis aus, mit unterschiedlichen Resultaten. Wie kann das sein?

stefan-tiger
13-05-2005, 18:40
Ich hab weitergeforscht und vermutlich raus woran es lag:

Das geht nicht:
g++ -omit-frame-pointer conftest.cc

Aber das:
g++ --omit-frame-pointer conftest.cc

Aus unerfundlichen Gründen setzt kdevelop in seinen Optionen für configure bei den gewählten Optimierungen nur ein Strich "-" anstatt zwei "--" davor.

peschmae
13-05-2005, 19:20
die Option heisst -fomit-frame-pointer und nicht --omit-frame-pointer oder so.

Und zwar -fomit-frame-pointer mit - und nicht mit -- wohlgemerkt.

MfG Peschmä