Linux за българи: Форуми

Linux секция за начинаещи => Настройка на програми => Темата е започната от: ColdFuse в Nov 05, 2004, 14:09



Титла: error: cannot run C compiled programs.
Публикувано от: ColdFuse в Nov 05, 2004, 14:09
Здравейте,

Абе опитвам се да компилирам binutils-2.15.92.0.2 на SuSE 9.1, но make ми дава грешка.

При make configure-host вади следното:

Configuring in libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.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.
make: *** [configure-libiberty] Error 1

Интересното е, че по-принцип компилатора си работи, защото с други пакети няма проблем.
Ето и съдържанието на config.log

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1779: checking for gcc
configure:1892: checking whether the C compiler (gcc  ) works
configure:1908: gcc -o conftest    conftest.c  1>&5
configure:1934: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1939: checking whether we are using GNU C
configure:1948: gcc -E conftest.c
configure:1967: checking whether gcc accepts -g
configure:2034: checking for gnatbind
configure:2099: checking whether compiler driver understands Ada
configure:2132: checking how to compare bootstrapped objects
configure:2230: checking for correct version of gmp.h
configure:2243: gcc -c -g -O2   conftest.c 1>&5
configure:2256: checking for MPFR
configure:2269: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:2746: checking for bison
configure:2781: checking for bison
configure:2816: checking for gm4
configure:2816: checking for gnum4
configure:2816: checking for m4
configure:2851: checking for flex
configure:2886: checking for flex
configure:2921: checking for makeinfo
configure:3555: checking for i686-pc-linux-gnu-ar
configure:3588: checking for ar
configure:3627: checking for i686-pc-linux-gnu-as
configure:3660: checking for as
configure:3699: checking for i686-pc-linux-gnu-dlltool
configure:3732: checking for dlltool
configure:3771: checking for i686-pc-linux-gnu-ld
configure:3843: checking for i686-pc-linux-gnu-nm
configure:3876: checking for nm
configure:3915: checking for i686-pc-linux-gnu-ranlib
configure:3948: checking for ranlib
configure:3987: checking for i686-pc-linux-gnu-windres
configure:4020: checking for windres
configure:4059: checking for i686-pc-linux-gnu-objcopy
configure:4092: checking for objcopy
configure:4131: checking for i686-pc-linux-gnu-objdump
configure:4164: checking for objdump
configure:4210: checking for i686-pc-linux-gnu-ar
configure:4243: checking for ar
configure:4282: checking for i686-pc-linux-gnu-as
configure:4315: checking for as
configure:4354: checking for i686-pc-linux-gnu-dlltool
configure:4387: checking for dlltool
configure:4426: checking for i686-pc-linux-gnu-ld
configure:4459: checking for ld
configure:4498: checking for i686-pc-linux-gnu-nm
configure:4531: checking for nm
configure:4570: checking for i686-pc-linux-gnu-ranlib
configure:4603: checking for ranlib
configure:4642: checking for i686-pc-linux-gnu-windres
configure:4675: checking for windres
configure:4760: checking whether to enable maintainer-specific portions of Makefiles
configure:4807: checking if symbolic links between directories work

Някакви идеи?

 ???


Титла: error: cannot run C compiled programs.
Публикувано от: в Nov 10, 2004, 16:20
Цитат (ColdFuse @ Ноември 05 2004,15:09)
Здравейте,

Абе опитвам се да компилирам binutils-2.15.92.0.2 на SuSE 9.1, но make ми дава грешка.

При make configure-host вади следното:

Configuring in libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.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.
make: *** [configure-libiberty] Error 1

Интересното е, че по-принцип компилатора си работи, защото с други пакети няма проблем.
Ето и съдържанието на config.log

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1779: checking for gcc
configure:1892: checking whether the C compiler (gcc  ) works
configure:1908: gcc -o conftest    conftest.c  1>&5
configure:1934: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1939: checking whether we are using GNU C
configure:1948: gcc -E conftest.c
configure:1967: checking whether gcc accepts -g
configure:2034: checking for gnatbind
configure:2099: checking whether compiler driver understands Ada
configure:2132: checking how to compare bootstrapped objects
configure:2230: checking for correct version of gmp.h
configure:2243: gcc -c -g -O2   conftest.c 1>&5
configure:2256: checking for MPFR
configure:2269: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:2746: checking for bison
configure:2781: checking for bison
configure:2816: checking for gm4
configure:2816: checking for gnum4
configure:2816: checking for m4
configure:2851: checking for flex
configure:2886: checking for flex
configure:2921: checking for makeinfo
configure:3555: checking for i686-pc-linux-gnu-ar
configure:3588: checking for ar
configure:3627: checking for i686-pc-linux-gnu-as
configure:3660: checking for as
configure:3699: checking for i686-pc-linux-gnu-dlltool
configure:3732: checking for dlltool
configure:3771: checking for i686-pc-linux-gnu-ld
configure:3843: checking for i686-pc-linux-gnu-nm
configure:3876: checking for nm
configure:3915: checking for i686-pc-linux-gnu-ranlib
configure:3948: checking for ranlib
configure:3987: checking for i686-pc-linux-gnu-windres
configure:4020: checking for windres
configure:4059: checking for i686-pc-linux-gnu-objcopy
configure:4092: checking for objcopy
configure:4131: checking for i686-pc-linux-gnu-objdump
configure:4164: checking for objdump
configure:4210: checking for i686-pc-linux-gnu-ar
configure:4243: checking for ar
configure:4282: checking for i686-pc-linux-gnu-as
configure:4315: checking for as
configure:4354: checking for i686-pc-linux-gnu-dlltool
configure:4387: checking for dlltool
configure:4426: checking for i686-pc-linux-gnu-ld
configure:4459: checking for ld
configure:4498: checking for i686-pc-linux-gnu-nm
configure:4531: checking for nm
configure:4570: checking for i686-pc-linux-gnu-ranlib
configure:4603: checking for ranlib
configure:4642: checking for i686-pc-linux-gnu-windres
configure:4675: checking for windres
configure:4760: checking whether to enable maintainer-specific portions of Makefiles
configure:4807: checking if symbolic links between directories work

Някакви идеи?

 ???

Your filesystem seems to be not mounted executable. Check "/etc/fstab" and the output of "mount".

Kind regards