gcc is compiled with USE=-f77 and I _do_ have f2c. # emerge octave [CUT] -L../liboctave -L../libcruft -L../src -Wl,-rpath -Wl,/usr/lib/octave-2.1.50 \ -loctinterp -loctave -lcruft ../glob/glob.o ../glob/fnmatch.o \ -ldfftw -lreadline -lncurses -ldl -lm ../libcruft/libcruft.so: undefined reference to `do_lio' ../libcruft/libcruft.so: undefined reference to `d_sign' ../libcruft/libcruft.so: undefined reference to `e_wsle' ../src/liboctinterp.so: undefined reference to `e_wsfe' ../libcruft/libcruft.so: undefined reference to `z_abs' ../libcruft/libcruft.so: undefined reference to `d_int' ../libcruft/libcruft.so: undefined reference to `i_dnnt' ../libcruft/libcruft.so: undefined reference to `s_cmp' ../libcruft/libcruft.so: undefined reference to `i_indx' ../libcruft/libcruft.so: undefined reference to `d_cnjg' ../libcruft/libcruft.so: undefined reference to `d_mod' ../src/liboctinterp.so: undefined reference to `do_fio' ../libcruft/libcruft.so: undefined reference to `d_imag' ../libcruft/libcruft.so: undefined reference to `pow_ri' ../libcruft/libcruft.so: undefined reference to `pow_dd' ../libcruft/libcruft.so: undefined reference to `z_sqrt' ../libcruft/libcruft.so: undefined reference to `e_wsfi' ../libcruft/libcruft.so: undefined reference to `s_cat' ../libcruft/libcruft.so: undefined reference to `s_stop' ../libcruft/libcruft.so: undefined reference to `s_wsfi' ../libcruft/libcruft.so: undefined reference to `d_lg10' ../libcruft/libcruft.so: undefined reference to `r_sign' ../libcruft/libcruft.so: undefined reference to `pow_di' ../libcruft/libcruft.so: undefined reference to `s_wsle' ../libcruft/libcruft.so: undefined reference to `z_div' ../libcruft/libcruft.so: undefined reference to `i_len' ../src/liboctinterp.so: undefined reference to `s_wsfe' ../libcruft/libcruft.so: undefined reference to `s_copy' collect2: ld returned 1 exit status make[2]: *** [octave] Error 1 make[2]: Leaving directory `/var/tmp/portage/octave-2.1.50/work/octave-2.1.50/src' make[1]: *** [src] Error 2 make[1]: Leaving directory `/var/tmp/portage/octave-2.1.50/work/octave-2.1.50' make: *** [all] Error 2 !!! ERROR: app-sci/octave-2.1.50 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! emake failed # emerge info Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3) ================================================================= System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest distcc fixpackages sandbox userpriv" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib alsa apache2 apm avi berkdb bitmap-fonts bonobo cdparanoia cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd dvdr encode erandom esd extensions faad fbcon flac flash foomaticdb gd gdbm ggi gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imap imlib innodb ipv6 java jikes joystick jpeg kde kerberos krb4 lcms ldap libcaca libg++ libwww linguas_it live lzo mad mcal md5sum memlimit mikmod mmx mng motif mozilla moznoirc mozp3p mozsvg mpeg mpi mysql ncurses network nls nptl nvidia odbc offensive oggvorbis opengl pam parse-clocks pdflib perl pic png ppds prelude python qt quicktime readline rtc samba scanner sdl skey slang slp sndfile snmp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex tga theora tiff truetype usb v4l v4l2 vim-with-x wmf wxwindows x86 xchattext xml xml2 xmms xprint xv xvid yazzlib"
*** Bug 61201 has been marked as a duplicate of this bug. ***
same problem here
Could someone with a fortran-less gcc please check if he has /usr/lib/gcc-lib/i686-pc-linux-gnu/YOUR_VERSION_HERE/libg2c.so ? When I link with this lib, all necessary symbols are found, but I am afraid it might be part of the Fortran option.
I don't have /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libg2c.so so the bypass would just be to install the fortran options ?
OK, added "f77" to use list, emerged gcc and now it builds correctly
Added the check from the newer version.