Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error installing Gentoo
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
monkeynoodles
n00b
n00b


Joined: 27 Apr 2024
Posts: 3

PostPosted: Sat Apr 27, 2024 5:53 am    Post subject: Error installing Gentoo Reply with quote

Hi Gentoo Forums,

I am trying to install Gentoo from an Ubuntu liveUSB but keep getting this error while updating the world set in portage:

ERROR: sys-libs/ncurses-9.4_p20240414::Gentoo failed (configure phase)

I have pasted below the error log and output from this code:
Code:
emerge --info '=sys-libs/ncurses-6.4-p20240414::gentoo'
I am following a youtube video by MentalOutlaw and referencing the Gentoo Handbook along the way. He installs Gentoo from Linux Mint onto another hard drive on the same pc which is why I am following his tutorial. I figure the process is similar.

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

It was created by configure, which was
generated by GNU Autoconf 2.52.20231210. Invocation command line was

$ /var/tmp/portage/sys-libs/ncurses-6.4_p20240414/work/ncurses-6.4/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-lin>

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

hostname = localhost
uname -m = x86_64
uname -r = 6.2.0-26-generic
uname -s = Linux
uname -v = #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2

/usr/bin/uname -p = AMD E2-7110 APU with AMD Radeon R2 Graphics
/bin/uname -X = unknown

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

PATH = /var/tmp/portage/._portage_reinstall_.hlau19ji/bin/ebuild-helpers/xattr:/usr/lib/portage/python3.11/ebuild-helpers/xattr:/var/tmp/port>

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

configure:1175: PATH=".;."; conftest.sh
/var/tmp/portage/sys-libs/ncurses-6.4_p20240414/work/ncurses-6.4/configure: line 1176: conftest.sh: command not found
configure:1178: $? = 127
configure:1195: checking for ggrep
configure:1221: result: no
configure:1195: checking for grep
configure:1210: found /usr/bin/grep
configure:1218: result: grep
configure:1229: checking for egrep
configure:1285: result: grep -E
configure:1296: result: Configuring NCURSES 6.4 ABI 6 (Sat Apr 27 04:13:36 -00 2024)
configure:1300: checking for package version
configure:1321: result: 6.4
configure:1324: checking for package patch date
configure:1341: result: 20240414
configure:1352: testing ABI VERSION 5:0:10 ...
configure:1356: testing VERSION_MAJOR 6 ...
configure:1360: testing VERSION_MINOR 4 ...
configure:1364: testing VERSION_PATCH 20240414 ...
configure:1509: checking build system type
configure:1527: result: x86_64-pc-linux-gnu
configure:1534: checking host system type
configure:1548: result: x86_64-pc-linux-gnu
configure:1556: checking target system type
configure:1570: result: x86_64-pc-linux-gnu
configure:1602: result: Configuring for linux-gnu
configure:1627: checking for fgrep
configure:1683: result: grep -F
configure:1687: checking for prefix
configure:1699: result: /usr
configure:1839: checking for x86_64-pc-linux-gnu-gcc
configure:1862: result: x86_64-pc-linux-gnu-gcc
configure:1919: checking for C compiler version
configure:1922: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (Gentoo Hardened 13.2.1_p20240210 p14) 13.2.1 20240210
Copyright (C) 2023 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:1925: $? = 0
configure:1927: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/13/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/gcc-13-20240210/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc->
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.1 20240210 (Gentoo Hardened 13.2.1_p20240210 p14)
configure:1930: $? = 0
configure:1932: x86_64-pc-linux-gnu-gcc -V </dev/null >&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:1935: $? = 1
configure:1955: checking for C compiler default output
configure:1958: x86_64-pc-linux-gnu-gcc -march=native -02 -pipe -D_GNU_SOURCE -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -static co>
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-02'
configure:1961: $? = 1
configure: failed program was:
#line 1939 "configure"
#include "confdefs.h"

