public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rgfbr at yahoo dot com dot br" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/38279]  New: Float point exception while compiling firefox using profile guided optimization
Date: Wed, 26 Nov 2008 15:56:00 -0000	[thread overview]
Message-ID: <bug-38279-17002@http.gcc.gnu.org/bugzilla/> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 7470 bytes --]

I was trying to compile firefox 3.0.4 from sources using profile guided
optimization when I receive a float point exception from gcc.

It was after running the firefox to generate the profile data.

This is info that the "reporting bugs" suggests:

* the exact version of GCC
gcc (GCC) 4.0.3

* the system type
Athlon64 X2 3600
Linux 2.6.27.4
GLibc 2.3.6
Linux from scratch 6.2 (distribution)

* the complete command line that triggers the bug
gcc  -DOSTYPE=\"Linux2.6.27\" -DOSARCH=Linux  -I. -I.  -I../dist/include  
-I../dist/include -I../dist/include/nspr     -I../dist/sdk/include
-I/usr/xorg-7.3/include   -fPIC -march=k8 -msse3 -O2 -pipe 
-I/usr/xorg-7.3/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W
-Wno-long-long -pedantic -march=k8 -msse3 -O2 -pipe -fno-strict-aliasing
-pthread -pipe  -DNDEBUG -DTRIMMED -fprofile-use -O3 -march=k8
-fomit-frame-pointer -pipe  -march=k8 -msse3 -O2 -pipe  -I/usr/xorg-7.3/include
-include ../mozilla-config.h -DMOZILLA_CLIENT  -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -o elf-dynstr-gc elf-dynstr-gc.c -lpthread
-Wl,-O1  -fprofile-use -Wl,-rpath-link,../dist/bin  -lgobject-2.0 -lglib-2.0


the options given when GCC was configured/built
./configure --prefix=/usr --libexecdir=/usr/lib --enable-shared \
            --enable-threads=posix --enable-__cxa_atexit \
            --enable-clocale=gnu --enable-languages=c,c++

* the compiler output (error messages, warnings, etc.)

I have added the -Wall option

$ gcc  -DOSTYPE=\"Linux2.6.27\" -DOSARCH=Linux  -I. -I.  -I../dist/include  
-I../dist/include -I../dist/include/nspr     -I../dist/sdk/include
-I/usr/xorg-7.3/include   -fPIC -march=k8 -msse3 -O2 -pipe 
-I/usr/xorg-7.3/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W
-Wno-long-long -pedantic -march=k8 -msse3 -O2 -pipe -fno-strict-aliasing
-pthread -pipe  -DNDEBUG -DTRIMMED -fprofile-use -O3 -march=k8
-fomit-frame-pointer -pipe  -march=k8 -msse3 -O2 -pipe  -I/usr/xorg-7.3/include
-include ../mozilla-config.h -DMOZILLA_CLIENT  -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -o elf-dynstr-gc elf-dynstr-gc.c -lpthread
-Wl,-O1  -fprofile-use -Wl,-rpath-link,../dist/bin  -lgobject-2.0 -lglib-2.0
-Wall
elf-dynstr-gc.c: In function ‘add_strings_from_dynsym’:
elf-dynstr-gc.c:419: warning: unused variable ‘dynamic_symbol’
elf-dynstr-gc.c: In function ‘fixup_strings_in_dynsym’:
elf-dynstr-gc.c:443: warning: unused variable ‘dynamic_symbol’
elf-dynstr-gc.c: In function ‘add_strings_from_dynamic’:
elf-dynstr-gc.c:456: warning: unused variable ‘i’
elf-dynstr-gc.c: In function ‘fixup_strings_in_dynamic’:
elf-dynstr-gc.c:489: warning: unused variable ‘name_idx’
elf-dynstr-gc.c:488: warning: unused variable ‘i’
elf-dynstr-gc.c: In function ‘fixup_strings_in_ver_d’:
elf-dynstr-gc.c:549: warning: unused variable ‘name_idx’
elf-dynstr-gc.c: In function ‘fixup_strings_in_ver_r’:
elf-dynstr-gc.c:604: warning: unused variable ‘name_idx’
elf-dynstr-gc.c: In function ‘sum_size’:
elf-dynstr-gc.c:626: warning: unused parameter ‘key’
elf-dynstr-gc.c: In function ‘output_string’:
elf-dynstr-gc.c:639: warning: unused parameter ‘key’
elf-dynstr-gc.c: In function ‘remap_rela_section’:
elf-dynstr-gc.c:822: warning: unused variable ‘bitmask’
elf-dynstr-gc.c: In function ‘remap_dynamic’:
elf-dynstr-gc.c:953: warning: unused variable ‘jmprel_end’
elf-dynstr-gc.c: In function ‘remap_segments’:
elf-dynstr-gc.c:741: internal compiler error: Float point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This is a new try using -save-temps and -v options

