Falha de segmentação: 11 encontro durante a instalação de um programa

0

Eu estava instalando um pacote de API em um Mac OSX e executando o comando

./configure --enable-matlab

Há uma mensagem de erro exibida

checking for prefix by checking for gmt... /Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt
checking build system type... x86_64-apple-darwin17.5.0
checking host system type... x86_64-apple-darwin17.5.0
checking target system type... x86_64-apple-darwin17.5.0
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in '/Users/testuser/Documents/GMTDev/gmt-mex':
configure: error: C compiler cannot create executables
See 'config.log' for more details

Aqui está o 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 gmt-mex configure 6, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --enable-matlab

## --------- ##
## Platform. ##
## --------- ##

hostname = dhcp-168-105-230-142.wireless.manoa.hawaii.edu
uname -m = x86_64
uname -r = 17.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 304 tasks, 1194 threads, 4 processors
Load average: 2.51, Mach factor: 1.50
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Applications/GMT-5.4.3.app/Contents/Resources/bin
PATH: /Users/testuser/anaconda3/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2306: checking for gmt
configure:2324: found /Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt
configure:2336: result: /Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt
configure:2398: checking build system type
configure:2412: result: x86_64-apple-darwin17.5.0
configure:2432: checking host system type
configure:2445: result: x86_64-apple-darwin17.5.0
configure:2471: checking target system type
configure:2484: result: x86_64-apple-darwin17.5.0
configure:2565: checking for gcc
configure:2581: found /usr/local/bin/gcc
configure:2592: result: gcc
configure:2821: checking for C compiler version
configure:2830: gcc --version >&5
./configure: line 2832:  4197 Segmentation fault: 11  $CC --version 1>&5
configure:2841: $? = 139
configure:2830: gcc -v >&5
./configure: line 2832:  4202 Segmentation fault: 11  $CC -v 1>&5
configure:2841: $? = 139
configure:2830: gcc -V >&5
./configure: line 2832:  4207 Segmentation fault: 11  $CC -V 1>&5
configure:2841: $? = 139
configure:2830: gcc -qversion >&5
./configure: line 2832:  4212 Segmentation fault: 11  $CC -qversion 1>&5
configure:2841: $? = 139
configure:2861: checking whether the C compiler works
configure:2883: gcc    conftest.c  >&5
./configure: line 2885:  4222 Segmentation fault: 11  $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:2887: $? = 139
configure:2925: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gmt-mex"
| #define PACKAGE_TARNAME "gmt-mex"
| #define PACKAGE_VERSION "6"
| #define PACKAGE_STRING "gmt-mex 6"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2930: error: in '/Users/testuser/Documents/GMTDev/gmt-mex':
configure:2932: error: C compiler cannot create executables
See 'config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin17.5.0
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_GMT_INC_set=
ac_cv_env_GMT_INC_value=
ac_cv_env_GMT_LIB_set=
ac_cv_env_GMT_LIB_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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=x86_64-apple-darwin17.5.0
ac_cv_path_ac_prefix_program=/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=x86_64-apple-darwin17.5.0

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AS=''
AWK=''
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
CSH=''
DEFS=''
DEP_LIBS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GMT_BIN=''
GMT_CONF=''
GMT_INC=''
GMT_LIB=''
GMT_MINOR=''
GMT_in_path=''
GREP=''
GS_EXE=''
GS_PATH=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS=''
LD_OPT=''
LIBEXT=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MEX_BLD=''
MEX_EXT=''
MEX_INC=''
MEX_LIB=''
MEX_MDIR=''
MEX_XDIR=''
OBJEXT=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='gmt-mex'
PACKAGE_STRING='gmt-mex 6'
PACKAGE_TARNAME='gmt-mex'
PACKAGE_URL=''
PACKAGE_VERSION='6'
PAGER=''
PATH_SEPARATOR=':'
RANLIB=''
SHELL='/bin/sh'
SL=''
SL_VERSION=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
ac_prefix_program='/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin17.5.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin17.5.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin17.5.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin17.5.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Applications/GMT-5.4.3.app/Contents/Resources'
program_transform_name='s,x,x,'
psdir='${docdir}'
rootdir=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin17.5.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin17.5.0'
target_vendor='apple'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "gmt-mex"
#define PACKAGE_TARNAME "gmt-mex"
#define PACKAGE_VERSION "6"
#define PACKAGE_STRING "gmt-mex 6"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""

configure: exit 77

Estas poucas linhas são o que eu acho que o problema

configure:2830: gcc --version >&5
./configure: line 2832:  4197 Segmentation fault: 11  $CC --version 1>&5
configure:2841: $? = 139
configure:2830: gcc -v >&5
./configure: line 2832:  4202 Segmentation fault: 11  $CC -v 1>&5
configure:2841: $? = 139
configure:2830: gcc -V >&5
./configure: line 2832:  4207 Segmentation fault: 11  $CC -V 1>&5
configure:2841: $? = 139
configure:2830: gcc -qversion >&5
./configure: line 2832:  4212 Segmentation fault: 11  $CC -qversion 1>&5
configure:2841: $? = 139
configure:2861: checking whether the C compiler works
configure:2883: gcc    conftest.c  >&5
./configure: line 2885:  4222 Segmentation fault: 11  $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:2887: $? = 139
configure:2925: result: no
configure: failed program was:
| /* confdefs.h */
    
por Boris Sukpholtham 26.05.2018 / 22:13

0 respostas