Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93642 - when I try to compile fortran using both gcc and ifc, ld problems arise?
Summary: when I try to compile fortran using both gcc and ifc, ld problems arise?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-23 00:12 UTC by Darin
Modified: 2005-05-30 23:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin 2005-05-23 00:12:47 UTC
For ifc, I'll get

/opt/intel/compiler70/ia32/bin/ifc ~/for/h* 
    program HELLO

13 Lines Compiled
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x4d3): In
function `f_f77ioerr':
: undefined reference to `__ctype_b'
ld: BFD 2.15.92.0.2 20040927 assertion fail
/var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/bfd/elflink.c:6146
ifcbin: error: Fatal error in ld, terminated by segmentation violation

and gcc gives me

gcc ~/for/h*
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
/tmp/ccAWMMrM.o(.text+0x1c): In function `MAIN__':
: undefined reference to `s_wsfe'
/tmp/ccAWMMrM.o(.text+0x21): In function `MAIN__':
: undefined reference to `e_wsfe'
/tmp/ccAWMMrM.o(.text+0x37): In function `MAIN__':
: undefined reference to `s_stop'
collect2: ld returned 1 exit status

Reproducible: Always
Steps to Reproduce:
1.Install Jackass!
2.Try to compile a .for file with gcc of ifc
3.

Actual Results:  
It exited with the above errors.

Expected Results:  
Compiled and linked?

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0,
2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 20 2005, 02:24:02)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mtune=pentium4 -pipe -fweb -frename-registers
-fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mtune=pentium4 -pipe -fweb -frename-registers
-fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl emboss
encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6
java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell
ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-05-23 00:18:39 UTC
*** GENTOO LINUX IS WHERE YOU PUT EBUILD BUGS. ***
Comment 2 Jeffrey 2005-05-23 08:02:16 UTC
Try rebuilding your system with sane CFLAGS.

Sometimes, I wish everyone would be able to close bugs...
Comment 3 Darin 2005-05-23 21:13:13 UTC
I 'emerge -e system && emerge -e system' with this emerge --info

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0,
2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 23 2005, 13:23:00)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl emboss
encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6
java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell
ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

and reemerged binutils, but the error persists. I'm assuming I rebuilt the
system with sane CFLAGS, but is there something else I need to do? Should I go
back and purge /etc/portage/package.keywords?
Comment 4 Trevor Forbes 2005-05-28 19:18:10 UTC
Release 8.1.xx as stable and all will be fixed.
See bug 68015 for a solution.
The `__ctype_b' error is because of an glibc update IIRC. 
Comment 5 SpanKY gentoo-dev 2005-05-28 19:31:01 UTC
i think you are correct that the ctype thing is a glibc upgrade issue ... search
bugzilla and you should find mentions of it
Comment 6 Darin 2005-05-30 23:59:22 UTC
8.1.xxx did the trick, it'd be nice if it was marked stable.
Thanks for the help everyone!