gcc não compila! [RESOLVIDO]

1. gcc não compila! [RESOLVIDO]

Fábio Lopes
fabiojlbc1982

(usa Void Linux)

Enviado em 05/11/2016 - 12:17h

olá pessoal, bom final de semana, eu nunca usei alguma distro que fosse bem baseada em compilação tipo gentoo, slackware e outras, Estava numa VM dando uma volta no Solus e me deparei com minha primeira aventura na área da compilação, quando dou ./configure no arquivo ele me retorna que "compile C works... no", já pesquisei mas não achei solução, estou aberto a ensinamentos!


  


2. Re: gcc não compila! [RESOLVIDO]

Fábio Lopes
fabiojlbc1982

(usa Void Linux)

Enviado em 05/11/2016 - 12:18h

isso me apareceu no config.log do arquivo: fabio@solus ~/Downloads/transmageddon-1.5 $ cat 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 transmageddon configure 1.5, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

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

hostname = solus
uname -m = x86_64
uname -r = 4.8.6
uname -s = Linux
uname -v = #1 SMP Tue Nov 1 19:03:32 UTC 2016

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

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin


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

configure:2233: checking for a BSD-compatible install
configure:2301: result: /usr/bin/install -c
configure:2312: checking whether build environment is sane
configure:2367: result: yes
configure:2518: checking for a thread-safe mkdir -p
configure:2557: result: /bin/mkdir -p
configure:2564: checking for gawk
configure:2580: found /usr/bin/gawk
configure:2591: result: gawk
configure:2602: checking whether make sets $(MAKE)
configure:2624: result: yes
configure:2653: checking whether make supports nested variables
configure:2670: result: yes
configure:2797: checking whether to enable maintainer-specific portions of Makefiles
configure:2806: result: yes
configure:2855: Storing library files in /usr/local/lib
configure:2886: Storing data files in /usr/local/share
configure:2917: Storing configuration files in /usr/local/etc
configure:2948: Using localstatedir /usr/local/var
configure:2956: Looking for Python version >= 2.5
configure:2974: checking for python
configure:2992: found /usr/bin/python
configure:3004: result: /usr/bin/python
configure:3016: checking "/usr/bin/python":
configure:3018: result: okay
configure:3034: checking local Python configuration
configure:3071: result: looks good
configure:3097: checking for style of include used by make
configure:3125: result: GNU
configure:3196: checking for gcc
configure:3212: found /usr/bin/gcc
configure:3223: result: gcc
configure:3452: checking for C compiler version
configure:3461: gcc --version >&5
gcc (Solus) 6.2.0
Copyright (C) 2016 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:3472: $? = 0
configure:3461: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-solus-linux/6.2.0/lto-wrapper
Target: x86_64-solus-linux
Configured with: ../gcc-6.2.0/configure --prefix=/usr --with-pkgversion=Solus --libdir=/usr/lib64 --libexecdir=/usr/lib64 --with-system-zlib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-plugin --disable-gold --enable-ld=default --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --enable-lto --with-bugurl=https://bugs.solus-project.com --with-arch_32=i686 --enable-linker-build-id --build=x86_64-solus-linux --target=x86_64-solus-linux --enable-languages=c,c++,fortran
Thread model: posix
gcc version 6.2.0 (Solus)
configure:3472: $? = 0
configure:3461: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3472: $? = 1
configure:3461: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3472: $? = 1
configure:3492: checking whether the C compiler works
configure:3514: gcc -mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT -Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now conftest.c >&5
/usr/bin/ld: cannot find /usr/lib64/libc_nonshared.a
collect2: error: ld returned 1 exit status
configure:3518: $? = 1
configure:3556: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "transmageddon"
| #define PACKAGE_TARNAME "transmageddon"
| #define PACKAGE_VERSION "1.5"
| #define PACKAGE_STRING "transmageddon 1.5"
| #define PACKAGE_BUGREPORT "https://bugzilla.gnome.org/enter_bug.cgi?product=transmageddon"
| #define PACKAGE_URL "http://www.linuxrising.org/"
| #define PACKAGE "transmageddon"
| #define VERSION "1.5"
| #define GETTEXT_PACKAGE "transmageddon"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3561: error: in `/home/fabio/Downloads/transmageddon-1.5':
configure:3563: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
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,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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_path_PYTHON=/usr/bin/python
ac_cv_path_install='/usr/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=yes
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /home/fabio/Downloads/transmageddon-1.5/missing aclocal-1.14'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /home/fabio/Downloads/transmageddon-1.5/missing autoconf'
AUTOHEADER='${SHELL} /home/fabio/Downloads/transmageddon-1.5/missing autoheader'
AUTOMAKE='${SHELL} /home/fabio/Downloads/transmageddon-1.5/missing automake-1.14'
AWK='gawk'
CATALOGS=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
CONFIGURED_PYTHONPATH=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DATADIR='/usr/local/share'
DATADIRNAME=''
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GETTEXT_PACKAGE='transmageddon'
GMOFILES=''
GMSGFMT=''
GREP=''
GST_REQ='1.2.0'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT=''
INTLLIBS=''
LDFLAGS='-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now'
LIBDIR='/usr/local/lib'
LIBOBJS=''
LIBS=''
LOCALSTATEDIR='/usr/local/var'
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/fabio/Downloads/transmageddon-1.5/missing makeinfo'
MKDIR_P='/bin/mkdir -p'
MKINSTALLDIRS=''
MSGFMT=''
MSGFMT_OPTS=''
OBJEXT=''
PACKAGE='transmageddon'
PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=transmageddon'
PACKAGE_NAME='transmageddon'
PACKAGE_STRING='transmageddon 1.5'
PACKAGE_TARNAME='transmageddon'
PACKAGE_URL='http://www.linuxrising.org/'
PACKAGE_VERSION='1.5'
PATH_SEPARATOR=':'
POFILES=''
POSUB=''
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
PYTHON='/usr/bin/python'
PYTHON_EXEC_PREFIX='${exec_prefix}'
PYTHON_PLATFORM='linux2'
PYTHON_PREFIX='${prefix}'
PYTHON_VERSION='2.7'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SYSCONFDIR='/usr/local/etc'
USE_NLS=''
VERSION='1.5'
XGETTEXT=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/fabio/Downloads/transmageddon-1.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir='${pyexecdir}/transmageddon'
pkgpythondir='${pythondir}/transmageddon'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir='${exec_prefix}/lib/python2.7/site-packages'
pythondir='${prefix}/lib/python2.7/site-packages'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

AUTHORS='./AUTHORS'

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

/* confdefs.h */
#define PACKAGE_NAME "transmageddon"
#define PACKAGE_TARNAME "transmageddon"
#define PACKAGE_VERSION "1.5"
#define PACKAGE_STRING "transmageddon 1.5"
#define PACKAGE_BUGREPORT "https://bugzilla.gnome.org/enter_bug.cgi?product=transmageddon"
#define PACKAGE_URL "http://www.linuxrising.org/"
#define PACKAGE "transmageddon"
#define VERSION "1.5"
#define GETTEXT_PACKAGE "transmageddon"

configure: exit 77



3. Re: gcc não compila! [RESOLVIDO]

Paulo
paulo1205

(usa Ubuntu)

Enviado em 06/11/2016 - 07:15h

A mensagem de erro é clara: o linker não encontrou o arquivo libc_nonshared.a.

Que mal lhe pergunte, o que é Solus?


4. Re: gcc não compila! [RESOLVIDO]

Fábio Lopes
fabiojlbc1982

(usa Void Linux)

Enviado em 06/11/2016 - 08:06h

bom dia amigo, Solus os é uma nova distro que não é baseado em nenhuma outra, ela é independente e possui o budgie-desktop como ambiente gráfico padrão. quero lhe agradecer pela boa vontade, e valeu mesmo, mas ainda agorinha eu havia encontrado o forum da distro e descobri o que a grosso modo faltou, eu instalei um pacote chamado system-devel. Valeu mesmo, vou dar o tópico como resolvido!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts