Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
accidentilly unmerged binutils
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gearheadsmp
n00b
n00b


Joined: 05 Jun 2002
Posts: 38
Location: Memphis, Tennessee

PostPosted: Wed Jun 05, 2002 2:27 am    Post subject: accidentilly unmerged binutils Reply with quote

I accidentilly unmerged binutils, thinking it was a rarely used library. Little did I know that I need it to compile programs. So now I'm in a predicament of not knowing how to reinstall binutils. I've tried emerging binutils, I've tried compiling it on another machine and then 'make install'ng it on the troubled box.

I need some way to have the [binutils] binaries pre-compiled and just copy them into the respective folders using the 'cp' command. I don't have RPM support installed, so I don't know what to try next. :!: I need help :!: , or else I'm going to have to ftp my /etc dir to another box and re-build the system.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Jun 05, 2002 7:27 am    Post subject: Reply with quote

Code:
emerge -b binutils
or
Code:
ebuild /usr/portage/sys-devel/binutils/binutils-2.12.90.0.7.ebuild package

This will compile the file and stores it as a tbz2 package in /usr/portage/packages/All. This way you can cp it to your computer and just do a emerge -k I think or just untar the package in root and rebuild binutils afterwards.

Cya lX
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
truthseaker
n00b
n00b


Joined: 29 Mar 2012
Posts: 7
Location: GENTOO_MIRROR="somewhere in space"

PostPosted: Fri Mar 24, 2017 8:41 am    Post subject: Reply with quote

Hello,

I know that this topic is very old but I would like to refresh it as I have the same problem. I also by mistake unmerged binutils because I thought it resolve other problem with preserved libraries. I tried commands:
Code:
emerge -b binutils
ebuild /usr/portage/sys-devel/binutils/binutils-2.12.90.0.7.ebuild package

But each time I received this output:
Code:
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/sys-devel/binutils-2.26.1/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
 * ERROR: sys-devel/binutils-2.26.1::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 2966:  Called toolchain-binutils_src_configure
 *   environment, line 3846:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "${myconf[@]}" || die;

Output of emerge --info:
Code:
# emerge --info '=sys-devel/binutils-2.26.1::gentoo'
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-4.9.4, glibc-2.23-r3, 4.9.6-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-4460_CPU_@_3.20GHz-with-gentoo-2.3
KiB Mem:     5041936 total,   4407056 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 23 Mar 2017 07:00:01 +0000
sh bash 4.3_p48-r1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::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.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::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/glibc:           2.23-r3::gentoo
Repositories:

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

raiagent
    location: /var/lib/layman/raiagent
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /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 split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ rsync://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.utf8"
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="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr clamav cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff tracker truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xattr 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" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pl" 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="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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Also I include output of emerge -pqv:
Code:
# emerge -pqv '=sys-devel/binutils-2.26.1::gentoo'
[ebuild  N    ] sys-devel/binutils-2.26.1  USE="cxx nls -multitarget -static-libs {-test} -vanilla"

So I stuck and to be honest I don't know how to fix system. And I don't want to format and install again, it's not a solution. I read somewhere on stackoverflow that I should find tbz2 package of binutils and installed it but I'm afraid of breaking system even more.
Thank you for any help!
_________________
It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Fri Mar 24, 2017 9:04 am    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Mar 24, 2017 9:29 am    Post subject: Reply with quote

truthseaker,

The backstop is Fix My Gentoo
Read it anyway - you will need some of the steps.

You can get binary packages and emerge them.
Pick a binary that matches your install.

If you are lazy, you can set BINHOST in make.conf then emerge -K will use the BINHOST directly.
Remove the BINHOST setting when your system works again.
_________________
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
truthseaker
n00b
n00b


Joined: 29 Mar 2012
Posts: 7
Location: GENTOO_MIRROR="somewhere in space"

PostPosted: Fri Mar 24, 2017 10:06 am    Post subject: Reply with quote

Thank you very much for answers. Solution from fedeliallalinea fixed everything! :) I'm asking moderator for marking this thread as solved because I'm not author and starting to read Fix My Gentoo article in order to increase my knowledge.
_________________
It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21494

PostPosted: Sat Mar 25, 2017 12:12 am    Post subject: Reply with quote

truthseaker wrote:
I know that this topic is very old but I would like to refresh it as I have the same problem.
I think this is a record for thread necromancy.
truthseaker wrote:
I also by mistake unmerged binutils because I thought it resolve other problem with preserved libraries. I tried commands:
Code:
emerge -b binutils
ebuild /usr/portage/sys-devel/binutils/binutils-2.12.90.0.7.ebuild package
lx meant for you to run those on your still-functional alternate system, where it would generate the package that you would install on the broken system. You cannot use a broken system to fix itself, because if you could, it would not be a broken system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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