Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155417 - gcc-4.1.1-r2 [regression from gcc-4.1.1-r1] - gfortran not compatible with gdb
Summary: gcc-4.1.1-r2 [regression from gcc-4.1.1-r1] - gfortran not compatible with gdb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 155973 (view as bug list)
Depends on: 138173
Blocks:
  Show dependency tree
 
Reported: 2006-11-16 13:55 UTC by Fred Krogh
Modified: 2006-11-26 20:47 UTC (History)
1 user (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 Fred Krogh 2006-11-16 13:55:07 UTC
I've just posted this bug information to the gcc bug site.

Problem occurs when using gdb.  All works fine with GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1-r1) but not with GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1-r2).  (I'm assuming the bug was not introduced by Gentoo.)  Get failure like this
test.f
      i = 1
      print '(''i='', i1)', i
      end
gfortran -g -o test test.f
gdb test
b test.f:2
run
p i
With the result
Could not find the frame base for "MAIN__".

================= emerge --info ================
Portage 2.1.2_rc1-r7 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r2 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.6
Last Sync: Wed, 15 Nov 2006 21:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aiglx alsa apache2 auctex audiofile bash-completion bcmath berkdb bitmap-fonts blas bonobo bzip2 calendar clamav cli cracklib crypt ctype cups dbus debugger dga divx-linux dlloader dri dvd dvdr dvdread elibc_glibc emacs emboss emul-linux86 encode esd fam fastcgi fbcon firefox flac foomaticdb fortran ftp gif glut gnome gphoto2 gpm gstreamer gtk gtk2 iconv imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kerberos kernel_linux lapack latin1 leim lesstif libclamav lzw lzw-tiff mbox mcal mime mng mouse mozcalendar mozilla mp3 mpeg mpi mysql mysqli ncurses nls nocd nosendmail nptl nptlonly nsplugin nvidia offensive openal opengl osc oscar oss pam pcre pdf perl png pop pop3d portaudio ppds pppd preview-latex python qt3 quicktime readline reflection samba sasl sdl session sharedmem sockets source sox speex spell spl ssl svg symlink tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts usb userland_GNU vhosts video_cards_fbdev video_cards_nvidia video_cards_vesa vorbis xine xmail xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Fred Krogh 2006-11-16 14:22:10 UTC
From pinkskia for the gcc bug that was posted --

------- Comment #1 from pinskia at gcc dot gnu dot org  2006-11-16 22:15 -------
This is a gentoo specific bug since it worked in one version of gentoo's 4.1.1
but did not in another.  Also this works fine for me with the trunk as of
today.

And from drow from a gdb bug posting ---

    Yes, I agree that this is almost certainly a gfortran bug.  That error means that something used "DW_OP_fbreg" (frame base relative location), without a "DW_AT_frame_base" to specify the frame base.

Maybe this makes is easy to fix??




Comment 2 SpanKY gentoo-dev 2006-11-16 14:45:16 UTC
can you re-emerge gcc-4.1.1-r1 and see if it still works ?  only thing added to 4.1.1-r2 was patches from upstream
Comment 3 SpanKY gentoo-dev 2006-11-16 14:45:39 UTC
also, what is the upstream bugreport URL
Comment 4 Fred Krogh 2006-11-16 14:50:18 UTC
I had backed up to gcc-4.1.1-r1 prior to submitting this as a bug.  It works fine.

The gcc bug is at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29872

The gdb bug is at http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2201
Comment 5 SpanKY gentoo-dev 2006-11-16 15:08:55 UTC
in the future, please only file bugs here ... we'll either take care of talking to upstream or redirect you to the correct place with the correct information ;)
Comment 6 SpanKY gentoo-dev 2006-11-16 22:00:43 UTC
i can reproduce that over here on my ppc ... i'll do a patch regression search
Comment 7 SpanKY gentoo-dev 2006-11-17 03:25:35 UTC
the regression was introduced by the patch to fix Bug 138173 (upstream PR22313)

since being able to use GDB is more important than being able to build gcc with -g, i'll drop the patch for 4.1.1-r3
Comment 8 SpanKY gentoo-dev 2006-11-26 05:20:52 UTC
*** Bug 155973 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2006-11-26 20:47:32 UTC
4.1.1-r3 in portage