From owner-freebsd-hackers Tue Jan 24 15:10:13 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id PAA14354 for hackers-outgoing; Tue, 24 Jan 1995 15:10:13 -0800 Received: from devnull.mpd.tandem.com (devnull.mpd.tandem.com [131.124.4.29]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id PAA14348 for ; Tue, 24 Jan 1995 15:10:05 -0800 Received: from olympus by devnull.mpd.tandem.com (8.6.8/8.6.6) id QAA21033; Tue, 24 Jan 1995 16:21:30 -0600 Received: by olympus (4.1/TSS2.1) id AA13016; Tue, 24 Jan 95 16:20:07 CST From: faulkner@mpd.tandem.com (Boyd Faulkner) Message-Id: <9501242220.AA13016@olympus> Subject: Re: Assembler error To: wkk@eng.warwick.ac.uk Date: Tue, 24 Jan 1995 16:20:06 -0600 (CST) Cc: hackers@FreeBSD.org In-Reply-To: <11463.9501241600@eng.warwick.ac.uk> from "wkk@eng.warwick.ac.uk" at Jan 24, 95 04:00:23 pm X-Mailer: ELM [version 2.4 PL17] Content-Type: text Content-Length: 2038 Sender: hackers-owner@FreeBSD.org Precedence: bulk Are you using the ancient FreeBSD assembler or the recommended binutils-2.5.2 compiled to cross assemble for mach. That cleared this up for me. Boyd > > Hello, > I am trying to compile mach4 server on FreeBSD. Theoretically it should > compile but I get the following error in file that has some assembler code. I > am not an assembler expert but looking at the error it look likes the assembler > is getting confused with the text and data segment (I think). Can anyone help? > > Thanks very much. > > khondkar. > > ************************************************************************ > error > ************************************************************************ > gcc -c -MD -DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -Di386 -DMACH -DCMU -I- -I. -I../../mach4-i386/boot -I../../mach4-i386/include -I../../mach4/include -nostdinc -DASSEMBLER -MD ../../mach4-i386/boot/bmod_head.S > assertion "seg == SEG_DATA || seg == SEG_TEXT" failed: file "/usr/src/gnu/usr.bin/as/subsegs.c", line 174 > gcc: Internal compiler error: program as got fatal signal 6 > gmake[1]: *** [bmod_head.o] Error 1 > gmake[1]: Leaving directory `/usr/src/local/mach4-obj/boot' > gmake: *** [install_subdirs] Error 1 > > ************************************************************************ > assembler file while it gets bombed out > ************************************************************************ > > #include > > .globl _mach_bmod_text,_mach_bmod_data,_mach_bmod_bss > > .text > .align 4 > _mach_bmod_text: > > .data > .align 4 > _mach_bmod_data: > .long BMOD_MAGIC > .long _mach_bmod_init > .long _mach_bmod_text > .long _mach_bmod_etext > .long _mach_bmod_data > .long _mach_bmod_edata > .long _mach_bmod_bss > .long _mach_bmod_ebss > > .bss > .align 4 > _mach_bmod_bss: > > -- _______________________________________________________________________ Boyd Faulkner faulkner@isd.tandem.com _______________________________________________________________________