From owner-freebsd-alpha Wed Jul 26 7:26:38 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 9C6F837B9BA for ; Wed, 26 Jul 2000 07:26:29 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA29244; Wed, 26 Jul 2000 10:26:28 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id KAA67521; Wed, 26 Jul 2000 10:26:28 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 26 Jul 2000 10:26:27 -0400 (EDT) To: Taichu Tanaka Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: Linux/alpha emulation available In-Reply-To: <20000726220603N.taichu@ihas.nagoya-u.ac.jp> References: <14717.2828.454006.745321@grasshopper.cs.duke.edu> <20000726220603N.taichu@ihas.nagoya-u.ac.jp> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14718.61754.3971.667147@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Taichu Tanaka writes: > Hello, > > On Tue, 25 Jul 2000 00:04:47 -0400 (EDT), > Andrew Gallatin wrote: > > I have been working on getting the linulator going on FreeBSD/alpha. > > What I have right now is in an alpha-test state. I'm looking for > > feedback on how it works and pointers to important apps to try. > > I've tested the Compaq C compiler and Compaq Fortran. > > Our environment is > 4.1-RC, PC-164LX 21164A 533MHz > linux_base-6.1 > linux_devtools-6.1. > > Result: > Compaq C (ccc-6.2.9.002-2) compiles just fine, with some condition; > > . Compiled executable must be brandelf'ed with "-t Linux". > > . I had to link the objects statically (i.e., with "-static"). > Shared executable claims as > % ./a.out: error in loading shared libraries: libots.so: > ELF file OS ABI invalid. > (But this might be my installation fault...) Odd. It works here: 4.1-RC, UP1000, 600MHz 21264A linux_base-6.1 linux_devtools-6.1. ccc-6.2.9.002-2 cpml-5.0.0 libots-2.2.7 <10:09am>thunder/gallatin:tmp>cat hello.c #include main() { printf("hello world \n"); } <10:09am>thunder/gallatin:tmp>make CC=/compat/linux/usr/bin/ccc hello /compat/linux/usr/bin/ccc -O -pipe hello.c -o hello <10:09am>thunder/gallatin:tmp>./hello hello world <10:09am>thunder/gallatin:tmp>ldd hello hello: libc.so.6.1 => /lib/libc.so.6.1 (0x0000000040004000) libots.so => /usr/lib/libots.so (0x0000000040238000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000160100000) Its probably an installation issue. I just beat on the symlinks until it worked ;) Did you run the /compat/linux/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/create-comp-config.sh script? If I install the rpm with -vvv, I noticed this script was generating error messages. I ran it manually, using /compat/linux/bin/sh. I'm not sure if this helped or not.. > I've checked the performance of the compiler. With my > numerical simulation model, the executable with CCC runs > about 40% faster than that with gcc-2.95.1. > Naturally, the performance is as good as Compaq C with > Linux/Alpha (that I used months ago). Cool! I'm glad to hear it. > I couldn't compile with the Compaq Fortran for Linux > Alpha (cfal-1.0.7), with the shared library problem. > Again this might be my fault in the installation. I'll have to defer to somebody else for testing the fortran compiler. I disavow any knowledge of fortran ;-) > Anyway, > > > If you're interested in producing anything resembling fast code, try > > to get this working. The Tru64 version of this compiler beats gcc > > hands-down & I imagine the linux version also kicks some serious butt. > > my dissatisfaction with the performance of the C compiler is > cleared. Thanks a lot. You're welcome. I"m glad I could help! Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message