Hi Hiro et al, On Wed, 10 Oct 2001 00:58:32 -0500 (CDT) Hironori Ito <hito@students.phsx.ukans.edu> wrote concerning "new PC and gcc": > Hello. I have a question (or request) regarding the new PC we > got. As Konstain pointed out, the RH7.1 also comes with old version of > gcc. Therefore, we can use the compartible gcc in RH7.1 by 'gcc -V > egcs-2.91.66'. I think that the egcs RedHat 7.1 packages comes with a small script that will setup some environment variables that let you select the EGCS compilers rather than the 'Red Hat GCC' ones. Take a look in the doc directory. > The question is whether it is easy to implement to check version of > the RH in the configuration tools (aclocal, automake, autoconf, etc) > of brat/brop/breg/brag, so that the right gcc (2.91.66) is used. In > RH, you can check by looking /proc/version file, or something else. Argh. Reading files in /proc is a very bad thing, since /proc is an image of the system. In most Linux distros, there's a similar file in /etc (the configuration directory): Red Hat Linux /etc/redhat-release Debian GNU/Linux /etc/debian-version Debian GNU/Hurd /etc/debian-version One do a grep on that. As to the use of EGCS on Red Hat 7.1 and the BRAT/BROP/BREG/BRAG/CRASH/... configuration, it's much better to * run the above mention script * set the explicit compiler in the environment and then configure CC='gcc -V egcs-2.91.66' CXX='g++ -V egcs-2.91.66' ./configure ... The same way you would choose a completly different compiler, for example the Solaris native C and C++ compilers CC=cc CXX=CC ./configure or the KCC compilers on Linux CXX=KCC ./configure > If this is possible, then, we should be safely migrate into RH7.1 > without any pains(?). All that said, I believe it better if someone could please change the AFS sysname for the Red Hat 7.1 machines (it's i386_redhat61 - very confusing), and someone would setup automatic build scripts using CRON or someone would take the responsibility of maintaining the installations of BRAT/BROP/BREG/BRAG/CRASH/... on the Red Hat 7.1 machines. Honestly, we don't really need to be able to copy binary files from rcas/rcrs/home institute/... to the pii's, since the amount of compiled user code should not be more than a module or two, now that bratmain is widely used. Ok, ofcourse BRAT/BROP/BREG/BRAG/CRASH/... need to be compiled for the appropiate architecture, but in the case of Linux machines it's a minor thing - however in the case of Solaris, it's a hazzle. > I hope someone will answer this as soon as possible since we already > have 6 PCs sitting around and collecting dusts. If someone want to > test it, try at pii2 since it is already RH7.1. I've compiled ROOT (you might have seen my annoucement on RPMs of ROOT - if not, search roottalk) and BRAT on a Red Hat 7.1 machine recently (1 1/2 week ago) and it worked straight out of the box (least not due to Steve's ongoing corrections to "constness"). On the rcas/rcrs machines we generally keep a source checkout in e.g., ~brahmlib/src/brat-2.1, and do updates in that, and then just a make install. The only thing we need for this to work automatically is for someone to write a CRON job that also gets a AFS token. Yours, Christian Holm Christensen ------------------------------------------- Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 DK-2200 Copenhagen N Cell: (+45) 28 82 16 23 Denmark Office: (+45) 353 25 305 Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b30 : Wed Oct 10 2001 - 09:59:16 EDT