[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#265498: marked as done (gcc-3.3: does not define macros like __i386__ or __ELF__ anymore)



Your message dated Fri, 13 Aug 2004 20:10:02 +0200
with message-id <20040813181002.GB27572@niederglatt.lugs.ch>
and subject line Bug#265498: gcc-3.3: does not define macros like __i386__ or __ELF__ anymore
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 13 Aug 2004 12:21:52 +0000
>From pfrauenf@math.ethz.ch Fri Aug 13 05:21:52 2004
Return-path: <pfrauenf@math.ethz.ch>
Received: from frege-d-math-north-g-west.math.ethz.ch (frege.math.ethz.ch) [129.132.145.3] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bvb4B-0001ja-00; Fri, 13 Aug 2004 05:21:51 -0700
Received: from herodot.math.ethz.ch (herodot [129.132.146.8])
	by frege.math.ethz.ch (8.12.10/8.12.10) with ESMTP id i7DCLmEv012986
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO);
	Fri, 13 Aug 2004 14:21:49 +0200
Received: from pfrauenf by herodot.math.ethz.ch with local (Exim 4.34)
	id 1Bvb43-0001cE-Hl; Fri, 13 Aug 2004 14:21:43 +0200
Date: Fri, 13 Aug 2004 14:21:43 +0200
From: Philipp Frauenfelder <pfrauenf@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-3.3: does not define macros like __i386__ or __ELF__ anymore
Message-ID: <[🔎] 20040813122143.GA5439@setup-4.math.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
X-Reportbug-Version: 2.64
X-Operating-System: Debian GNU/Linux herodot 2.6.7-5-amd64-k8 
User-Agent: Mutt/1.5.6+20040803i
Sender: Philipp Frauenfelder <pfrauenf@math.ethz.ch>
Received-SPF: none (frege: domain of pfrauenf@math.ethz.ch does not designate permitted sender hosts)
X-Virus-Scanned: by amavisd-new at math.ethz.ch
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by frege.math.ethz.ch id i7DCLmEv012986
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: gcc-3.3
Version: 1:3.3.4-7
Severity: normal

Hi

In earlier releases (sorry, I do not have the information
available when that was -- a few weeks ago?), the compiler
defined macros like __i386__ or __ELF__ which could be used in
the source with

#ifdef __i386__
// blah
#endif

The current release does not produce these symbols anymore
(sorry for the german locale):

$ /usr/bin/g++ -v  -c -o file.cc
Lese Spezifikationen von /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Konfiguriert mit: ../src/configure -v --enable-languages=3Dc,c++,java,f77=
,pascal,objc,ada,treelang --prefix=3D/usr --mandir=3D/usr/share/man --inf=
odir=3D/usr/share/info --wwith-gxx-include-dir=3D/usr/include/c++/3.3 --e=
nable-shared --with-system-zlib --enable-nls --without-included-gettext -=
-enable-__cxa_atexit --enable-clocale=3Dgnu --enable-debug --enable-java-=
gc=3Dboehm --enable-java-awt=3Dxlib --enable-objc-gc i486-linux
Thread-Modell: posix
gcc-Version 3.3.4 (Debian 1:3.3.4-7)
 /usr/lib/gcc-lib/i486-linux/3.3.4/cc1plus -quiet -v -I../.. -D__GNUC__=3D=
3 -D__GNUC_MINOR__=3D3 -D__GNUC_PATCHLEVEL__=3D4 -D_GNU_SOURCE -DDEBUG ..=
/../function/vectorR.cc -D__GNUG__=3D3 -quiet -dumpbase vectorR.cc -auxba=
se-strip ../../builds/function/gcc-3/debug/vectorR.o -g -O0 -Wall -versio=
n -ftemplate-depth-100 -fPIC -fno-inline -fPIC -o /tmp/ccNpypTi.s
GNU C++ version 3.3.4 (Debian 1:3.3.4-7) (i486-linux)
        compiled by GNU C version 3.3.4 (Debian 1:3.3.4-7).
GGC heuristics: --param ggc-min-expand=3D98 --param ggc-min-heapsize=3D12=
8193
nicht vorhandenes Verzeichnis =BB/usr/i486-linux/include=AB wird ignorier=
t
#include "..." Suche beginnt hier:
#include <...> Suche beginnt hier:
 ../..
 /usr/include/c++/3.3
 /usr/include/c++/3.3/i486-linux
 /usr/include/c++/3.3/backward
 /usr/local/include
 /usr/lib/gcc-lib/i486-linux/3.3.4/include
 /usr/include
Ende der Suchliste.
 as -V -Qy -o ../../builds/function/gcc-3/debug/vectorR.o /tmp/ccNpypTi.s
GNU assembler version 2.15 (i386-linux) using BFD version 2.15


A self built compiler (ages ago) gives the following output:

$ /usr/local/bin/g++ -v ....
Reading specs from /usr/local.hg/app/gcc/3.2/lib/gcc-lib/i686-pc-linux-gn=
u/3.2/specs
Configured with: /usr/local.hg/app/gcc/SRC/3.2/gcc-3.2/configure --prefix=
=3D/usr/local.hg/app/gcc/3.2 --enable-threads
Thread model: posix
gcc version 3.2
 /usr/local.hg/app/gcc/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1plus -v -=