gcc  -DOSTYPE=\"Linux2.6.27\" -DOSARCH=Linux  -I. -I.  -I../dist/include  
-I../dist/include -I../dist/include/nspr     -I../dist/sdk/include
-I/usr/xorg-7.3/include   -fPIC -march=k8 -msse3 -O2 -pipe 
-I/usr/xorg-7.3/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W
-Wno-long-long -pedantic -march=k8 -msse3 -O2 -pipe -fno-strict-aliasing
-pthread -pipe  -DNDEBUG -DTRIMMED -fprofile-use -O3 -march=k8
-fomit-frame-pointer -pipe  -march=k8 -msse3 -O2 -pipe  -I/usr/xorg-7.3/include
-include ../mozilla-config.h -DMOZILLA_CLIENT  -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -o elf-dynstr-gc elf-dynstr-gc.c -lpthread
-Wl,-O1  -fprofile-use -Wl,-rpath-link,../dist/bin  -lgobject-2.0 -lglib-2.0
-save-temps -v
gcc: warning: -pipe ignored because -save-temps specified
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.3/configure --prefix=/usr --libexecdir=/usr/lib
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 4.0.3
 /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1 -E -quiet -v -I. -I.
-I../dist/include -I../dist/include -I../dist/include/nspr
-I../dist/sdk/include -I/usr/xorg-7.3/include -I/usr/xorg-7.3/include
-I/usr/xorg-7.3/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-D_REENTRANT -DOSTYPE="Linux2.6.27" -DOSARCH=Linux -DNDEBUG -DTRIMMED
-DMOZILLA_CLIENT -include ../mozilla-config.h elf-dynstr-gc.c -march=k8 -msse3
-march=k8 -msse3 -march=k8 -march=k8 -msse3 -Wall -W -Wno-unused
-Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -fPIC
-fno-strict-aliasing -fprofile-use -fomit-frame-pointer -fprofile-use -O2 -O2
-O3 -O2 -fpch-preprocess -o elf-dynstr-gc.i
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "."
ignoring nonexistent directory "../dist/include"
ignoring nonexistent directory "../dist/include"
ignoring nonexistent directory "../dist/include/nspr"
ignoring nonexistent directory "../dist/sdk/include"
ignoring duplicate directory "/usr/xorg-7.3/include"
ignoring duplicate directory "/usr/xorg-7.3/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/xorg-7.3/include
 /usr/include/glib-2.0
 /usr/lib/glib-2.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include
 /usr/include
End of search list.
 /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1 -fpreprocessed elf-dynstr-gc.i -quiet
-dumpbase elf-dynstr-gc.c -march=k8 -msse3 -march=k8 -msse3 -march=k8 -march=k8
-msse3 -auxbase elf-dynstr-gc -O2 -O2 -O3 -O2 -Wall -W -Wno-unused
-Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -version -fPIC
-fno-strict-aliasing -fprofile-use -fomit-frame-pointer -fprofile-use -o
elf-dynstr-gc.s
GNU C version 4.0.3 (i686-pc-linux-gnu)
        compiled by GNU C version 4.0.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
elf-dynstr-gc.c: In function ‘remap_segments’:
elf-dynstr-gc.c:741: internal compiler error: Exceção de ponto flutuante
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

I will send the elf-dynstr-gc.i file. I will send the *.gcda and *.gcno too
because I am using profile guided optimization.


-- 
           Summary: Float point exception while compiling firefox using
                    profile guided optimization
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rgfbr at yahoo dot com dot br


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38279


             reply	other threads:[~2008-11-26 15:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 15:56 rgfbr at yahoo dot com dot br [this message]
2008-11-26 15:58 ` [Bug c/38279] " rgfbr at yahoo dot com dot br
2008-11-26 15:59 ` rgfbr at yahoo dot com dot br
2008-11-26 15:59 ` rgfbr at yahoo dot com dot br
2008-11-26 16:07 ` rgfbr at yahoo dot com dot br
2008-11-26 16:12 ` paolo dot carlini at oracle dot com
2008-11-26 16:13 ` paolo dot carlini at oracle dot com
2008-11-26 16:26 ` pinskia at gcc dot gnu dot org
2008-11-28 14:10 ` rgfbr at yahoo dot com dot br

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-38279-17002@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).