Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
econf failed at configure when downloading gentoo source
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 12

PostPosted: Tue May 19, 2020 10:15 pm    Post subject: econf failed at configure when downloading gentoo source Reply with quote

I am trying to install gentoo on my arch laptop (on an sd card). I have done every step in the handbook up until downloading the gentoo kernel source code with no errors. However I got an error when I tried to run the command
Code:
 emerge --ask sys-kernel/gentoo-sources
in my chrooted environment.
Here is the error this command gave:
Code:

configure: error: in `/var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177-abi_x86_64.amd64':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177-abi_x86_64.amd64/config.log
 * ERROR: dev-libs/elfutils-0.177::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 1979:  Called multilib-minimal_src_configure
 *             environment, line 1315:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1548:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1245:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1243:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  412:  Called multilib-minimal_abi_src_configure
 *             environment, line 1309:  Called multilib_src_configure
 *             environment, line 1768:  Called econf '--enable-nls' '--disable-thread-safety' '--program-prefix=eu-' '--with-zlib' '--with-bzlib' '--without-lzma'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/elfutils-0.177::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/elfutils-0.177::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/elfutils-0.177/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/elfutils-0.177/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177'

>>> Failed to emerge dev-libs/elfutils-0.177, Log file:

>>>  '/var/tmp/portage/dev-libs/elfutils-0.177/temp/build.log'

 * Messages for package dev-libs/elfutils-0.177:

 * ERROR: dev-libs/elfutils-0.177::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 1979:  Called multilib-minimal_src_configure
 *             environment, line 1315:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1548:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1245:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1243:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  412:  Called multilib-minimal_abi_src_configure
 *             environment, line 1309:  Called multilib_src_configure
 *             environment, line 1768:  Called econf '--enable-nls' '--disable-thread-safety' '--program-prefix=eu-' '--with-zlib' '--with-bzlib' '--without-lzma'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/elfutils-0.177::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/elfutils-0.177::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/elfutils-0.177/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/elfutils-0.177/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177'




Here is my
Code:
 /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177-abi_x86_64.amd64/config.log
file:
Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by elfutils configure 0.177, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/elfutils-0.177 --htmldir=/usr/share/doc/elfutils-0.177/html --libdir=/usr/lib64 --enable-nls --disable-thread-safety --program-prefix=eu- --with-zlib --with-bzlib --without-lzma

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

hostname = localhost
uname -m = x86_64
uname -r = 5.6.12-arch1-1
uname -s = Linux
uname -v = #1 SMP PREEMPT Sun, 10 May 2020 10:43:42 +0000

/usr/bin/uname -p = Intel(R) Celeron(R) CPU N2840 @ 2.16GHz
/bin/uname -X     = unknown

/bin/arch              = unknown
/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/lib/portage/python3.7/ebuild-helpers/xattr
PATH: /usr/lib/portage/python3.7/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /opt/bin


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

configure:2567: checking for a BSD-compatible install
configure:2635: result: /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c
configure:2646: checking whether build environment is sane
configure:2701: result: yes
configure:2850: checking for a thread-safe mkdir -p
configure:2889: result: /bin/mkdir -p
configure:2896: checking for gawk
configure:2912: found /usr/bin/gawk
configure:2923: result: gawk
configure:2934: checking whether make sets $(MAKE)
configure:2956: result: yes
configure:2985: checking whether make supports nested variables
configure:3002: result: yes
configure:3129: checking whether to enable maintainer-specific portions of Makefiles
configure:3138: result: no
configure:3163: checking whether make supports nested variables
configure:3180: result: yes
configure:3210: checking build system type
configure:3224: result: x86_64-pc-linux-gnu
configure:3244: checking host system type
configure:3257: result: x86_64-pc-linux-gnu
configure:3330: checking for x86_64-pc-linux-gnu-gcc
configure:3346: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:3357: result: x86_64-pc-linux-gnu-gcc
configure:3626: checking for C compiler version
configure:3635: x86_64-pc-linux-gnu-gcc --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 9.3.0 p2) 9.3.0
Copyright (C) 2019 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:3646: $? = 0
configure:3635: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.3.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 9.3.0 p2' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libada --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 9.3.0 (Gentoo 9.3.0 p2)
configure:3646: $? = 0
configure:3635: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-V'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:3646: $? = 1
configure:3635: x86_64-pc-linux-gnu-gcc -qversion >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:3646: $? = 1
configure:3666: checking whether the C compiler works
configure:3688: x86_64-pc-linux-gnu-gcc -Os -march=pentium2  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
cc1: error: CPU you selected does not support x86-64 instruction set
configure:3692: $? = 1
configure:3730: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "elfutils"
| #define PACKAGE_TARNAME "elfutils"
| #define PACKAGE_VERSION "0.177"
| #define PACKAGE_STRING "elfutils 0.177"
| #define PACKAGE_BUGREPORT "https://sourceware.org/bugzilla"
| #define PACKAGE_URL "http://elfutils.org/"
| #define PACKAGE "elfutils"
| #define VERSION "0.177"
| #define DEFAULT_AR_DETERMINISTIC false
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3735: error: in `/var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177-abi_x86_64.amd64':
configure:3737: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Os -march=pentium2'
ac_cv_env_CPPFLAGS_set=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,-O1 -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=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_path_install='/usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/config/missing aclocal-1.16'
ADD_STACK_USAGE_WARNING_FALSE=''
ADD_STACK_USAGE_WARNING_TRUE=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/config/missing autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/config/missing autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/config/missing automake-1.16'
AWK='gawk'
BIARCH_FALSE=''
BIARCH_TRUE=''
BUILD_STATIC_FALSE=''
BUILD_STATIC_TRUE=''
BZ2_LIB=''
BZLIB_FALSE=''
BZLIB_TRUE=''
CC='x86_64-pc-linux-gnu-gcc'
CCDEPMODE=''
CC_BIARCH=''
CFLAGS='-Os -march=pentium2'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEBUGPRED=''
DEFS=''
DEMANGLE_FALSE=''
DEMANGLE_TRUE=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FATAL_TEXTREL_FALSE=''
FATAL_TEXTREL_TRUE=''
GCOV_FALSE=''
GCOV_TRUE=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GPROF_FALSE=''
GPROF_TRUE=''
GREP=''
HAVE_BISON=''
HAVE_BUNZIP2=''
HAVE_DUPLICATED_COND_WARNING_FALSE=''
HAVE_DUPLICATED_COND_WARNING_TRUE=''
HAVE_FLEX=''
HAVE_GAWK=''
HAVE_IMPLICIT_FALLTHROUGH_WARNING_FALSE=''
HAVE_IMPLICIT_FALLTHROUGH_WARNING_TRUE=''
HAVE_LIBASM_FALSE=''
HAVE_LIBASM_TRUE=''
HAVE_NULL_DEREFERENCE_WARNING_FALSE=''
HAVE_NULL_DEREFERENCE_WARNING_TRUE=''
HAVE_VALGRIND=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_ELFH_FALSE=''
INSTALL_ELFH_TRUE=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBEBL_SUBDIR=''
LIBLZMA=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
LZMA_FALSE=''
LZMA_TRUE=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/config/missing makeinfo'
MKDIR_P='/bin/mkdir -p'
MODVERSION=''
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NM=''
OBJEXT=''
PACKAGE='elfutils'
PACKAGE_BUGREPORT='https://sourceware.org/bugzilla'
PACKAGE_NAME='elfutils'
PACKAGE_STRING='elfutils 0.177'
PACKAGE_TARNAME='elfutils'
PACKAGE_URL='http://elfutils.org/'
PACKAGE_VERSION='0.177'
PATH_SEPARATOR=':'
RANLIB=''
READELF=''
SANE_LOGICAL_OP_WARNING_FALSE=''
SANE_LOGICAL_OP_WARNING_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STANDALONE_FALSE=''
STANDALONE_TRUE=''
STRIP=''
SYMBOL_VERSIONING_FALSE=''
SYMBOL_VERSIONING_TRUE=''
TESTS_RPATH_FALSE=''
TESTS_RPATH_TRUE=''
USE_LOCKS_FALSE=''
USE_LOCKS_TRUE='#'
USE_NLS=''
USE_VALGRIND_FALSE=''
USE_VALGRIND_TRUE=''
VERSION='0.177'
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
YACC=''
YFLAGS=''
ZLIB_FALSE=''
ZLIB_TRUE=''
ac_ct_AR=''
ac_ct_CC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
argp_LDADD=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='/usr/share/doc/elfutils-0.177'
dso_LDFLAGS=''
dvidir='${docdir}'
eu_version=''
exec_prefix='NONE'
fpic_CFLAGS=''
fpie_CFLAGS=''
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='/usr/share/doc/elfutils-0.177/html'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='${SHELL} /var/tmp/portage/dev-libs/elfutils-0.177/work/elfutils-0.177/config/install-sh'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&eu-&'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
zip_LIBS=''

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

