Bug 151716 - gcc(1) fail with internal compiler error when using -finput-charset option
Summary: gcc(1) fail with internal compiler error when using -finput-charset option
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 15:50 UTC by Sylvain Defresne
Modified: 2018-05-20 23:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Defresne 2010-10-25 15:50:02 UTC
When invoking gcc with the -finput-charset=iso-8859-1 option, it fails with an internal compiler error. This can be easily reproduced by trying to compile an empty source file with this option.

Error is :
  $ echo > empty.cpp
  $ gcc -c empty.cpp -finput-charset=iso-8859-1
    cc1plus: internal compiler error: Segmentation fault: 11
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
  $ gcc -v
    Using built-in specs.
    Target: amd64-undermydesk-freebsd
    Configured with: FreeBSD/amd64 system compiler
    Thread model: posix
    gcc version 4.2.1 20070719  [FreeBSD]

How-To-Repeat: echo > empty.cpp
gcc -c empty.cpp -finput-charset=iso-8859-1
Comment 1 Alexander Best freebsd_committer 2010-10-26 22:48:32 UTC
i'm getting the following under HEAD (r214249; amd64):

taku% gcc -c empty.cpp -finput-charset=iso-8859-15
cc1plus: error: no iconv implementation, cannot convert from iso-8859-15 to UTF-8

otaku% locale
LANG=
LC_CTYPE=de_DE.ISO8859-15
LC_COLLATE=en_GB.ISO8859-15
LC_TIME=de_DE.ISO8859-15
LC_NUMERIC=de_DE.ISO8859-15
LC_MONETARY=de_DE.ISO8859-15
LC_MESSAGES=en_GB.ISO8859-15
LC_ALL=

otaku% gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

cheers.
alex

-- 
a13x
Comment 2 Alexander Best freebsd_committer 2011-02-15 00:07:01 UTC
State Changed
From-To: open->suspended

Mark suspended. Awaiting patches.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:52:14 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"