- Печать
Страницы: [1] Вниз
Тема: Ошибка при выполнении ./configure (Прочитано 4738 раз)
0 Пользователей и 1 Гость просматривают эту тему.
Shlepov
При выполнении ./configure выходит ошибка «configure: error: C compiler cannot create executables». Переустановил libc6-dev и все его зависимости. Система 14.04
Вылоп ./configure
config.log
Что еще можно попробовать?
ТС не появлялся на Форуме более полугода по состоянию на 09/09/2019 (последняя явка: 11/02/2019). Модератором раздела принято решение закрыть тему.
—zg_nico
« Последнее редактирование: 09 Сентября 2019, 18:26:04 от zg_nico »
hesoyamatogun
А о чем это вы сейчас, точнее что это за программа, что делает, что конфигурирует, с какой целью вы её запускаете и что xотите получить?
Shlepov
hesoyamatogun
Может ты не заметил, у тебя error’ы не только в конце но и в середине парочка, которые объясняют причину а не только извещают что «error: C compiler cannot create executables»
victor00000
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
что опять версии пропустили gcc пакеты в ubuntu?
a@a:~$
a@a:~$ cat 3.c
#include <stdio.h>
int main()
{
char *str; // [] = "hello";
printf ((const char*)str);
}
a@a:~$
a@a:~$
a@a:~$
a@a:~$ LANG=C gcc-4.9 -fstack-protector-strong -c 3.c || echo "Ошибка"
a@a:~$
a@a:~$ LANG=C gcc-4.8 -fstack-protector-strong -c 3.c || echo "Ошибка"
gcc-4.8: error: unrecognized command line option '-fstack-protector-strong'
Ошибка
a@a:~$
в шоке.
Shlepov
Нет, не заметил. Спасибо!
Насколько я понял требуется версия gcc >5?
configure:5032: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
Я обновил gcc до 5.4.1 20160904, и этот момент прошел успешно.
Теперь борюсь со следующей ошибкой:
configure: error: Basic auth helper getpwnam ... found but cannot be built
victor00000
gcc --version
Пользователь добавил сообщение 20 Июля 2017, 17:49:59:
Я обновил gcc до 5.4.1 20160904, и этот момент прошел успешно.
не а, плохо Ubuntu от сборки для пакеты gcc.
Пользователь добавил сообщение 21 Июля 2017, 02:51:08:
14.04
sudo apt-get install gccgo-4.9 g++-4.8
sudo rm -f /usr/local/bin/{gcc,g++}
sudo ln -s /usr/bin/gcc-4.9 /usr/local/bin/gcc
sudo ln -s /usr/bin/g++-4.8 /usr/local/bin/g++
exit
16.04
sudo apt-get install gccgo-6 g++-5
sudo rm -f /usr/local/bin/{gcc,g++}
sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
sudo ln -s /usr/bin/g++-5 /usr/local/bin/g++
exit
« Последнее редактирование: 21 Июля 2017, 02:51:08 от victor00000 »
Shlepov
shlepov@it:~$ gcc --version
gcc (Ubuntu 5.4.1-2ubuntu1~14.04) 5.4.1 20160904
Copyright (C) 2015 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.
обновлял по этой инструкции.
Не пойму что за ошибка вылетает:
getpwnam это вроде обращение к файлу с паролями. На кой вообще свиду пароли? Я что-то запутался.
« Последнее редактирование: 21 Июля 2017, 09:06:19 от Shlepov »
victor00000
смотри мою посту «16.04» и команды.
- Печать
Страницы: [1] Вверх
Модератор: Модераторы разделов
-
Pentium02
- Сообщения: 136
- ОС: Debian lenny
- Контактная информация:
Решено: C compiler cannot create executables
checking for C compiler default output file name… configure: error: C compiler cannot create executables
Ось Ubuntu 7.04
Вот такая ошибка вылазит при попытке что либо сконфигурировать, например apache
Код:
root@pentium02-desktop:/usr/src/httpd-2.2.4# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version:
checking for chosen layout... apr
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.
configure failed for srclib/apr
- Вложения
-
- config.log
- (7.53 КБ) 80 скачиваний
Hear this voice from deep inside
It’s a call of your heart
Close your eyes and yo will find
Passage out of the dark
-
Pentium02
- Сообщения: 136
- ОС: Debian lenny
- Контактная информация:
Re: Решено: C compiler cannot create executables
Сообщение
Pentium02 » 03.06.2007 01:54
На си я не пишу, и хелло ворлда не могу написать, но всё что я пробовал компилить, не компилилось вобще нечего. В fstab к разделу noexec не написано
То что я это всё делаю по ssh под рутом роли не играет?
Hear this voice from deep inside
It’s a call of your heart
Close your eyes and yo will find
Passage out of the dark
-
Uncle_Theodore
- Сообщения: 3339
- ОС: Slackware 12.2, ArchLinux 64
Re: Решено: C compiler cannot create executables
Сообщение
Uncle_Theodore » 03.06.2007 02:06
Pentium02 писал(а): ↑
03.06.2007 01:54
На си я не пишу, и хелло ворлда не могу написать, но всё что я пробовал компилить, не компилилось вобще нечего. В fstab к разделу noexec не написано
Прогони вот эти команды
Код: Выделить всё
echo "#include<stdio.h>" > proba.c
echo "int main() {printf("Hello Worldn");}" >> proba.c
gcc proba.c
./a.out
Просто скопируй с экрана. Какие результаты?
То что я это всё делаю по ssh под рутом роли не играет?
Пока не знаю, может, и играет…
-
Pentium02
- Сообщения: 136
- ОС: Debian lenny
- Контактная информация:
Re: Решено: C compiler cannot create executables
Сообщение
Pentium02 » 03.06.2007 02:10
Код: Выделить всё
root@pentium02-desktop:/# echo "#include<stdio.h>" > proba.c
root@pentium02-desktop:/# echo "int main() {printf("Hello Worldn");}" >> proba.c
root@pentium02-desktop:/# gcc proba.c
proba.c:1:19: error: stdio.h: No such file or directory
proba.c: В функции ‘main’
proba.c:2: предупреждение: incompatible implicit declaration of built-in function ‘printf’
root@pentium02-desktop:/# ./a.out
-bash: ./a.out: No such file or directory
root@pentium02-desktop:/#
Hear this voice from deep inside
It’s a call of your heart
Close your eyes and yo will find
Passage out of the dark
-
Minton
- Сообщения: 1588
- Статус: openSUSE Localization Team
- ОС: openSUSE Tumbleweed x86-64
Re: Решено: C compiler cannot create executables
Сообщение
Minton » 03.06.2007 02:27
Сборка исходников под Убунтой — это весьма забавный процесс Поставь пакет automake и все его зависимости как минимум. Может быть, ещё что-то по шаблону *make* и *gcc* придётся поставить, но это уже потом посмотреть надо…
Having some issues using the GCC compiler? The problem may show up under different circumstances, such as :
– Invoking the GCC compiler trying to compile an application manually using “sudo ./configure”. In such case, an output similar as below will be shown :
checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/path/to/some/source/folder‘: configure: error: C compiler cannot create executables |
– Trying to upgrade outdated packages after updating MacPorts (which invoke GCC as well) using “sudo port upgrade outdated”. In such case, an output similar as below will be shown :
[...] Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option Warning: No port libedit found in the index. Warning: No port libffi found in the index. Warning: No port xar found in the index. Warning: No port libcxx found in the index. Warning: No port perl5 found in the index. Warning: No port llvm_select found in the index. —-> Computing dependencies for some—package—0.0 Error: Problem while installing some—package—0.0 Error: Follow https://guide.macports.org/#project.tickets to report a bug. |
In that case, that issue happened after Xcode update (which also update the Xcode Command Line Tools that provide GCC). Each time Xcode is updated, licence agreement for GCC must be accepted before it can be used.
If the similar condition apply to your case, it is most likely the issue. You can easily find out by issuing the following command :
If this issue match your case, the following output will be returned :
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.
In order to read and accept the license, run the following command as suggested :
Just type “accept” whenever you are done reading the license.
Once done, you may use the “gcc -v” command again to see if the GCC compiler is now usable, if successful, a similar output as below will now be shown :
Configured with: —prefix=/Applications/Xcode.app/Contents/Developer/usr —with—gxx—include—dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.0 (clang—1100.0.33.16) Target: x86_64—apple—darwin19.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin |
Here’s the config,log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Tux Of Math Command configure 1.7.2, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --prefix=/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = uknow4kids
uname -m = i686
uname -r = 2.6.32-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Mon Jan 25 20:06:48 UTC 2010
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/bin/perlbin/site
PATH: /usr/bin/perlbin/vendor
PATH: /usr/bin/perlbin/core
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1951: checking build system type
configure:1969: result: i686-pc-linux-gnu
configure:1991: checking host system type
configure:2006: result: i686-pc-linux-gnu
configure:2034: checking build system type
configure:2052: result: i686-pc-linux-gnu
configure:2074: checking target system type
configure:2089: result: i686-pc-linux-gnu
configure:2134: checking for a BSD-compatible install
configure:2202: result: /bin/install -c
configure:2213: checking whether build environment is sane
configure:2256: result: yes
configure:2281: checking for a thread-safe mkdir -p
configure:2320: result: /bin/mkdir -p
configure:2333: checking for gawk
configure:2349: found /bin/gawk
configure:2360: result: gawk
configure:2371: checking whether make sets $(MAKE)
configure:2397: result: no
configure:2604: checking for style of include used by make
configure:2632: result: none
configure:2702: checking for gcc
configure:2718: found /usr/bin/gcc
configure:2729: result: gcc
configure:2961: checking for C compiler version
configure:2969: gcc --version >&5
gcc (GCC) 4.4.3
Copyright (C) 2010 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:2973: $? = 0
configure:2980: gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.4.3 (GCC)
configure:2984: $? = 0
configure:2991: gcc -V >&5
gcc: '-V' option must have argument
configure:2995: $? = 1
configure:3018: checking for C compiler default output file name
configure:3040: gcc -march=i686 -mtune=generic -O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5
gcc: error trying to exec '/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/cc1': execv: Exec format error
configure:3044: $? = 1
configure:3082: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Tux Of Math Command"
| #define PACKAGE_TARNAME "tuxmath"
| #define PACKAGE_VERSION "1.7.2"
| #define PACKAGE_STRING "Tux Of Math Command 1.7.2"
| #define PACKAGE_BUGREPORT "tuxmath-devel@lists.sourceforge.net"
| #define PACKAGE "tuxmath"
| #define VERSION "1.7.2"
| #define PROGRAM_NAME "tuxmath"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3088: error: in `/home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2':
configure:3091: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=i686 -mtune=generic -O2 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,--hash-style=gnu -Wl,--as-needed'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=no
ac_cv_target=i686-pc-linux-gnu
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/missing --run aclocal-1.10'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/missing --run tar'
AUTOCONF='${SHELL} /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/missing --run autoconf'
AUTOHEADER='${SHELL} /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/missing --run autoheader'
AUTOMAKE='${SHELL} /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/missing --run automake-1.10'
AWK='gawk'
BUILD_MINGW32_FALSE=''
BUILD_MINGW32_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=i686 -mtune=generic -O2 -pipe'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LDFLAGS='-Wl,--hash-style=gnu -Wl,--as-needed'
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NAME_VERSION='tuxmath-1.7.2'
NSIS=''
NSI_BUILD_FALSE=''
NSI_BUILD_TRUE=''
NSI_DLL_DIR=''
NSI_INSTALL_DIR=''
OBJEXT=''
PACKAGE='tuxmath'
PACKAGE_BUGREPORT='tuxmath-devel@lists.sourceforge.net'
PACKAGE_NAME='Tux Of Math Command'
PACKAGE_STRING='Tux Of Math Command 1.7.2'
PACKAGE_TARNAME='tuxmath'
PACKAGE_VERSION='1.7.2'
PATH_SEPARATOR=':'
POSUB=''
POW_LIB=''
RANLIB=''
SDL_CFLAGS=''
SDL_CONFIG=''
SDL_LIBS=''
SET_MAKE='MAKE=make'
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='1.7.2'
WINDRES=''
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='#'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/learner/builds/tuxmath/src/tuxmath_w_fonts-1.7.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "Tux Of Math Command"
#define PACKAGE_TARNAME "tuxmath"
#define PACKAGE_VERSION "1.7.2"
#define PACKAGE_STRING "Tux Of Math Command 1.7.2"
#define PACKAGE_BUGREPORT "tuxmath-devel@lists.sourceforge.net"
#define PACKAGE "tuxmath"
#define VERSION "1.7.2"
#define PROGRAM_NAME "tuxmath"
configure: exit 77
And here’s makepkg.conf:
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
'rsync::/usr/bin/rsync -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="i686"
CHOST="i686-pc-linux-gnu"
#-- Exclusive: will only run on i686
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
# A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#########################################################################
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
# A negated option will do the opposite of the comments below.
#
#-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#
OPTIONS=(strip docs libtool emptydirs zipman purge)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
# doing.
#
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:
Thanks for your help!
GCC doesn’t necessarily come with g++. Does which g++ show anything? If not, try: sudo apt-get install g++
Dave
From: thw1021 [mailto:notifications@github.com]
Sent: Monday, July 22, 2019 8:38 AM
To: su2code/SU2 <SU2@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [su2code/SU2] C++ compiler cannot create executables (#738)
Dear developers,
I am trying to install SU2 in docker ubuntu 18.04 container so that I can easily share with partner. But I failed to compile the code with following errors:
(base)
root@a5502ebdff64
:/home/SU2# ./configure —prefix=/home/SU2/SU2_Install CXXFLAGS=»-O3″ —enable-mpi —with-cc=/usr/bin/mpicc —with-cxx=/usr/bin/mpicxx
checking build system type… x86_64-pc-linux-gnu
checking host system type… x86_64-pc-linux-gnu
checking target system type… x86_64-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… no
checking for mawk… mawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether make supports nested variables… (cached) yes
checking for style of include used by make… GNU
checking whether the C++ compiler works… no
configure: error: in `/home/SU2′:
configure: error: C++ compiler cannot create executables
See `config.log’ for more details
I am sure that I have installed gcc/g++ successfully. You can see
(base)
root@a5502ebdff64
:/home# gcc —version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 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.
(base)
root@a5502ebdff64
:/home# g++ -o hello hello.cc
(base)
root@a5502ebdff64
:/home# ./hello
Hello, World!
I have uploaded the config.log file. Could you give me some suggestions, please?
config.log<https://github.com/su2code/SU2/files/3418183/config.log>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#738?email_source=notifications&email_token=AADV2HBFP42OXAJCIZGTH2DQAXH4ZA5CNFSM4IFZ52EKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAVNCNA>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AADV2HFS5T4HH2MWIC4JR4TQAXH4ZANCNFSM4IFZ52EA>.