/* confdefs.h */
#define PACKAGE_NAME "elfutils"
#define PACKAGE_TARNAME "elfutils"
#define PACKAGE_VERSION "0.177"
#define PACKAGE_STRING "elfutils 0.177"
#define PACKAGE_BUGREPORT "https://sourceware.org/bugzilla"
#define PACKAGE_URL "http://elfutils.org/"
#define PACKAGE "elfutils"
#define VERSION "0.177"
#define DEFAULT_AR_DETERMINISTIC false

configure: exit 77




Output of
Code:
 emerge --info '=dev-libs/elfutils-0.177::gentoo'
:

Code:

Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.3.0, glibc-2.30-r8, 5.6.12-arch1-1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.12-arch1-1-x86_64-Intel-R-_Celeron-R-_CPU_N2840_@_2.16GHz-with-gentoo-2.6
KiB Mem:     1925248 total,    427136 free
KiB Swap:    2097148 total,   1932268 free
Timestamp of repository gentoo: Tue, 19 May 2020 21:00:01 +0000
Head commit of repository gentoo: c4cc8a24ba53b50cb9d71646855662b66ef8253b
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=pentium2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=pentium2"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-Os -march=pentium2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Os -march=pentium2"
GENTOO_MIRRORS="gentoo.cs.utah.edu/gentoo/ https://mirror.sjc02.svwh.net/gentoo/ http://mirrors.evowise.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl alsa amd64 berkdb bzip2 cdr cli crypt dri dvd fortran gdbm gtk iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Why are these errors occuring? How can I fix them?
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
alamahant
Apprentice
Apprentice


