Новости
Документация
Download
Webboard
Поиск
FAQ/ЧаВо
Обратная связь




MySQL.RU - Webboard



Вернуться
configure: error: C compiler cannot create... (Ivan) 25/11/2005 - 15:22:51
      Re: configure: error: C compiler cannot create... (Dinky) 25/11/2005 - 19:30:51
      Re: configure: error: C compiler cannot create... (Ivan) 26/11/2005 - 13:16:52
      Re: configure: error: C compiler cannot create... (Ivan) 26/11/2005 - 14:12:24

> Original message text:
> From: Ivan - 25/11/2005 - 15:22:51
> Subject:configure: error: C compiler cannot create...
> -----------------
> Требуется скомпилить Mysql 4.1.15 (Solaris 10, x86, Sun Compiler)
>
> Пишу в шеле
> CC="cc" CXX="CC" CFLAGS=" -xparallel -fast -xtarget=opteron -xarch=amd64" \
> > LDFLAGS=" -xparallel -fast -xarch=amd64" \
> > ./configure --prefix=/web/mysql \
> > --localstatedir=/web/mysql/data \
> > --with-unix-socket-path=/web/mysql/tmp/mysql.sock \
> > --with-mysqld-user=mysql --with-extra-charsets=complex --enable-assembler \
> > --with-charsets=cp1251 --with-berkeley-db=/usr/local/BerkeleyDB.4.2 \
> > --with-berkeley-db-includes=/usr/local/BerkeleyDB.4.2/inclide \
> > --with-berkeley-db-libs=/usr/local/BerkeleyDB.4.2/lib \
> > --with-openssl=/usr/local/ssl --with-libwrap
>
> Конфигуратор выводит
> checking for C compiler default output file name... configure: error: C compiler cannot create executables
>
> Как преодолеть эту ошибку? Если компилить gcc, то все получается, а вот с сановским не проходит. Может чего недоставил из библиотек?
>
> Вот выдержки из лога
> configure:2749: checking for C compiler version
> configure:2752: cc --version </dev/null >&5
> cc: Warning: option -- passed to ld
> usage: cc [ options] files. Use 'cc -flags' for details
> configure:2755: $? = 1
> configure:2757: cc -v </dev/null >&5
> usage: cc [ options] files. Use 'cc -flags' for details
> configure:2760: $? = 1
> configure:2762: cc -V </dev/null >&5
> cc: Sun C 5.7 2005/01/07
> usage: cc [ options] files. Use 'cc -flags' for details
> configure:2765: $? = 1
> configure:2788: checking for C compiler default output file name
> configure:2791: cc -xparallel -fast -xtarget=opteron -xarch=amd64 -xparallel -fast -xarch=amd64 conftest.c >&5
> ld: fatal: file /usr/ucblib/libucb.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libsocket.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libnsl.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libelf.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libaio.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libmtsk.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libthread.so: wrong ELF class: ELFCLASS32
> ld: fatal: file /usr/lib/libc.so: wrong ELF class: ELFCLASS32
> ld: fatal: File processing errors. No output written to a.out
> configure:2794: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
>
> Спасибо.
>
>


From: Dinky - 25/11/2005 - 19:30:51
Subject:configure: error: C compiler cannot create...
-----------------
> Solaris 10, x86, Sun Compiler
> -xtarget=opteron -xarch=amd64
так интел или амд? :)
Если таки amd64 то там есть проблема с бибками, вот например пишут:
==
When you install Sun Studio, /usr/ucb/cc becomes an emulator of the UCB C compiler. /usr/ucb/cc invokes "acc", which is obsolete. The man page for acc says it should not be used.
I think acc accidently, and not by design, accepted the -xarch=amd64 option, but it certainly doesn't know how to build an amd64 program. By definition, /usr/ucb/cc links to the ucb runtime libraries, which have no amd64 versions.
Since all the UCB programs and libraries are basically obsolete, and conflict with standard Unix and Solaris, you should try removing /usr/ucb from your path. If you need to have /usr/ucb on your path, move it near the end, after the Sun Studio bin directory.
==
вобщем, google it! ;)

--
Dmitry


[Это сообщение - спам!]

Последние сообщения из форума

Уважаемые посетители форума MySQL.RU!
Убедительная просьба, прежде чем задавать свой вопрос в этом форуме, обратите внимание на разделы:
- ответы на наиболее часто задаваемые вопросы - FAQ
- раздел документация
- раздел поиск по сообщениям форума и документации
Также, старайтесь наиболее подробно указывать свою ситуацию (версию операционной системы, версию MySQL, версию программного обеспечения, по которому возникает вопрос, текст возникающих ошибок, и др.)
Помните, чем конкретнее Вы опишете ситуацию, тем больше шансов получить реальную помощь.
 Имя:
 E-mail:
 Тема:
 Текст:
Код подтверждения отправки: Code
25309



РЕКЛАМА НА САЙТЕ
  Создание сайтов | |