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

Bug#894634: marked as done (gcc-7: Missing dependency on g++ ?)



Your message dated Mon, 2 Apr 2018 20:56:09 +0200
with message-id <d1da0edb-56d8-cec3-267d-eff277e1d62f@debian.org>
and subject line Re: Bug#894634: gcc-7: Missing dependency on g++ ?
has caused the Debian Bug report #894634,
regarding gcc-7: Missing dependency on g++ ?
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
894634: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894634
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-7
Version: 7.3.0-14, 7.3.0-12
Severity: important

Hi,

I am unable to compile C++ sources on a fresh Debian install, with
the `cpp` package installed:

> $ cc main.cc
> cc: error trying to exec 'cc1plus': execvp: No such file or directory

Investigating with `strace -e trace=process -f cc main.cc` confirms that
GCC tries to run a command involving cc1plus and fails to find it in $PATH.

Installing build-essential resulted in g++-7 being installed, which
“fixed” the problem, so it looks like there are missing dependencies
in whichever package provides cc.


Best,

  nicoo

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-7 depends on:
ii  binutils      2.30-8
ii  cpp-7         7.3.0-14
ii  gcc-7-base    7.3.0-14
ii  libc6         2.27-2
ii  libcc1-0      8-20180321-1
ii  libgcc-7-dev  7.3.0-14
ii  libgcc1       1:8-20180321-1
ii  libgmp10      2:6.1.2+dfsg-3
ii  libisl19      0.19-1
ii  libmpc3       1.1.0-1
ii  libmpfr6      4.0.1-1
ii  libstdc++6    8-20180321-1
ii  zlib1g        1:1.2.8.dfsg-5

Versions of packages gcc-7 recommends:
ii  libc6-dev  2.27-2

Versions of packages gcc-7 suggests:
pn  gcc-7-doc         <none>
pn  gcc-7-locales     <none>
pn  gcc-7-multilib    <none>
pn  libasan4-dbg      <none>
pn  libatomic1-dbg    <none>
pn  libcilkrts5-dbg   <none>
pn  libgcc1-dbg       <none>
pn  libgomp1-dbg      <none>
pn  libitm1-dbg       <none>
pn  liblsan0-dbg      <none>
pn  libmpx2-dbg       <none>
pn  libquadmath0-dbg  <none>
pn  libtsan0-dbg      <none>
pn  libubsan0-dbg     <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
On 02.04.2018 19:09, Nicolas Braud-Santoni wrote:
> Package: gcc-7
> Version: 7.3.0-14, 7.3.0-12
> Severity: important
> 
> Hi,
> 
> I am unable to compile C++ sources on a fresh Debian install, with
> the `cpp` package installed:
> 
>> $ cc main.cc
>> cc: error trying to exec 'cc1plus': execvp: No such file or directory
> 
> Investigating with `strace -e trace=process -f cc main.cc` confirms that
> GCC tries to run a command involving cc1plus and fails to find it in $PATH.
> 
> Installing build-essential resulted in g++-7 being installed, which
> “fixed” the problem, so it looks like there are missing dependencies
> in whichever package provides cc.

cpp is not the C++ compiler, it's the C preprocessor. you want to install g++.

--- End Message ---

Reply to: