From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,35c6c40592f00b46 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-04 23:39:19 PST Path: bga.com!news.sprintlink.net!pipex!uunet!zib-berlin.de!informatik.tu-muenchen.de!lrz-muenchen.de!news.informatik.uni-muenchen.de!news.muc.de!waporo.muc.de!waporo!re From: re@waporo.muc.de (Rolf Ebert) Newsgroups: comp.lang.ada Subject: Re: Error compiling GNAT 2.00 on Linux Date: 4 Dec 1994 22:51:22 +0100 Organization: Rolf Ebert Distribution: world Message-ID: References: <3br0dh$rme@lastactionhero.rs.itd.umich.edu> In-reply-to: dreish@umich.edu's message of 3 Dec 1994 23:53:21 GMT Date: 1994-12-04T22:51:22+01:00 List-Id: >>>>> "DR" == Daniel Reish writes: DR> While attempting to compile GNAT 2.00 on my Linux machine, I ran DR> into the following error: You must apply the patches first, that you should have got with your last binary distribution. Find the ones for gnat-2.00 at the end of this post. DR> a-misc.o(.text+0x296): undefined reference to `setjmp' This is the very old and known problem of inconsisties between the different libc implementations on Linux and SunOS. DR> This was after entering the ada/ subdirectory in the main DR> gcc-2.6.2 directory. The line it stops at is the one in which DR> it links those 30 or 40 object files together into ./gnat1. DR> Does anyone know what might be going wrong? I new to Ada, so I DR> don't really know where to start looking, myself. Since I would DR> imagine this is of fairly general interest, since there isn't a DR> precompiled GNAT 2.00 for Linux yet, please respond by followup. DR> Thanks. I have a running gnat-2.00 on my Linux box. With a UUCP only access to the internet I cannot upload it directly from my home machine. Tomorrow (Monday) morning I'll take 2 floppies to a friends machine, from where I'll put it on sunsite and tsx-11. After that I'll send out an announcement in comp.os.linux.announce. DR> ________________________________________________________________________ DR> Daniel Reish R&D Programmer Hours: Usually on DR> weekdays, sometimes Packard Business Systems, Inc. on weekends, DR> mostly during the 320 S. Main St. day. (No guarantees.) Ann DR> Arbor, MI 48104 Rolf Rolf Ebert Beratung fuer Energiesysteme und Informatik Erich Kaestner Str. 17 Conseil en Energetique et Informatique D - 80797 Muenchen (Team Ada) Tel.: +49-89-30.77.88.00 Germany Fax.: +49-89-30.77.91.00 *** a-misc.c.orig Wed Nov 30 19:38:51 1994 --- a-misc.c Fri Dec 2 18:43:53 1994 *************** *** 25,30 **** --- 25,31 ---- #include "config.h" #include #include + #include #include "tree.h" #include "rtl.h" #include "expr.h" *** a-trans3.c~ Fri Dec 2 18:43:56 1994 --- a-trans3.c Fri Dec 2 18:45:22 1994 *************** *** 593,599 **** --- 593,603 ---- #ifdef WINNT ("_setjmp", NULL_PTR, #else + #ifdef __linux__ + ("__setjmp", NULL_PTR, + #else ("setjmp", NULL_PTR, + #endif #endif build_function_type (integer_type_node, tree_cons (NULL_TREE, jmpbuf_ptr_type, endlink)), *** gnat1drv.adb~ Fri Dec 2 18:43:54 1994 --- gnat1drv.adb Fri Dec 2 18:46:00 1994 *************** *** 79,85 **** Write_Eol; Write_Str ("NYU GNAT Compiler Version "); Write_Str (Gnat_Version_String); ! Write_Str (" (C) Copyright NYU, 1992,1993,1994"); Write_Eol; end if; --- 79,85 ---- Write_Eol; Write_Str ("NYU GNAT Compiler Version "); Write_Str (Gnat_Version_String); ! Write_Str (" Linux pl. 1 (C) Copyright NYU, 1992,1993,1994"); Write_Eol; end if; -- Rolf Ebert Beratung fuer Energiesysteme und Informatik Erich Kaestner Str. 17 Conseil en Energetique et Informatique D - 80797 Muenchen (Team Ada) Tel.: +49-89-30.77.88.00 Germany Fax.: +49-89-30.77.91.00 -- Rolf Ebert Beratung fuer Energiesysteme und Informatik Erich Kaestner Str. 17 Conseil en Energetique et Informatique D - 80797 Muenchen (Team Ada) Tel.: +49-89-30.77.88.00 Germany Fax.: +49-89-30.77.91.00