Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
circular dependencies
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
mgs
n00b
n00b


Joined: 25 Oct 2014
Posts: 21
Location: dc

PostPosted: Thu Nov 27, 2014 5:42 pm    Post subject: circular dependencies Reply with quote

Hi
I am in yet another install attempt. Got as far as emerge --noreplace netifrc when I got:

Code:

...
Total: 204 packages (204 new), Size of downloads: 767,881 kB

 * Error: circular dependencies:

(sys-libs/glibc-2.19-r1::gentoo, ebuild scheduled for merge) depends on
 (sys-devel/gcc-4.8.3::gentoo, ebuild scheduled for merge) (buildtime)
  (sys-libs/glibc-2.19-r1::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
(chroot) livecd / #


Clearly something is amiss with my USE flags but I am not far enough along the learning curve to know how to work around this.

Anyone have a suggestion?

Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Nov 27, 2014 8:01 pm    Post subject: Reply with quote

mgs,

Thats not a USE flag issue.

It indicales that your gcc is too old to build glibc-2.19-r1 and your glibc is too old to support gcc-4.8.3.
The correct approach is to build some intermediate versions of gcc and glibc.

You may already have newer gcc installed but not selected. Use gcc-config to see what versions of gcc you have and to select the latest one.

Indirectly, the messages hint at a fairly out of date system but we will learn more of that later.
_________________
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
mgs
n00b
n00b


Joined: 25 Oct 2014
Posts: 21
Location: dc

PostPosted: Thu Nov 27, 2014 11:28 pm    Post subject: Reply with quote

Interesting. This is from an install put in place today (doesn't mean something is not old, though--it is what it is).

Code:

(chroot) livecd gentoo # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.8.3 *

Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13867

PostPosted: Thu Nov 27, 2014 11:52 pm    Post subject: Reply with quote

What is the output of emerge --pretend --verbose --nodeps sys-libs/glibc sys-devel/gcc ; emerge --info?
Back to top
View user's profile Send private message
mgs
n00b
n00b


Joined: 25 Oct 2014
Posts: 21
Location: dc

PostPosted: Fri Nov 28, 2014 12:03 am    Post subject: Reply with quote

Code:

(chroot) livecd gentoo #  emerge --pretend --verbose --nodeps sys-libs/glibc sys-devel/gcc; emerge --info

These are the packages that would be merged, in order:

[ebuild  N     ] sys-libs/glibc-2.19-r1:2.2  USE="(multilib) -debug -gd (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" 19,754 kB
[ebuild  N     ] sys-devel/gcc-4.8.3:4.8  USE="cxx fortran (multilib) nls nptl openmp sanitize (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 84,146 kB

Total: 2 packages (2 new), Size of downloads: 103,900 kB

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop, gcc-4.8.3, unavailable, 3.15.6-aufs-r1 x86_64)
=================================================================
System uname: Linux-3.15.6-aufs-r1-x86_64-Intel-R-_Core-TM-_i7-2635QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:    16354468 total,  14336908 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 27 Nov 2014 13:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I'll be reading along with you...
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri Nov 28, 2014 12:05 pm    Post subject: Reply with quote

YTF does gcc require newer glibc? It's a C compiler ffs, that's supposed to work just about everywhere..
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Nov 28, 2014 12:27 pm    Post subject: Reply with quote

it's chicken/egg problem, you need an egg to have a chicken and need a chicken to get the egg.
it's because you have no gcc and glibc install (you have them running, but not install for portage pov), and portage gets mad trying to figure out who need what, it happen because the chicken or the egg are pull from an emerge world kindof run.

just force one egg or the chicken and portage will get out of the loop, either forcing glibc or gcc or telling portage you need both but specify it instead of letting portage figure out it will need them both as in a emerge world/system scenario, just like how Hu show you.
Back to top
View user's profile Send private message
mgs
n00b
n00b


Joined: 25 Oct 2014
Posts: 21
Location: dc

PostPosted: Fri Nov 28, 2014 2:08 pm    Post subject: Reply with quote

OK, I ran emerge --nodeps sys-libs/glibc sys-devel/gcc

After a pretty impressive 20 minutes or so of screen-printing I ended up with:

Code:

* Searching all installed packages for file collisions. . .
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'sys-devel/gcc-4.8.3' merged despite file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.
* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.
* You might want to review the GCC upgrade guide when moving between
* major versions (like 4.2 to 4.3):
* http://www.gentoo.org/doc/en/gcc-upgrading.xml
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* Regenerating GNU info directory index. . .
* Processed 87 info files.

* IMPORTANT: config file '/etc/locale.gen needs updating.


So I guess it's fixed? Doesn't feel like it but I'll carry on.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Nov 28, 2014 9:36 pm    Post subject: Reply with quote

mgs,

Code:
[ebuild  N     ] sys-libs/glibc-2.19-r1:2.2  USE="(multilib) -debug -gd (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" 19,754 kB
[ebuild  N     ] sys-devel/gcc-4.8.3:4.8  USE="cxx fortran (multilib) nls nptl openmp sanitize (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 84,146 kB


Your list of installed files is broken.

glibc can never be [ebuild N ], thats New. Its provided by the stage3 tarball and its not slotted, so it can only ever be [ebuild U ], for Update.
If you don't have glibc, bash won't work and your system won't boot.

gcc is slightly different. Its slotted. again, its provided in the stage3 tarball.
gcc can appear as either [ebuild U ] or as [ebuild NS ], for Update or an install in a New Slot.

I suspect these issues are going to be fairly widespread for you.

How did you do 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
mgs
n00b
n00b


Joined: 25 Oct 2014
Posts: 21
Location: dc

PostPosted: Sat Nov 29, 2014 12:24 am    Post subject: Reply with quote

Yes. I had been installing by the handbook--got the kernel compiled and installed--and was working through the configuration steps when I entered find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko' | less with a typo. This caused the system to hang. After a half hour I just restarted. When I chrooted back in I neglected to mount /var (I had put it on a separate partition). I suspect that one or both of these things screwed things up pretty badly.

After the above I ran emerge again and got more and different circular dependency errors (this time relating to udev).

Since this is a test install (dual booting osx with gentoo using only EFI stub and osx's EFI selection menu w/ the option key), cleaning up a badly mangled system is not how I wanted to spend my time just now. I just started over. Going OK so far.
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