Joined: 23 Mar 2019
Posts: 262

PostPosted: Tue May 19, 2020 10:51 pm    Post subject: Reply with quote

HI
In your make.conf you have
Code:

CFLAGS="-Os -march=pentium2"

If you maybe tried with
Code:

CFLAGS="-march=pentium2 -O2 -pipe"

Maybe it will work..........

According to this
https://wiki.gentoo.org/wiki/Safe_CFLAGS#Intel

for Pentium you need
Code:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=ivybridge -mno-avx -mno-aes -mno-rdrnd -O2 -pipe"
CXXFLAGS="${CFLAGS}"


Please have a look yourself..........
:)
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 12

PostPosted: Tue May 19, 2020 11:11 pm    Post subject: Reply with quote

Thanks, I changed -0s to -O2 and added the -pipe flag, and it installed properly, but why does it work? In gentoo shouldn't I be able to change the compiler flags? I want to use -Os to reduce the cache use, and I am trying not to use -pipe because apparently it uses a lot of memory.
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 12

PostPosted: Tue May 19, 2020 11:25 pm    Post subject: Reply with quote

My CPU is the Intel Celeron n3060, and I think it is supposed to use -march=pentium2, at least according to my research.
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Wed May 20, 2020 1:44 am    Post subject: Reply with quote

You can change the compiler flags to whatever you like, providing that they are compatible with your system. According to your config.log, you told the compiler to build code for a 32-bit CPU, but you are using a 64-bit CPU. That is not compatible. You must use a -march that is compatible with your CHOST. What research led you to think that -march=pentium2 is appropriate?

Using -pipe trades memory for I/O at build time. It should have no effect on the generated code.
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 12

PostPosted: Wed May 20, 2020 6:16 am    Post subject: Reply with quote

My information was just from random googling, but when I looked again I could not find which family my cpu was, so I just used -march=native. Does this have a different impact than -march=<architechture-family>?
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
freke
Guru
Guru


Joined: 23 Jan 2003
Posts: 588
Location: Somewhere in Denmark

PostPosted: Wed May 20, 2020 7:36 pm    Post subject: Reply with quote

I've always used -march=native when not using distcc to compile on multiple machines.

I believe gcc is better to determine what flags are supported than I am ;)

You can try someting along this
Code:
gcc -march=native -v -E - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'
to determine what -march=native translates into for you.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Thu May 21, 2020 2:17 am    Post subject: Reply with quote

-march=native is intended to automatically alias whatever -march would be most appropriate for the CPU on which the compiler is running. This will enable all CPU features that gcc knows you have and knows how to use. If the CPU on which you are building is not the CPU on which the code will eventually run, using -march=native may be the wrong choice, because it could enable features that the build CPU understands, but the destination CPU does not understand.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum