Bug 29039

Summary: boot2 fails to compile on -STABLE
Product: Base System Reporter: Craig Hawco <dest>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description Craig Hawco 2001-07-17 15:50:00 UTC
When compiling boot2 bootloader during a make buildworld it fails
with the following message:
dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null
elf_load_section: truncated ELF file
Abort trap

How-To-Repeat: make buildworld on -STABLE or cd /usr/src/sys/boot/i386/boot2 && make
Comment 1 ru freebsd_committer freebsd_triage 2001-07-17 16:12:05 UTC
Not reproduceable on 4.2-STABLE and 4.3-STABLE systems.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age
Comment 2 Kris Kennaway freebsd_committer freebsd_triage 2001-07-26 03:47:15 UTC
State Changed
From-To: open->closed

This doesn't appear to be a problem in FreeBSD; perhaps you 
have something local which is getting in the way.  Make sure you 
are building from a clean system (e.g. rm -rf /usr/obj; make cleandir, etc)
Comment 3 Mark Zieg 2001-08-01 14:55:53 UTC
>Submitter-Id:	net
>Originator:	Mark Zieg
>Organization:	Zieg.com
>Confidential:	no
>Synopsis:	RE: i386/29039: boot2 fails to compile on -STABLE
>Severity:	non-critical
>Priority:	low
>Category:	i386
>Class:		sw-bug
>Release:	4.3-STABLE
>Environment:	FreeBSD rearden.zieg.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Mon Jul 30 03:20:35 GMT 2001 root@wyatt.zieg.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
/usr/src/sys/boot/i386/boot2 fails to make.  Gives "elf_load_section: truncated ELF file", "Abort trab", "Error Code 134".
>How-To-Repeat:
rearden /usr/src/sys/boot/i386/boot2 [mzieg] $ sudo make

dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null
elf_load_section: truncated ELF file
Abort trap
*** Error code 134
Stop in /usr/src/sys/boot/i386/boot2.
>Fix:
# cd /usr/src/bin/dd ; make ; make install