Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error says need uClibc version 0.9.30, but I have 1.0.20
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
lobbes
n00b
n00b


Joined: 18 Apr 2017
Posts: 2

PostPosted: Tue Apr 18, 2017 3:49 am    Post subject: Error says need uClibc version 0.9.30, but I have 1.0.20 Reply with quote

Hello world! So I am on my first gentoo-quest and am an ultra noob at this, so I apologize in advance for my ignorance. I only just touched a linux a couple of years ago (Debian) and fell in love with the freedom from all the crapware and lack-of-control the windows world (and apple) entail.

Still, I yearn to learn more and obtain even more control of my machines. I have heard that Gentoo is one such answer (other than, perhaps, a BSD of some sort).

Anywho, specifically to my issue:

I am trying to install a very minimal, command line only version of Gentoo on an old craptop (ASUS x54c; amd64). I'm also trying to use uClibc due to its lower-size, although this may be my undoing as it is what I'm having issues with atm.

I have been following the handbook for amd64, and am at the compile kernel stage (I'm using genkernel). However, it fails at this point for me. I'm at the point in the process where I am not even sure of what to ask, so I have come here in hopes someone can make some sense of this for me.

Here is the error I'm getting:

Code:
*coreutils/id.c:69:2: error: #error "Sorry, you need at least uClibc version 0.9.30 for id applet to build"


Longer snippet

But what is confounding me is that my emerge --info leads me to think I have uClibc 1.0.20:

Code:

Portage 2.3.3 (python 2.7.12-final-0, hardened/linux/uclibc/amd64, gcc-4.9.4, uclibc-ng-1.0.20, 4.9.16-gentoo x86_64)
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.3
KiB Mem:     3956008 total,     53844 free
KiB Swap:     524284 total,    523864 free
Timestamp of repository gentoo: Fri, 14 Apr 2017 06:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/uclibc-ng:       1.0.20::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-gentoo-linux-uclibc"
CFLAGS="-O2 -pipe"
CHOST="x86_64-gentoo-linux-uclibc"
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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="amd64 bindist cli cracklib crypt cxx dri fortran hardened iconv ipv6 mmx modules ncurses nptl offensive openmp pax_kernel pcre pic readline seccomp session sse sse2 ssl tcpd uclibc ufw unicode xattr zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="bindist mmx sse sse2" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Anyways, thank you for reading this far! Any help is appreciated.
_________________
pgp key
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Apr 18, 2017 11:52 am    Post subject: Reply with quote

sys-libs/uclibc != sys-libs/uclibc-ng

There may be (uclibc) library naming conventions that prevent either the coreutils ebuild or the coreutils source code from finding your uclibc-ng build. I see no reference to uclibc in the coreutils ebuilds, so figure the message you present comes during the compile phase, and comes from inside the coreutils source code. I don't see that error message in coreutils-0.8.25 source code though.

The larger snippet you presented with the error message refers to coreutils/.ln.o.d and coreutils/id.c

Those locations don't correspond to the e.g. "src/id.o" locations I get when compiling coreutils-0.8.25.

Funny, I can install uclibc along side glibc, but if I try to install uclibc-ng, it pulls in dev-libs/libiconv, which is not compatible with glibc. Both uclibc and uclibc-ng would be built including USE=inconv

What version of coreutils?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Apr 18, 2017 12:16 pm    Post subject: Reply with quote

lobbes,

Welcome to Gentoo.

Your ASUS x54c is well able to support a glibc based desktop install if you want.
glibc installs are better supported as its what most people use.

If you really want to use one of the other libc's I suggest you make a multiboot system and install a mainline Gentoo first.

You don't need to install a GUI. After you boot into your own install for the first time, what you install is up to you.
There will be almost nothing at that point.

If you leave a spare partition, you can install a system based on uClibc there once you have learned the Gentoo basics.
That way, you choose which distro to use at boot time.

-- edit --

Hardened too. You are trying to eat an elephant all in one sitting.
You will get on better one plateful at a time :)
_________________
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
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Tue Apr 18, 2017 1:35 pm    Post subject: Reply with quote

NeddySeagoon wrote:
you can install a system based on uClibc there once you have learned the Gentoo basics.

that's what i wanted to do from before the first time i installed gentoo.. then it didn't seem stable enough.
Back to top
View user's profile Send private message
lobbes
n00b
n00b


Joined: 18 Apr 2017
Posts: 2

PostPosted: Wed Apr 19, 2017 4:17 am    Post subject: Reply with quote

cboldt wrote:
sys-libs/uclibc != sys-libs/uclibc-ng

There may be (uclibc) library naming conventions that prevent either the coreutils ebuild or the coreutils source code from finding your uclibc-ng build. I see no reference to uclibc in the coreutils ebuilds, so figure the message you present comes during the compile phase, and comes from inside the coreutils source code. I don't see that error message in coreutils-0.8.25 source code though.


Interesting. I was able to find where my ebuilds for coreutils were located, though they also do not mention uClibc. I couldn't figure out where to find the actual source code though.

cboldt wrote:
What version of coreutils?


I think my coreutils is version 0.8.25 as well (not sure if the following is a valid way to check coreutils version, but assuming):
Code:

(chroot) livecd / # cat --version
cat (GNU coreutils) 8.25


All that being said, I think I may take NeddySeagoon's suggestion and ditch the uClibc for now for perhaps glibc.

Thank you all for the responses :)
_________________
pgp key
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Apr 19, 2017 7:51 am    Post subject: Reply with quote

lobbes,

All the downloaded source code goes to /usr/portage/distfiles unless you change the location with the DISTDIR= entry in make.conf.
The current setting is shown in emerge --info.

The downloaded files (you may need several) are compressed tarballs and not easy to work with. The ebuild command provides phase functions to help with that.
The list is
Code:
clean      cleanrm    compile    config     configure  depend     
digest     fetch      fetchall   help       info       install   
manifest   merge      nofetch    package    postinst   postrm     
preinst    prepare    prerm      pretend    qmerge     rpm       
setup      test       unmerge    unpack

When you run
Code:
ebuild </path/to/ebuild> <phase>
then all the phases up to and including <phase> are executed.
This lets you look at and work with builds in progress.

-- edit --

Your coreutils is version 8.25. That's the current stable is portage.
_________________
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
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