Skip Menu |

This queue is for tickets about the Encode-Detect CPAN distribution.

Report information
The Basics
Id: 102871
Status: rejected
Priority: 0/
Queue: Encode-Detect

People
Owner: Nobody in particular
Requestors: dave [...] 2050design.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Possible bug on install
Date: Wed, 18 Mar 2015 18:19:59 -0500
To: bug-Encode-Detect [...] rt.cpan.org
From: "David F. Underwood | 2050 Design" <dave [...] 2050design.net>
Executed the following as root on a debian 7 system, build failed: cpan[3]> install Encode::Detect Running install for module 'Encode::Detect' Checksum for /root/.cpan/sources/authors/id/J/JG/JGMYERS/Encode-Detect-1.01.tar.gz ok 'YAML' not installed, will not store persistent state Configuring J/JG/JGMYERS/Encode-Detect-1.01.tar.gz with Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Encode-Detect' version '1.01' JGMYERS/Encode-Detect-1.01.tar.gz /usr/bin/perl Build.PL --installdirs site -- OK Running Build for J/JG/JGMYERS/Encode-Detect-1.01.tar.gz Building Encode-Detect cc -Isrc -I/usr/lib/perl/5.14/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/nsSJISProber.o src/nsSJISProber.cpp cc: error trying to exec 'cc1plus': execvp: No such file or directory error building src/nsSJISProber.o from 'src/nsSJISProber.cpp' at /usr/share/perl/5.14/ExtUtils/CBuilder/Base.pm line 177. JGMYERS/Encode-Detect-1.01.tar.gz ./Build -- NOT OK Failed during this command: JGMYERS/Encode-Detect-1.01.tar.gz : make NO cpan[4]> -- ------------------------------ David F. Underwood, Ph.D. 2050 Design
As stated, requires GNU c++ compiler.
On 2015-03-18 18:02:11, JGMYERS wrote: Show quoted text
> As stated, requires GNU c++ compiler.
Is it possible to detect this from within Build.PL and fail gracefully? (that is, exit(0) without making a Build file, with a relevant error message printed to stderr)
On 2015-03-18 21:02:11, JGMYERS wrote: Show quoted text
> As stated, requires GNU c++ compiler.
Not exactly, it works also with clang++.
On Wed Mar 18 22:24:28 2015, ETHER wrote: Show quoted text
> Is it possible to detect this from within Build.PL and fail > gracefully? (that is, exit(0) without making a Build file, with a > relevant error message printed to stderr)
The mechanism to compile with a C++ compiler is a kludge, relying on obscure gcc command-line options. I am unaware of any alternatives supported by the build infrastructure.