I../.. -iprefix /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2/ -D__=
GNUC__=3D3 -D__GNUC_MINOR__=3D2 -D__GNUC_PATCHLEVEL__=3D0 -D__GXX_ABI_VER=
SION=3D102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ =
-D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=3Dposix -D__NO_IN=
LINE__ -D__STDC_HOSTED__=3D1 -D_GNU_SOURCE -Acpu=3Di386 -Amachine=3Di386 =
-Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__PIC_=
_ -D__pic__ -DDEBUG ../../function/vectorR.cc -D__GNUG__=3D3 -D__DEPRECAT=
ED -D__EXCEPTIONS -quiet -dumpbase vectorR.cc -g -O0 -Wall -version -ftem=
plate-depth-100 -fPIC -fno-inline -fPIC -o /tmp/ccTgrKLg.s
GNU CPP version 3.2 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.2 (i686-pc-linux-gnu)
	compiled by GNU C version 3.2.
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/=
3.2/../../../../include/c++/3.2"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/=
3.2/../../../../include/c++/3.2/i686-pc-linux-gnu"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/=
3.2/../../../../include/c++/3.2/backward"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/=
3.2/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/=
3.2/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "/usr/local.hg/app/gcc/3.2/i686-pc-linux-g=
nu/include"
#include "..." search starts here:
#include <...> search starts here:
 ../..
 /usr/local.hg/app/gcc/3.2/include/c++/3.2
 /usr/local.hg/app/gcc/3.2/include/c++/3.2/i686-pc-linux-gnu
 /usr/local.hg/app/gcc/3.2/include/c++/3.2/backward
 /usr/local/include
 /usr/local.hg/app/gcc/3.2/include
 /usr/local.hg/app/gcc/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
 /usr/include
End of search list.
 as -V -Qy -o ../../builds/function/gcc-3/debug/vectorR.o /tmp/ccTgrKLg.s
GNU assembler version 2.15 (i386-linux) using BFD version 2.15

As you can see, it has this long list of defines which are missing in the
current Debian release of unstable.

Regards

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.7-5-amd64-k8
Locale: LANG=3Dde, LC_CTYPE=3Dde (ignored: LC_ALL set to de_CH)

Versions of packages gcc-3.3 depends on:
ii  binutils                    2.15-1       The GNU assembler, linker an=
d bina
ii  cpp-3.3                     1:3.3.4-7    The GNU C preprocessor
ii  gcc-3.3-base                1:3.3.4-7    The GNU Compiler Collection =
(base=20
ii  libc6                       2.3.2.ds1-15 GNU C Library: Shared librar=
ies an
ii  libgcc1                     1:3.4.1-5    GCC support library

-- no debconf information

---------------------------------------
Received: (at 265498-done) by bugs.debian.org; 13 Aug 2004 18:10:06 +0000
>From philipp@frauenfelder-kuerner.ch Fri Aug 13 11:10:06 2004
Return-path: <philipp@frauenfelder-kuerner.ch>
Received: from dhcp-78-214.via-eth.ch (euler.niederglatt.lugs.ch) [192.33.106.214] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BvgVB-0001so-00; Fri, 13 Aug 2004 11:10:06 -0700
Received: from pfrauenf by euler.niederglatt.lugs.ch with local (Exim 3.36 #1 (Debian))
	id 1BvgV9-0007Up-00
	for <265498-done@bugs.debian.org>; Fri, 13 Aug 2004 20:10:03 +0200
Date: Fri, 13 Aug 2004 20:10:02 +0200
From: Philipp Frauenfelder <pfrauenf@debian.org>
To: 265498-done@bugs.debian.org
Subject: Re: Bug#265498: gcc-3.3: does not define macros like __i386__ or __ELF__ anymore
Message-ID: <20040813181002.GB27572@niederglatt.lugs.ch>
References: <[🔎] 20040813122143.GA5439@setup-4.math.ethz.ch> <[🔎] 16668.47870.669995.541828@gargle.gargle.HOWL>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 16668.47870.669995.541828@gargle.gargle.HOWL>
X-Operating-System: Debian GNU/Linux euler 2.6.7 
User-Agent: Mutt/1.5.6+20040803i
Delivered-To: 265498-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Dear Matthias

Am Fri, Aug 13, 2004 at 02:58:38PM +0200 hat Matthias Klose getippert:
> $ g++ -E -dM - </dev/null |fgrep i386
> #define __i386__ 1
> #define i386 1
> #define __i386 1

Oops. I did not know how to find these defines. I always used
the g++ -v and looked at the output. There, I still find what I
need (i386 or amd64 or whatever).

Thanks for the help and sorry for the unnecessary bug report.

Regards
-- 
Philipp      | work: pfrauenf@math.ethz.ch  +41 1 632 60 38
Frauenfelder | home: pfrauenf@debian.org    +41 1 862 73 14
[PGP]        | http://www.math.ethz.ch/~pfrauenf/
Proudly running Debian GNU/Linux. See http://www.debian.org/



Reply to: