Path: news.cs.au.dk!not-for-mail From: Manmathan Muthukumarapillai Newsgroups: comp.lang.beta Subject: Re: Beta on Linux trouble Date: 10 Dec 1998 19:21:53 -0000 Organization: Mjolner Informatics ApS, Denmark Lines: 123 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19981210192153.11948.qmail@noatun.mjolner.dk> Reply-To: Manmathan Muthukumarapillai NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 913317736 8371 255.255.255.255 (10 Dec 1998 19:22:16 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 10 Dec 1998 19:22:16 GMT Xref: news.cs.au.dk comp.lang.beta:11747 Dear Phil Malin, Here is a cut-and-paste from the FAQ: ---------------------------------------------------------------------------- * Lx04) Using the Mjølner System with RedHat 5 and other glibc 2 based Linux-systems. This is intended for people using the Mjølner System, release 4.1, with RedHat 5 and other glibc 2 based systems. What are the symptoms of the problem: 1. The linking phase of the compiler fails. 2. The tools (Sif, Frigg, ..) will not start: they core-dump immediately. To correct the problems, do the following four steps: 1. Set the enviroment variable libXm_PATH: libXm_PATH should refer to the directories where the libXm libraries are loacated. If you use the lesstif package included on the Mjølner System r4.1 CD-ROM then it should be: /lib e.g. /usr/local/lesstif/lib. If you use a motif or another lesstif installation then point it to where the libXm libraries are installed. 2. Create two empty object files crtbegin.o and crtend.o and place them inside /usr/lib/. You can do it in the following way: echo "manmathan1 () {}\n" > crtbegin.c echo "manmathan2 () {}\n" > crtend.c gcc -c crtbegin.c crtend.c mv crtbegin.o crtend.o /usr/lib/ 3. Set the enviroment variable BETALINKOPTIONS to: -L/usr/X11/lib -L$libXm_PATH -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -dc -dp -Bstatic -X From bash: export BETALINKOPTIONS="-L/usr/X11/lib -L$libXm_PATH -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -dc -dp -Bstatic -X" From tcsh: setenv BETALINKOPTIONS="-L/usr/X11/lib -L$libXm_PATH -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -dc -dp -Bstatic -X" 4. Edit the two environment configuration scripts located in the ~beta/configuration folder by commenting out the LD_LIBRARY_PATH settings by typing a #-sign in front: in env.sh, line 171 in env.csh, line 190 Please email any problems to: support@mjolner.dk ---------------------------------------------------------------------------- Very sorry for the late reply. Sincerely, Manmathan Muthukumarapillai / Mjolner Informatics (mannan@mjolner.dk) +++++++++++++++++++ BETA information Sources ++++++++++++++++++++++++ + Mjolner Informatics | Phone: +45 8620 2000 + + Science Park Aarhus | Direct: +45 8620 2011 local 2572 + + Gustav Wieds Vej 10 | Fax: +45 8620 1222 + + DK-8000, Aarhus C, Denmark | E-mail: info@mjolner.com + + WWW : http://www.mjolner.com -and- http://www.daimi.aau.dk/~beta + + FAQ : http://www.daimi.aau.dk/~beta/FAQ News: comp.lang.beta + + News: comp.lang.beta + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Phil Malin wrote: > Hi all. > > I've recently downloaded the personal edition of Beta for Linux and am > having trouble getting it going. I'm trying to compile the > HelloWorld.bet example and get the following compiler output: > > ---- > > [whitedove]/usr/home/psm/src/beta% beta HelloWorld.bet > Mjolner BETA Compiler version 5.3(4) for Linux (Intel > 386/486/586/Pentium) (elf) > Target machine type linux > Building dependency graph for: 'HelloWorld' ... > Translating fragments ... > Linking > Object program on file: HelloWorld > shell-init: could not get current directory: > job-working-directory: could not get current directory: (T > @(T > @ > job-working-directory: could not get current directory: (T > @(T > @ > [whitedove]/usr/home/psm/src/beta% > > ---- > > It does produce an executable but when I run it it core dumps. If > I compile with the --static flag it produces the same output as above > but it works ok. Has anyone else had this happen? > > One thing that happened, though, is originally it couldn't find the > crtbegin.o or crtend.o files in /usr/lib. I created soft links in > this directory to where they did exist, > > /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/crtxxxxx.o > > I'm really not sure about the ramifications of doing this. Has anyone > got any suggestions? Thanks in advance for any help. > > Cheers. > > Phil Malin, Senior Systems Engineer > Research and Technology Group, Melbourne IT > 207 Bouverie St, Carlton, Victoria, Australia 3053 > ph : +61-3-9344-9379 fax: +61-3-9347-9473