nixp.ru v3.0

26 мая 2017,
пятница,
06:36:12 MSK

DevOps с компанией «Флант»
Jaguar написал 30 декабря 2004 года в 04:05 (624 просмотра) Ведет себя как мужчина; открыл 17 тем в форуме, оставил 37 комментариев на сайте.

Не могу скомпилировать ни одну программу. Ниже приведен config.log. Особо меня в нем смущают следующие строки:

/usr/bin/ld: crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status

Но /usr/bin/ld существует.

*****config.log******

$ ./configure

## ——— ##

## Platform. ##

## ——— ##

hostname = localhost.localdomain

uname -m = i686

uname -r = 2.6.5-1.358

uname -s = Linux

uname -v = #1 Sat May 8 09:04:50 EDT 2004

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

/bin/arch = i686

/usr/bin/arch -k = unknown

/usr/convex/getsysinfo = unknown

hostinfo = unknown

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown

PATH: /usr/kerberos/bin

PATH: /usr/local/bin

PATH: /usr/bin

PATH: /bin

PATH: /usr/X11R6/bin

PATH: /usr/games

PATH: /home/jaguar/bin

## ———-- ##

## Core tests. ##

## ———-- ##

configure:1543: checking build system type

configure:1561: result: i686-pc-linux-gnulibc1

configure:1569: checking host system type

configure:1583: result: i686-pc-linux-gnulibc1

configure:1591: checking target system type

configure:1605: result: i686-pc-linux-gnulibc1

configure:1652: checking for a BSD-compatible install

configure:1707: result: /usr/bin/install -c

configure:1722: checking for -p flag to install

configure:1735: result: yes

configure:1746: checking whether build environment is sane

configure:1789: result: yes

configure:1833: checking for gawk

configure:1849: found /usr/bin/gawk

configure:1859: result: gawk

configure:1869: checking whether make sets $(MAKE)

configure:1889: result: yes

configure:2102: checking for style of include used by make

configure:2130: result: GNU

configure:2277: checking for gcc

configure:2293: found /usr/bin/gcc

configure:2303: result: gcc

configure:2547: checking for C compiler version

configure:2550: gcc --version &5

gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

Copyright (C) 2003 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2553: $? = 0

configure:2555: gcc -v &5

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --disable-libunwind-exceptions --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux

Thread model: posix

gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

configure:2558: $? = 0

configure:2560: gcc -V &5

gcc: `-V' option must have argument

configure:2563: $? = 1

configure:2586: checking for C compiler default output file name

configure:2589: gcc conftest.c >&5

/usr/bin/ld: crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status

configure:2592: $? = 1

configure: failed program was:

| /* confdefs.h. */

|

| #define PACKAGE_NAME «»

| #define PACKAGE_TARNAME «»

| #define PACKAGE_VERSION «»

| #define PACKAGE_STRING «»

| #define PACKAGE_BUGREPORT «»

| #define PACKAGE «lipstik»

| #define VERSION «0.1»

| /* end confdefs.h. */

|

| int

| main ()

| {

|

| ;

| return 0;

| }

configure:2631: error: C compiler cannot create executables

Genie
/usr/bin/ld: crt1.o: No such file: No such file or directory



$ locate crt1.o
/usr/lib/crt1.o
/usr/lib/gcrt1.o
/usr/lib/Mcrt1.o
$ dpkg -S /usr/lib/crt1.o
libc6-dev: /usr/lib/crt1.o

вывод: не установлен пакет.

либо нарушена его целостность.

восстановаить/поставить.