Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2009 08:19:15 -0800
From:      Mark Atkinson <atkin901@yahoo.com>
To:        freebsd-current@freebsd.org
Subject:   memory alignment problems with -current on amd64?
Message-ID:  <gl7hu4$q7k$1@ger.gmane.org>

next in thread | raw e-mail | index | archive | help

With recent kernels on HAMMER/amd64 I cannot complete a buildworld.  The
compilation keeps failing with problems like:

cc -O2 -pipe -DBFD_DEFAULT_TARGET_SIZE=64 -I. -I/usr/src/gnu/usr.bin/binutils/as -I/usr/src/gnu/usr.bin/binutils/as/../libbfd -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/binutils/as/../libbfd -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/include -DDEFAULT_ARCH=\"x86_64\" -DTARGET_CPU=\"x86_64\" -DTARGET_CANONICAL=\"x86_64-obrien-freebsd\" -DTARGET_ALIAS=\"x86_64-obrien-freebsd\" -DVERSION=\""2.15
[FreeBSD]
2004-05-23"\" -D_GNU_SOURCE -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils -I/usr/src/gnu/usr.bin/binutils/as -I/usr/src/gnu/usr.bin/binutils/as/amd64-freebsd  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/subsegs.c
/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/subsegs.c:
In function 'subseg_set_rest':
/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/subsegs.c:205:
internal compiler error: Bus error: 10
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html>; for instructions.
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Yet if I run the failed command it will complete successfully:

[root@dl385g5 /usr/src]#
cc -O2 -pipe -DBFD_DEFAULT_TARGET_SIZE=64 -I. -I/usr/src/gnu/usr.bin/binutils/as -I/usr/src/gnu/usr.bin/binutils/as/../libbfd -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/binutils/as/../libbfd -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/include -DDEFAULT_ARCH=\"x86_64\" -DTARGET_CPU=\"x86_64\" -DTARGET_CANONICAL=\"x86_64-obrien-freebsd\" -DTARGET_ALIAS=\"x86_64-obrien-freebsd\" -DVERSION=\""2.15
[FreeBSD]
2004-05-23"\" -D_GNU_SOURCE -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils -I/usr/src/gnu/usr.bin/binutils/as -I/usr/src/gnu/usr.bin/binutils/as/amd64-freebsd  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/subsegs.c
[root@dl385g5 /usr/src]# echo $?
0

If I boot back to a kernel from sources Oct 15th 2008, I can complete a
buildworld on this machine no problem.

* This is a HP DL385G5 with 1 quad core AMD 2100 and 10G of memory.  
* This the amd64 GENERIC kernel
* I've tried reducing hw.physmem to 2G, but that didn't make any difference.
* I will recieve bus errors when running buildworld w/ -j1
* If I run buildworld with a larger number the machine will reset w/ no
panic.

Ideas?
-- 
Mark Atkinson
atkin901@yahoo.com
(!wired)?(coffee++):(wired);




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gl7hu4$q7k$1>