bugGNU TeXmacs - Bugs: bug #1780, detection of gcc 3.2

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1780: detection of gcc 3.2

Submitted by:  David Allouche <ddaa>
Submitted on:  Fri 22 Nov 2002 10:56:04 AM UTC  
 
Category: PackagingPriority: 5 - Normal
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: Release: 1.0.0.22
Fixed Release: NoneFixed Release: 
Keywords: 

Mon 30 Dec 2002 01:30:39 PM UTC, comment #3:

Yes, the gcc detection in TeXmacs 1.0.1 works for me (gcc 2.95 and 3.2.2)

Ralf Treinen <treinen>
Project Member
Sat 23 Nov 2002 03:49:52 PM UTC, comment #2:

I think that is it. I tested that option to be available on the older g++ I could find and compile (2.7.2.3).

Patch coming soon.

David Allouche <ddaa>
Project Administrator
Fri 22 Nov 2002 08:56:10 PM UTC, comment #1:

g++ -dumpversion
3.2.1

g++296 -dumpversion
2.96

I think this should solve the problem.

Igor V. Kovalenko <kovalenko>
Fri 22 Nov 2002 10:56:04 AM UTC, original submission:

Some gcc-3.x compilers return complex string when used as "g++ --version", unlike gcc-2.95 which returns a simple version number.

This problem appears in all versions of g++ 3.x shipped by Debian. I was unable to test whether the problem also occurs with the official gcc distribution since I was unable to compile any stock gcc 3.x from source.

Example of string returned by gcc on my system:

$ g++-2.95 --version
g++-2.95

$ g++-3.2 --version
g++-3.2 (GCC) 3.2.1 20020924 (Debian prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ /usr/local/gcc-2.95.3/bin/g++ --version
2.95.3

Proposed work-around: "gcc -v" (sic!) seems to have a more predictible output:

$ /usr/local/gcc-2.95.3/bin/g++ -v
Reading specs from /usr/local/gcc-2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)

$ g++-2.95 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

$ g++-3.2 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20020924 (Debian prerelease)

So "$CXX -v 2>&1 | tail -1 | cut -f3 -d' '" might do the trick...

Maybe there is a cleaner solution.

David Allouche <ddaa>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 03 Jan 2003 02:54:04 PM UTCddaaStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Sun 24 Nov 2002 05:37:00 PM UTCddaaCategoryNone=>(Error - Not Found)
  Item GroupInstall=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1