public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38279]  New: Float point exception while compiling firefox using profile guided optimization
@ 2008-11-26 15:56 rgfbr at yahoo dot com dot br
  2008-11-26 15:58 ` [Bug c/38279] " rgfbr at yahoo dot com dot br
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rgfbr at yahoo dot com dot br @ 2008-11-26 15:56 UTC (permalink / raw)
  To: gcc-bugs

[-- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
@ 2008-11-26 15:58 ` rgfbr at yahoo dot com dot br
  2008-11-26 15:59 ` rgfbr at yahoo dot com dot br
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rgfbr at yahoo dot com dot br @ 2008-11-26 15:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rgfbr at yahoo dot com dot br  2008-11-26 15:56 -------
Created an attachment (id=16777)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16777&action=view)
preprocessed file


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rgfbr at yahoo dot com dot br @ 2008-11-26 15:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rgfbr at yahoo dot com dot br  2008-11-26 15:57 -------
Created an attachment (id=16778)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16778&action=view)
gcda file


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rgfbr at yahoo dot com dot br @ 2008-11-26 15:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rgfbr at yahoo dot com dot br  2008-11-26 15:58 -------
Created an attachment (id=16779)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16779&action=view)
gcno file


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
                   ` (2 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rgfbr at yahoo dot com dot br @ 2008-11-26 16:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rgfbr at yahoo dot com dot br  2008-11-26 16:06 -------
I know my gcc is very old. I will try to compile the newest version and send
the results.


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-11-26 16:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2008-11-26 16:11 -------
Are you aware of the fact that GCC 4.0.x is no longer maintained? You should
try again with a current compiler, in the current 4.3.x release series or at
least 4.2.x.


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
                   ` (4 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-11-26 16:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo dot carlini at oracle dot com  2008-11-26 16:12 -------
(In reply to comment #4)
> I know my gcc is very old. I will try to compile the newest version and send
> the results.

Ok.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
                   ` (5 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-26 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2008-11-26 16:25 -------
This is most likely a divide by zero (x86 causes a FP exception for this for
some stupid reason).

This is either PR 30650, or another PR about the same thing.


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/38279] Float point exception while compiling firefox using profile guided optimization
  2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
                   ` (6 preceding siblings ...)
  2008-11-26 16:26 ` pinskia at gcc dot gnu dot org
@ 2008-11-28 14:10 ` rgfbr at yahoo dot com dot br
  7 siblings, 0 replies; 9+ messages in thread
From: rgfbr at yahoo dot com dot br @ 2008-11-28 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rgfbr at yahoo dot com dot br  2008-11-28 14:09 -------
After compiling gcc 4.3.2 and compiling firefox again, no errors anymore. I
think that it is a old bug already fixed.


-- 

rgfbr at yahoo dot com dot br changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-11-28 14:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-26 15:56 [Bug c/38279] New: Float point exception while compiling firefox using profile guided optimization rgfbr at yahoo dot com dot br
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

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).