• Bug#265498: gcc-3.3: does not define macros like __i386__ or __ELF__ an

    From Philipp Frauenfelder@1:229/2 to All on Fri Aug 13 14:40:10 2004
    From: [email protected]

    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=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --wwith-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls -
    -without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --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__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=4 -D_GNU_SOURCE -DDEBUG ../../function/vectorR.cc -D__GNUG__=3 -quiet -dumpbase vectorR.cc -auxbase-strip ../../builds/function/gcc-3/debug/
    vectorR.o -g -O0 -Wall -version -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=98 --param ggc-min-heapsize=128193
    nicht vorhandenes Verzeichnis �/usr/i486-linux/include� wird ignoriert
    #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-gnu/3.2/specs
    Configured with: /usr/local.hg/app/gcc/SRC/3.2/gcc-3.2/configure --prefix=/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__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__
    -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__PIC__ -D__pic__ -
    DDEBUG ../../function/vectorR.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase vectorR.cc -g -O0 -Wall -version -ftemplate-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-gnu/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=de, LC_CTYPE=de (ignored: LC_ALL set to de_CH)

    Versions of packages gcc-3.3 depends on:
    ii binutils 2.15-1 The GNU assembler, linker and 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 ii libc6 2.3.2.ds1-15 GNU C Library: Shared libraries an ii libgcc1 1:3.4.1-5 GCC support library

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Matthias Klose@1:229/2 to Philipp Frauenfelder on Fri Aug 13 15:10:12 2004
    From: [email protected]

    Philipp Frauenfelder writes:
    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

    unreproducible for me:

    $ g++ -E -dM - </dev/null |fgrep i386
    #define __i386__ 1
    #define i386 1
    #define __i386 1


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)