bug#311: [Lnx-bbc-devel] -mcpu and ISO sizes
Seth David Schoen <[email protected]>
| Newsgroups | gmane.linux.bbc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Seth David Schoen writes: > What's odd about this is that uname -m gives exactly the same output > on gar and garson -- including in the chroot. Maybe that's not the > whole story. > > It is pretty clear that they do build binaries of different sizes for > some reason. OK, Inside the chroot: schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ gcc --vers ion 2.95.4 schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ gcc -Os -o rescuept rescuept.c /tmp/ccIsLHj1.o: In function `read_sectors': /tmp/ccIsLHj1.o(.text+0x23): the `llseek' function may be dangerous; use `lseek64' instead. schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ ls -l resc uept -rwxr-xr-x 1 schoen schoen 11397 Feb 2 07:55 rescuept schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ gcc -o rescuept rescuept.c /tmp/ccaqFhSp.o: In function `read_sectors': /tmp/ccaqFhSp.o(.text+0x3b): the `llseek' function may be dangerous; use `lseek64' instead. schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ ls -l resc uept -rwxr-xr-x 1 schoen schoen 13319 Feb 2 07:55 rescuept schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ Outside the chroot: schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ gcc --version 2.95.4 schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ gcc -Os -o rescuept rescuept.c /tmp/ccNaxgHy.o(.text+0x23): In function `read_sectors': : the `llseek' function may be dangerous; use `lseek64' instead. schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ ls -l resc uept -rwxr-xr-x 1 schoen schoen 11365 Feb 1 23:55 rescuept schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ gcc -o res cuept rescuept.c /tmp/cctub5vG.o(.text+0x3b): In function `read_sectors': : the `llseek' function may be dangerous; use `lseek64' instead. schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ ls -l resc uept -rwxr-xr-x 1 schoen schoen 13287 Feb 1 23:56 rescuept schoen@requiem:~/gar/utils/util-linux/work/util-linux-2.11u/rescuept$ So even on the same machine and even without varying -m options (or -I or -L), the gcc in the chroot and the gcc outside, which purport to be the same gcc version, are yielding different-sized binaries _in every case_. In this case, as in a whole BBC build, building in the chroot seems to yield binaries which are consistently larger than building outside. -- Seth David Schoen <[email protected]> | Reading is a right, not a feature! http://www.loyalty.org/~schoen/ | -- Kathryn Myronuk http://vitanuova.loyalty.org/ |