In trying to emerge Midnight Commander just prior to the kernel configure in a stage 1 install, GCC 3.2.2_r4 would not compile it. The error follows. gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O3 -march=athlon-tbird -fforce-addr -fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -funroll-loops -pipe -m3dnow -mmmx -Wall -o mc achown.o background.o boxes.o chmod.o chown.o cmd.o color.o command.o complete.o cons.handler.o dialog.o dir.o dlg.o ext.o file.o filegui.o filenot.o fileopctx.o find.o findme.o fsusage.o help.o hotlist.o info.o key.o keyxdef.o layout.o learn.o listmode.o main.o menu.o mountlist.o mouse.o option.o panelize.o popt.o poptconfig.o popthelp.o poptparse.o profile.o regex.o rxvt.o screen.o setup.o slint.o subshell.o terms.o text.o textconf.o tree.o treestore.o user.o util.o utilunix.o view.o widget.o win.o wtools.o charsets.o selcodepage.o ../edit/libedit.a ../vfs/libvfs-mc.a ../intl/libintl.a -lglib-2.0 -L/usr/X11R6/lib -lSM -lICE -lX11 -lgpm -lslang -lext2fs -lcom_err /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libext2fs.so collect2: ld returned 1 exit status make[2]: *** [mc] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r4/work/mc-4.6.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r4/work/mc-4.6.0' make: *** [all] Error 2 !!! ERROR: app-misc/mc-4.6.0-r4 failed. !!! Function src_compile, Line 79, Exitcode 2 !!! (no error message) In searching I found that libext2fs.so had emerged to /usr/lib instead of /lib...so I made a symlink in /lib to the file. In running the emerge again, this was the output... gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O3 -march=athlon-tbird -fforce-addr -fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -funroll-loops -pipe -m3dnow -mmmx -Wall -o man2hlp man2hlp.o -lglib-2.0 gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O3 -march=athlon-tbird -fforce-addr -fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -funroll-loops -pipe -m3dnow -mmmx -Wall -o cons.saver cons.saver.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot open linker script file /lib/libext2fs.so: Too many open files collect2: ld returned 1 exit status make[2]: *** [mc] Error 1 make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r4/work/mc-4.6.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r4/work/mc-4.6.0' make: *** [all] Error 2 !!! ERROR: app-misc/mc-4.6.0-r4 failed. !!! Function src_compile, Line 79, Exitcode 2 !!! (no error message) I have installed the kernel to boot, but I will not go any further till I can emerge Midnight Commander. I do not know if this is a bug in MC alone, or also in GCC 3.2.2_r4 also.
BTW, the snapshot was that of 12/28/03....I tried emerge sync and disabling my USE flags and my CFLAGS...to no avail. I also tried actually copying the files to /lib to no additional effect.
Oops!...that is GCC 3.3.2_r4
could you tra gcc 3.2.2-r5 ?
*** Bug 36786 has been marked as a duplicate of this bug. ***
could you post a complete emerge log please
EDIT: The issues behind this is solved now. Forgetting that I had "static" in my USE file, "[i]e2fprogs[/i]" had emerged without the ".so" files. I still don't know why commenting out my USE in the make.conf didn't work. Sorry for the GentooNewb error....