Skocz do zawartości

Problem Z Kompilacją Icd2prog


korrus666

Rekomendowane odpowiedzi

Witam. Zainstalowałem sobie fedorę 11 x86_64 i mam problem z kompilacją programów. Z przykład niech posłuży icd2prog.

Wywala się już na poleceniu ./configure

./configure CC=gcc CFLAGS=-O2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

Nie wiem czemu przy wszystkich plikach nagłówkowych mam no.

A tu kawałek listingu z pliku config.log

configure:1378: checking for a BSD-compatible install
configure:1433: result: /usr/bin/install -c
configure:1444: checking whether build environment is sane
configure:1487: result: yes
configure:1552: checking for gawk
configure:1568: found /usr/bin/gawk
configure:1578: result: gawk
configure:1588: checking whether make sets $(MAKE)
configure:1608: result: yes
configure:1789: checking for style of include used by make
configure:1817: result: GNU
configure:1844: checking for egrep
configure:1854: result: grep -E
configure:1859: checking for ANSI C header files
configure:1884: gcc -c -O2  conftest.c >&5
gcc: Internal error: Bus error (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
configure:1890: $? = 1
configure: failed program was:
| /* confdefs.h.  */

Mam nadzieję że ktoś pomoże rozwiązać ten problem. W zasadzie z każdym programem jaki próbowałem skompilować jest podobny problem i już ./configure nie przechodzi.

Wrzucę jeszcze listę zainstalowanych pakietów gcc:

mingw32-gcc-objc++-4.4.0-0.7.fc11.x86_64
gcc-c++-4.4.1-2.fc11.x86_64
compat-gcc-34-3.4.6-13.x86_64
gcc-objc-4.4.1-2.fc11.x86_64
gcc-gfortran-4.4.1-2.fc11.x86_64
libgcc-4.4.1-2.fc11.i586
compat-gcc-34-c++-3.4.6-13.x86_64
mingw32-gcc-c++-4.4.0-0.7.fc11.x86_64
libgcc-4.4.1-2.fc11.x86_64
gcc-4.4.1-2.fc11.x86_64
gcc-java-4.4.1-2.fc11.x86_64
gcc-objc++-4.4.1-2.fc11.x86_64
mingw32-gcc-4.4.0-0.7.fc11.x86_64
mingw32-gcc-objc-4.4.0-0.7.fc11.x86_64

Odnośnik do komentarza
Udostępnij na innych stronach

A jak bys tak do tych wszystkich zainstalowanych pakietow gcc dorzucil jeszcze pakiety *-devel-* i wtedy sprobowal kompilacji?

 

A tak z innej beczki - jestes pewny, ze nikt tego przed Toba juz nie zrobil? Moze te programy sa dostepne w postaci gotowych pakietow rpm? Jest kilka dobrych wyszukiwarek...

Odnośnik do komentarza
Udostępnij na innych stronach

$ rpm -qf /usr/include/sys/types.h 
glibc-headers-2.10.1-4.x86_64

:)

 

$ rpm -qa |grep headers
kernel-headers-2.6.30.5-43.fc11.x86_64
glibc-headers-2.10.1-4.x86_64

:)

 

ostatecznie można

#  yum provides */sys/types.h

i domyśleć się o co mu chodzi, czyli w szczególności

#  yum provides /usr/include/sys/types.h

 

powodzenia!

Odnośnik do komentarza
Udostępnij na innych stronach

u mnie ./configure przechodzi bez problemów, mogę Ci jeszcze przy długą listę moich develi podać

