From owner-freebsd-chat Mon Oct 5 17:46:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18860 for freebsd-chat-outgoing; Mon, 5 Oct 1998 17:46:16 -0700 (PDT) (envelope-from owner-freebsd-chat@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18789 for ; Mon, 5 Oct 1998 17:45:46 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id CAA04893; Tue, 6 Oct 1998 02:45:37 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id CAA08974; Tue, 6 Oct 1998 02:45:37 +0200 (MET DST) Message-ID: <19981006024537.00778@follo.net> Date: Tue, 6 Oct 1998 02:45:37 +0200 From: Eivind Eklund To: Brett Glass , chat@FreeBSD.ORG Subject: Re: Pascal for Linux won't work on FreeBSD.... Why? References: <4.1.19981005170436.04226870@mail.lariat.org> <4.1.19981005170436.04226870@mail.lariat.org> <19981006014611.35325@follo.net> <4.1.19981005180601.041b4e00@mail.lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <4.1.19981005180601.041b4e00@mail.lariat.org>; from Brett Glass on Mon, Oct 05, 1998 at 06:13:51PM -0600 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Oct 05, 1998 at 06:13:51PM -0600, Brett Glass wrote: > At 01:46 AM 10/6/98 +0200, Eivind Eklund wrote: > > >First guesses: You've not loaded the Linux emulator, or it is trying > >to execute more ELF binaries after having run that one. > > Turns out it was a little more complex than that, but I managed to > get it to run. However, it generated code that the FreeBSD version of > as didn't like for some reason. For example, when I entered the program > > program Hello; > begin > Writeln('Hello, world!'); > end. > > it spewed a whole bunch of bogus output (see below) and then died. Is > there something wrong that's obvious from what's below? It'd be really > nice to compile some of my old Turbo Pascal to run on FreeBSD. Hmm, it seems it is pushing out the assembly code on stdout/stderr instead of (or in addition to) pushing it to a file, and possibly that it is executing ld incorrectly. Have you tried running linuxktrace (need older kernel, I think) or truss on it? The output from either of this might prove enlightening. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message