public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/33070]  New: Bootstrap comparison failure between stage2/3 but no objdump differences
@ 2007-08-14 18:54 Axel dot Thimm at ATrpms dot net
  2007-08-20  6:45 ` [Bug bootstrap/33070] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Axel dot Thimm at ATrpms dot net @ 2007-08-14 18:54 UTC (permalink / raw)
  To: gcc-bugs

While trying to build gcc 3.4.3 on a RHEL5/i386 system in a chroot we see

> Comparing stage2 and stage3 of the compiler
> gmake[1]: Entering directory `/opt/build/gcc-3.4.3-objdir3/gcc'
> [...]
> Bootstrap comparison failure!
> ./alloc-pool.o differs
> ./bb-reorder.o differs
> ./bt-load.o differs
> [...]

The list of object files can differ, and the differences are not visible with
disassembling with objdump (see below). It looks like the differences are from
the padding space between the aligned sections. What could be wrong?

If the build is done outside the chroot then the comparison succeeds. We have
already tried to map everything outside/inside the chroot (including /proc,
/dev etc) but sysfs and binfmt_misc. Does the gcc stage 2/3 build make any use
of these?

Thanks!

[root@franky ~]# file1=/opt/build/gcc-3.4.3-objdir3/gcc/stage2/alloc-pool.o;
file2=/opt/build/gcc-3.4.3-objdir3/gcc/alloc-pool.o
[root@franky ~]# cmp -l $file1 $file2
2714  75 262
2715 312  57
2716  10  12
[root@franky ~]# objdump -Dxzs --prefix-addresses $file1 > /tmp/c-1
[root@franky ~]# objdump -Dxzs --prefix-addresses $file2 > /tmp/c-2
[root@franky ~]# diff -ud /tmp/c-1 /tmp/c-2
--- /tmp/c-1    2007-08-14 12:31:37.000000000 -0500
+++ /tmp/c-2    2007-08-14 12:31:42.000000000 -0500
@@ -1,6 +1,6 @@

-/opt/build/gcc-3.4.3-objdir3/gcc/stage2/alloc-pool.o:     file format
elf32-i386
-/opt/build/gcc-3.4.3-objdir3/gcc/stage2/alloc-pool.o
+/opt/build/gcc-3.4.3-objdir3/gcc/alloc-pool.o:     file format elf32-i386
+/opt/build/gcc-3.4.3-objdir3/gcc/alloc-pool.o
 architecture: i386, flags 0x00000011:
 HAS_RELOC, HAS_SYMS
 start address 0x00000000


-- 
           Summary: Bootstrap comparison failure between stage2/3 but no
                    objdump differences
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Axel dot Thimm at ATrpms dot net
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2012-01-28  3:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-33070-4@http.gcc.gnu.org/bugzilla/>
2012-01-28  3:25 ` [Bug bootstrap/33070] Bootstrap comparison failure between stage2/3 but no objdump differences pinskia at gcc dot gnu.org
2007-08-14 18:54 [Bug bootstrap/33070] New: " Axel dot Thimm at ATrpms dot net
2007-08-20  6:45 ` [Bug bootstrap/33070] " pinskia at gcc dot gnu dot org
2007-08-20  7:36 ` Axel dot Thimm at ATrpms dot net
2007-08-20  7:40 ` pinskia at gcc dot gnu dot org
2007-08-20 18:05 ` Axel dot Thimm at ATrpms dot net

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