$ rpm -qa | grep devel |sort
atk-devel-1.25.2-2.fc11.x86_64
avahi-devel-0.6.25-3.fc11.x86_64
cairo-devel-1.8.8-1.fc11.x86_64
device-mapper-devel-1.02.33-2.fc11.x86_64
e2fsprogs-devel-1.41.4-12.fc11.x86_64
fontconfig-devel-2.7.1-1.fc11.x86_64
freetype-devel-2.3.9-5.fc11.x86_64
gettext-devel-0.17-12.fc11.x86_64
glib2-devel-2.20.4-1.fc11.x86_64
glibc-devel-2.10.1-4.x86_64
gtk2-devel-2.16.5-1.fc11.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-27.b16.fc11.x86_64
kernel-devel-2.6.29.6-217.2.16.fc11.x86_64
kernel-devel-2.6.30.5-43.fc11.x86_64
keyutils-libs-devel-1.2-5.fc11.x86_64
krb5-devel-1.6.3-20.fc11.x86_64
libdrm-devel-2.4.6-7.fc11.x86_64
libICE-devel-1.0.4-7.fc11.x86_64
libjpeg-devel-6b-45.fc11.x86_64
libmng-devel-1.0.10-2.fc11.x86_64
libpng-devel-1.2.37-1.fc11.x86_64
libselinux-devel-2.0.80-1.fc11.x86_64
libsepol-devel-2.0.36-1.fc11.x86_64
libSM-devel-1.1.0-4.fc11.x86_64
libstdc++-devel-4.4.1-2.fc11.x86_64
libX11-devel-1.2.2-1.fc11.x86_64
libXau-devel-1.0.4-5.fc11.x86_64
libxcb-devel-1.2-4.fc11.x86_64
libXcomposite-devel-0.4.0-7.fc11.x86_64
libXcursor-devel-1.1.9-4.fc11.x86_64
libXdamage-devel-1.1.1-6.fc11.x86_64
libXdmcp-devel-1.0.2-8.fc11.x86_64
libXext-devel-1.0.99.1-2.fc11.x86_64
libXfixes-devel-4.0.3-5.fc11.x86_64
libXft-devel-2.1.13-2.fc11.x86_64
libXi-devel-1.2.1-1.fc11.x86_64
libXinerama-devel-1.0.3-4.fc11.x86_64
libXrandr-devel-1.2.99.4-3.fc11.x86_64
libXrender-devel-0.9.4-5.fc11.x86_64
libXt-devel-1.0.5-2.fc11.x86_64
libXxf86vm-devel-1.0.2-2.fc11.x86_64
mesa-libGL-devel-7.6-0.1.fc11.x86_64
mesa-libGLU-devel-7.6-0.1.fc11.x86_64
ncurses-devel-5.7-2.20090207.fc11.x86_64
openssl-devel-0.9.8k-5.fc11.x86_64
pango-devel-1.24.5-1.fc11.x86_64
perl-devel-5.10.0-73.fc11.x86_64
pixman-devel-0.14.0-2.fc11.x86_64
python-devel-2.6-9.fc11.x86_64
vala-devel-0.7.3-1.fc11.x86_64
xorg-x11-proto-devel-7.4-15.fc11.noarch
zlib-devel-1.2.3-22.fc11.x86_64

 

co się właściwie psuje w tym punkcie

configure:1884: gcc -c -O2 conftest.c >&5

 

[EDIT]

masz jakiś nietypowy kompilator? bo widzę ustawiasz go w ./configure CC=gcc CFLAGS=-O2

Odnośnik do komentarza
Udostępnij na innych stronach

Hmm... dziwne...

[waldo@F11 icd2prog-0.2.0]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for library containing strerror... none required
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for ANSI C header files... (cached) no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether C++ has bool... yes
checking whether C++ has buggy scoping in for-loops... yes
checking whether user wants assertions... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether user wants warnings... no
checking for ranlib... ranlib
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
configure: WARNING: usb support disabled.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating README
config.status: creating doc/Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating pics/Makefile
config.status: creating config.h
config.status: executing depfiles commands

 

[EDIT]

@borzole szybszy :) Punkt dla niego albo nawet drugi jeszcze - odpal ./configure bez dodatkowych parametrów. Po co Ci one? kompilator prawie na 100% gcc, a optymalizacja O2 to chyba przerost formy nad treścią. Chociaż nie wiem, bo jak wiele razy powtarzałem programista ze mnie żaden.

Odnośnik do komentarza
Udostępnij na innych stronach

Bez parametrów też nic nie działa.

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details

Wrzucam jeszcze kawałek loga

configure:1884:  -c   conftest.c >&5
./configure: line 1885: -c: command not found
configure:1890: $? = 127
configure: failed program was:
| /* confdefs.h.  */

 

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...