int
main (void)
{

;
return 0;
}
configure:1984: error: C compiler cannot create executables

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

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_build_alias=x86_64-pc-linux-gnu
ac_cv_c_undeclared_builtin_options='none needed'
ac_cv_env_CC_set=set
ac_cv_env_CC_value=x86_64-pc-linux-gnu-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=native -02 -pipe'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=' -D_GNU_SOURCE'
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value='x86_64-pc-linux-gnu-gcc -E'
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=native -02 -pipe'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=x86_64-pc-linux-gnu-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -static'
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_host_alias=x86_64-pc-linux-gnu
ac_cv_path_EGREP='grep -E'
ac_cv_path_FGREP='grep -F'
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_GREP=grep
ac_cv_target=x86_64-pc-linux-gnu
ac_cv_target_alias=x86_64-pc-linux-gnu
cf_cv_abi_default=6
cf_cv_abi_version=6
cf_cv_rel_version=6.4
cf_cv_system_name=linux-gnu
cf_cv_timestamp='Sat Apr 27 04:13:36 -00 2024'
gl_cv_compiler_check_decl_option=-Werror=implicit-function-declaration
gl_cv_func_getcwd_path_max=yes

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

#define PACKAGE "ncurses"
#define NCURSES_VERSION "6.4"
#define NCURSES_PATCHDATE 20240414
#define SYSTEM_NAME "linux-gnu"


configure: exit 77



The ncurses error output:

Quote:
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/23.0/hardened, gcc-13, glibc-2.39-r4, 6.2.0-26-generic x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.2.0-26-generic-x86_64-AMD_E2-7110_APU_with_AMD_Radeon_R2_Graphics-with-glibc2.39
KiB Mem: 3446308 total, 603224 free
KiB Swap: 4194300 total, 3953604 free
Timestamp of repository gentoo: Sat, 27 Apr 2024 00:45:00 +0000
Head commit of repository gentoo: 13587f35faa0ec56e94b0da0ea81f89a0ffa8f67
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.71-r6::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.2::gentoo
dev-lang/perl: 5.38.2-r2::gentoo
dev-lang/python: 3.11.8_p1::gentoo, 3.12.3::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/openrc: 0.54::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.8-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r4::gentoo
Repositories:

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

Binary Repositories:

gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_hardened

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -02 -pipe"
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"
CXXFLAGS="-march=native -02 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --load-average=1"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -02 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live collision-protect config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -02 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ https://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ https://mirrors.rit.edu/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j1 -l1"
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"
SHELL="/bin/bash"
USE="acl alsa amd amd64 bzip2 cet crypt elogind gdbm hardened iconv ipv6 libtirpc multilib ncurses openmp pam pcre pic pie readline seccomp ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Any help is really appreciated. I hope I have linked sufficient information, I am a complete Gentoo newb and my Linux experience is limited. I am trying to install onto a very low end PC so I really hope this issue can be fixed without having to wipe and start again as compiling takes a long, long time.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30946
Location: here

PostPosted: Sat Apr 27, 2024 6:02 am    Post subject: Reply with quote

Your cflags are wrong, the -02 option should be -O2 ('o' in uppercase not zero).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
monkeynoodles
n00b
n00b


Joined: 27 Apr 2024
Posts: 3

PostPosted: Sat Apr 27, 2024 6:25 am    Post subject: Reply with quote

fedeliallalinea wrote:
Your cflags are wrong, the -02 option should be -O2 ('o' in uppercase not zero).


Thank you very much. I see that line now. I edited the make.conf, updated again, and now I've just seen an error above that line saying input files are missing. I thought they were all set up ok but hopefully it was just an issue with that optimization flag. But I have a feeling I've properly messed up something else.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54295
Location: 56N 3W

PostPosted: Sat Apr 27, 2024 11:01 am    Post subject: Reply with quote

monkeynoodles,

Videos on installing Gentoo are usually useless. The usually gloss over/skip/omit key points, or things have changed, so that they are just wrong.

Read the Gentoo handbook
Read the Gentoo handbook again.

Now that you have some understanding of what you will be doing. Follow the Gentoo handbook.

I'm not suggesting that you start over.
Make friends with wgetpaste so that you can pastebin files and cammand output.
If you switch to following the handbook, we can pick op the pieces of your install.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
monkeynoodles
n00b
n00b


Joined: 27 Apr 2024
Posts: 3

PostPosted: Sun Apr 28, 2024 2:48 am    Post subject: Reply with quote

I think I will do that. Though I passed the stage that I was stuck on. It took about 12 hours to update the world set... I got up to configuring the kernel and found that I didn't install it. Following this video isn't helping me learn gentoo at all... I am going to see how I go with this installation because some sense of accomplishment would be great before installing it on a better PC. For that I will use the handbook.
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