FAQ Troubleshooting Emerge Errors
From Gentoo Linux Wiki
| General • Portage • Wiki |
This article is still a Stub. You can help Gentoo-Wiki by expanding it.
Contents |
[edit] Introduction
This article seeks to be a comprehensive resource for troubleshooting emerge errors in portage. It mostly is a hub linking resources to the forum FAQ and gentoo.org website.
After it has matured, our portage developers could provide a link at the end of the emerge "ERROR ..." message for our fellow gentoo-ers to find quick solutions to their problems.
Note that while this article is aimed primarily at improving new user experience, being discussed in this forum thread, it also seeks to include useful steps for more experienced users. Concerns or Compliments? Please use the Discussion section.
[edit] Getting Started
[edit] Portage
Glance through the portage introduction, for basic understanding of the portage system, and also gentoolkit for useful tools like revdep-rebuild and equery
It will help later, if not now
[edit] emerge world Workaround
If the error throwing package is part of larger package set, or you are conducting a system update, the following emerge options allow you to continue on and then get back to it: emerge --resume --skipfirst You can use it to skip over more than one error by using emerge --resume --skipfirst as many times as it takes.
[edit] Portage problems
When emerge attempts of many different packages report the same error, you know that the problem lies with the portage (that is the emerge utility) itself. If this is not the case for you, continue reading the next section on FAQ_Troubleshooting_Emerge_Errors#Compiler Errors
Here are some errors with portage:
If portage cannot be fixed you can manually fix the portage utility
[edit] Compiler Errors
[edit] GCC
The FAQ forum has a browseable FAQ section to save you time searching through threads. A direct list, for the narrower scope of this GCC-emerge troubleshooting guide, has been provided below for convenience:
- libstdc++.la missing (emerge fails after upgrading gcc)
- C compiler cannot create executables
- preprocessor "/lib/cpp" fails sanity check
- Error while loading shared libraries: libstdc++.so.5
Read this if you want to expanding the forum FAQ: About this forum
Please do not post your workaround directly to the FAQ. If your problem could not explicitly resolved by the FAQ above, you may suggest a topic here.
[edit] Java
To comply with generation 1 VM follow the Java upgrade guide. You may need to tweak your Java compiler selection or setting
[edit] Gentoo.org and Gentoo-Wiki.com
For setting up program structures like Samba, ALSA sound, etc, search both websites for context specific help.
[edit] Browsing the Forums
The chances are your error is probably already in discussion and maybe also resolved.
Look at the sticky threads under the category of your program:
- Multimedia
- Desktop Environments
- Networking & Security
- Gamers & Players
- Unsupported Software
[edit] TIP for thoroughly searching the Forums / Google
Pick out keywords peculiar to your error (such as name of the first error causing file, or library) along with significant other keywords there like "segfault", "linking", etc Search the forum, and then if need be use google with the same keywords.
[edit] Bugzilla
Always choose the advanced search option in bugs.gentoo.org, and search all errors (i.e. shift-selecting every status).
Then if you need to narrow down your search, put in the keywords from the TIP section above.
[edit] More Self-help
[edit] Use stable version instead of ~(arch)
It is dangerous to globally enable the ~arch keyword in your /etc/make.conf
[edit] Disable USE flags
To disable USE flags you must use either /etc/make.conf or /etc/portage/package.use. While portage does allow you to specify USE flags on the command line, this method is to be avoided as the changes are not saved and will be reverted next time the package is merged. See the Gentoo Handbook for further details.
[edit] Version downgrade
Browse the portage tree for previous versions by visiting gentoo-portage.com.
To downgrade to a previous version, emerging the specific version is not enough - the package will simply be upgraded again in the future. You must use /etc/portage/package.mask to mask out unwanted versions, as detailed in the portage man page.
[edit] Getting community support
[edit] Posting for help on the forum
- The exact emerge command you were running
- Context of what you want to do (maybe there's a more developed program in the portage tree to do what you want)
- All relevant error text (no more, no less). If you're not sure what portion of the error is relevant, post 60 lines of portage's automatically generated build.log using tail -60 /var/tmp/portage/net-libs/libtorrent-0.11.8/temp/build.log but substitute net-libs/libtorrent-0.11.8 with the your package name
[edit] IRC
- The #gentoo channel is often useful if you need support more immediately.
- Try posting on channels more particular to your program
[edit] Bugzilla
Instructions provided on that website already: bugs.gentoo.org
