Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620764 - dev-lang/spidermonkey-24.2.0-r4 : /.../Intl.cpp:1001:83: error: invalid conversion from 'const jschar* {aka const short unsigned int*}' to 'const UChar* {aka const char16_t*}' [-fpermissive]
Summary: dev-lang/spidermonkey-24.2.0-r4 : /.../Intl.cpp:1001:83: error: invalid conve...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-04 08:18 UTC by Toralf Förster
Modified: 2017-08-26 17:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.99 KB, text/plain)
2017-06-04 08:18 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,7.34 KB, application/x-bzip)
2017-06-04 08:18 UTC, Toralf Förster
Details
dev-lang:spidermonkey-24.2.0-r4:20170603-194116.log (dev-lang:spidermonkey-24.2.0-r4:20170603-194116.log,72.66 KB, text/plain)
2017-06-04 08:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,311.99 KB, text/plain)
2017-06-04 08:19 UTC, Toralf Förster
Details
environment (environment,150.45 KB, text/plain)
2017-06-04 08:19 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,52.12 KB, application/x-bzip)
2017-06-04 08:19 UTC, Toralf Förster
Details
Patch to change jschar to char16_t (file_620764.txt,46 bytes, patch)
2017-06-20 09:29 UTC, Luigi 'Comio' Mantellini
Details | Diff
Patch to change jschar to char16_t (patch.patch,1.79 KB, patch)
2017-06-20 09:30 UTC, Luigi 'Comio' Mantellini
Details | Diff
Patch to change jschar to char16_t (patch.patch,1.78 KB, patch)
2017-06-20 09:51 UTC, Luigi 'Comio' Mantellini
Details | Diff
spidermonkey-24-Intl-cpp.patch (Intl.cpp.patch,4.50 KB, patch)
2017-06-25 09:42 UTC, Luigi 'Comio' Mantellini
Details | Diff
spidermonkey-24-Intl-cpp.patch (spidermonkey-24-Intl-cpp.patch,4.48 KB, patch)
2017-06-25 09:51 UTC, Luigi 'Comio' Mantellini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-06-04 08:18:47 UTC
x86_64-pc-linux-gnu-g++ -o Intl.o -c  -I./dist/system_wrappers_js -include ./config/gcc_hidden.h -DNO_NSPR_10_SUPPORT -DIMPL_MFBT -DEXPORT_JS_API -DUSE_ZLIB -I./../../mfbt/double-conversion  -I. -I. -I./dist/include  -I/usr/include/nspr      -I. -I./assembler -I./yarr  -fPIC  -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null -Wsign-compare -Wno-invalid-offsetof -Wcast-align -Werror=terminate -O2 -pipe -march=native -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe  -DNDEBUG -DTRIMMED  -fno-omit-frame-pointer  -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1   -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MP -MF .deps/Intl.o.pp  /var/tmp/portage/dev-lang/spidermonkey-24.2.0-r4/work/mozjs-24.2.0/js/src/builtin/Intl.cpp
/var/tmp/portage/dev-lang/spidermonkey-24.2.0-r4/work/mozjs-24.2.0/js/src/builtin/Intl.cpp: In function 'bool intl_CompareStrings(JSContext*, UCollator*, JS::HandleString, JS::HandleString, JS::MutableHandleValue)':
/var/tmp/portage/dev-lang/spidermonkey-24.2.0-r4/work/mozjs-24.2.0/js/src/builtin/Intl.cpp:1001:83: error: invalid conversion from 'const jschar* {aka const short unsigned int*}' to 'const UChar* {aka const char16_t*}' [-fpermissive]
 CollationResult uresult = ucol_strcoll(coll, chars1, length1, chars2, length2);
                                                                              ^
In file included from ./dist/system_wrappers_js/unicode/ucol.h:3:0,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-systemd_20170527-174218

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
  [2]   ruby22 (with Rubygems)
java-config:
The following VMs are available for generation-2:
Comment 1 Toralf Förster gentoo-dev 2017-06-04 08:18:50 UTC
Created attachment 475148 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-06-04 08:18:53 UTC
Created attachment 475150 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-06-04 08:18:57 UTC
Created attachment 475152 [details]
dev-lang:spidermonkey-24.2.0-r4:20170603-194116.log
Comment 4 Toralf Förster gentoo-dev 2017-06-04 08:19:01 UTC
Created attachment 475154 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-06-04 08:19:04 UTC
Created attachment 475156 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-06-04 08:19:07 UTC
Created attachment 475158 [details]
etc.portage.tbz2
Comment 7 Luigi 'Comio' Mantellini 2017-06-20 09:29:54 UTC
Created attachment 477308 [details, diff]
Patch to change jschar to char16_t

I propose the attached patch. The issue is from a strict check on type conversion.
btw, should be solved a better way.
Comment 8 Luigi 'Comio' Mantellini 2017-06-20 09:30:41 UTC
Created attachment 477310 [details, diff]
Patch to change jschar to char16_t
Comment 9 Luigi 'Comio' Mantellini 2017-06-20 09:51:32 UTC
Created attachment 477312 [details, diff]
Patch to change jschar to char16_t
Comment 10 Luigi 'Comio' Mantellini 2017-06-25 09:42:40 UTC
Created attachment 477936 [details, diff]
spidermonkey-24-Intl-cpp.patch

Add explicit casts where need.
Comment 11 Luigi 'Comio' Mantellini 2017-06-25 09:51:25 UTC
Created attachment 477940 [details, diff]
spidermonkey-24-Intl-cpp.patch

Fix patching root.
Comment 12 Jory A. Pratt gentoo-dev 2017-06-26 12:12:06 UTC
Please do not add us to the CC list when the bug is already assigned to us.
Comment 13 Jory A. Pratt gentoo-dev 2017-08-26 17:55:36 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team