Results 1 to 8 of 8

Thread: Where's your cc1 ?

  1. #1
    Join Date
    Sep 2007
    Beans
    6

    Where's your cc1 ?

    I'm using a freshly installed 7.04 system,with gcc and cpp installed but I'm unable to compile a simple C-programm:

    m12@ubuntu:~$ gcc -v test.c
    Es werden eingebaute Spezifikationen verwendet.
    Ziel: i486-linux-gnu
    Konfiguriert mit: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
    Thread-Modell: posix
    gcc-Version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
    cc1 -quiet -v test.c -quiet -dumpbase test.c -mtune=generic -auxbase test -version -fstack-protector -fstack-protector -o /tmp/ccZvzQL3.s
    gcc: error trying to exec 'cc1': execvp: No such file or directory

    Tha's true: I do not have "cc1" on my system and it is not part of the
    cpp package:

    $dpkg -L cpp-4.1
    /.
    /usr
    /usr/share
    /usr/share/doc
    /usr/share/man
    /usr/share/man/man1
    /usr/share/man/man1/cpp-4.1.1.gz
    /usr/bin
    /usr/bin/cpp-4.1
    /usr/lib
    /usr/lib/gcc
    /usr/lib/gcc/i486-linux-gnu
    /usr/lib/gcc/i486-linux-gnu/4.1.2
    /usr/share/doc/cpp-4.1
    /usr/share/man/man1/i486-linux-gnu-cpp-4.1.1.gz
    /usr/bin/i486-linux-gnu-cpp-4.1


    The corresponding debian-package (cpp-4.1 from stable) comprises the file
    /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1


    Does anyone have the "cc1" on ubuntu 7.04? If so, where did you get if from ?

    Here's what I have:

    ii cpp 4.1.2-1ubuntu1
    ii cpp-4.1 4.1.2-0ubuntu4
    ii gcc 4.1.2-1ubuntu1
    ii gcc-4.1 4.1.2-0ubuntu4
    ii gcc-4.1-base 4.1.2-0ubuntu4


    -Martin

  2. #2
    Join Date
    May 2007
    Location
    Paris, France
    Beans
    927
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: Where's your cc1 ?

    I probably got it through the build-essential metapackage.
    Not even tinfoil can save us now...

  3. #3
    Join Date
    Apr 2007
    Beans
    Hidden!
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Where's your cc1 ?

    Code:
    apt-file search cc1 | grep 'cc1$'
    gives
    Code:
    bcc: usr/lib/bcc/bcc-cc1
    cpp-3.3: usr/lib/gcc-lib/i486-linux-gnu/3.3.6/cc1
    cpp-3.4: usr/lib/gcc/i486-linux-gnu/3.4.6/cc1
    cpp-4.1: usr/lib/gcc/i486-linux-gnu/4.1.2/cc1
    gcc-2.95: usr/lib/gcc-lib/i486-linux-gnu/2.95.4/cc1
    gcc-avr: usr/libexec/gcc/avr/4.1.0/cc1
    gcc-h8300-hms: usr/lib/gcc/h8300-hitachi-coff/3.4.6/cc1
    gcc-m68hc1x: usr/lib/gcc-lib/m68hc11/3.3.6-m68hc1x-20060122/cc1
    gcc-snapshot: usr/lib/gcc-snapshot/libexec/gcc/i486-linux-gnu/4.3.0/cc1
    gcc272: usr/lib/gcc-lib/i486-linux-gnu/2.7.2.3/cc1
    ghdl: usr/lib/ghdl/libexec/gcc/i486-linux-gnu/4.1.1/cc1
    ...
    Since gcc -v gives me gcc version 4.1.2 on my machine, I guess it has to be the cpp-4.1 package.

    The build-essential package contains the gcc package which contains the cpp package, so installing either build-essential or gcc will give you the cpp package as well. Hope this helps.
    Please mark threads as SOLVED ( if solved ) so other people can find solutions faster.

  4. #4
    Join Date
    Sep 2007
    Beans
    6

    Re: Where's your cc1 ?

    Quote Originally Posted by PaulFr View Post
    Code:
    apt-file search cc1 | grep 'cc1$'
    gives
    Code:
    ...
    cpp-4.1: usr/lib/gcc/i486-linux-gnu/4.1.2/cc1
    ...
    ...
    Since gcc -v gives me gcc version 4.1.2 on my machine, I guess it has to be the cpp-4.1 package.

    The build-essential package contains the gcc package which contains the cpp package, so installing either build-essential or gcc will give you the cpp package as well. Hope this helps.
    Which cpp-4.12 version are you using? I have gcc (and cpp) installed
    but cannot find a trace of cc1 on my system.
    Code:
    root@ubuntu:~# dpkg -s cpp-4.1
    Package: cpp-4.1
    Status: install ok installed
    Priority: optional
    Section: interpreters
    Installed-Size: 5208
    Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: i386
    Source: gcc-4.1
    Version: 4.1.2-0ubuntu4
    Replaces: gcj-4.1 (<< 4.1.1)
    Depends: gcc-4.1-base (= 4.1.2-0ubuntu4), libc6 (>= 2.5-0ubuntu1)
    Suggests: gcc-4.1-locales (>= 4.1.2)
    Conflicts: gcj-4.1 (<< 4.1.1)
    Description: The GNU C preprocessor
     A macro processor that is used automatically by the GNU C compiler
     to transform programs before actual compilation.
     .
     This package has been separated from gcc for the benefit of those who
     require the preprocessor but not the compiler.
    Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
    This package does not contain cc1 as verified by dpkg:
    Code:
    root@ubuntu:~# dpkg -L cpp-4.1
    /.
    /usr
    /usr/share
    /usr/share/doc
    /usr/share/man
    /usr/share/man/man1
    /usr/share/man/man1/cpp-4.1.1.gz
    /usr/bin
    /usr/bin/cpp-4.1
    /usr/lib
    /usr/lib/gcc
    /usr/lib/gcc/i486-linux-gnu
    /usr/lib/gcc/i486-linux-gnu/4.1.2
    /usr/share/doc/cpp-4.1
    /usr/share/man/man1/i486-linux-gnu-cpp-4.1.1.gz
    /usr/bin/i486-linux-gnu-cpp-4.1
    In my opinion, cc1 SHOULD be installed by cpp-4.1 (like it is on your system) , but it does not seem to be part of the 4.1.2-0ubuntu4 package.

  5. #5
    Join Date
    Jun 2006
    Location
    Florida
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Where's your cc1 ?

    Quote Originally Posted by Martin12 View Post

    In my opinion, cc1 SHOULD be installed by cpp-4.1 (like it is on your system) , but it does not seem to be part of the 4.1.2-0ubuntu4 package.
    Code:
    tom@ourhome:~$ dpkg -s cpp-4.1
    Package: cpp-4.1
    Status: install ok installed
    Priority: optional
    Section: interpreters
    Installed-Size: 5208
    Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: i386
    Source: gcc-4.1
    Version: 4.1.2-0ubuntu4
    Replaces: gcj-4.1 (<< 4.1.1)
    Depends: gcc-4.1-base (= 4.1.2-0ubuntu4), libc6 (>= 2.5-0ubuntu1)
    Suggests: gcc-4.1-locales (>= 4.1.2)
    Conflicts: gcj-4.1 (<< 4.1.1)
    Description: The GNU C preprocessor
     A macro processor that is used automatically by the GNU C compiler
     to transform programs before actual compilation.
     .
     This package has been separated from gcc for the benefit of those who
     require the preprocessor but not the compiler.
    Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
    tom@ourhome:~$ dpkg -L cpp-4.1
    /.
    /usr
    /usr/share
    /usr/share/doc
    /usr/share/man
    /usr/share/man/man1
    /usr/share/man/man1/cpp-4.1.1.gz
    /usr/bin
    /usr/bin/cpp-4.1
    /usr/lib
    /usr/lib/gcc
    /usr/lib/gcc/i486-linux-gnu
    /usr/lib/gcc/i486-linux-gnu/4.1.2
    /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1
    /usr/share/doc/cpp-4.1
    /usr/share/man/man1/i486-linux-gnu-cpp-4.1.1.gz
    /usr/bin/i486-linux-gnu-cpp-4.1
    Maybe you should try re-install of cpp-4.1?

  6. #6
    Join Date
    Sep 2007
    Beans
    6

    Re: Where's your cc1 ? [solved]

    solved by forcing a re-install of the cpp packe.
    I still don't know why cc1 got removed from my package database (dpkg did not list it)

  7. #7
    Join Date
    Mar 2011
    Beans
    2

    Re: Where's your cc1 ?

    gcc -print-prog-name=cc1

  8. #8
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Where's your cc1 ?

    May the thread rest in peace.
    Forum DOs and DON'Ts
    Please use CODE tags - Including your email address in a post is not recommended
    Never assume that the information provided by Dr Google is up-to-date or relevant.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •