Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934887 - app-i18n/ibus-libpinyin-1.15.2-r1 - [perl-5.40] [ncurses-6.5] [icu-75.1] lua-plugin-init.c: error: passing argument 2 of luaL_addlstring from incompatible pointer type [-Wincompatible-poi
Summary: app-i18n/ibus-libpinyin-1.15.2-r1 - [perl-5.40] [ncurses-6.5] [icu-75.1] lua-...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Graham
URL:
Whiteboard:
Keywords: PATCH
Depends on: 944805 935270
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-06-25 07:05 UTC by Toralf Förster
Modified: 2024-11-24 11:22 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.07 KB, text/plain)
2024-06-25 07:05 UTC, Toralf Förster
Details
app-i18n:ibus-libpinyin-1.15.2-r1:20240625-041131.log (app-i18n:ibus-libpinyin-1.15.2-r1:20240625-041131.log,20.68 KB, text/plain)
2024-06-25 07:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,176.56 KB, text/plain)
2024-06-25 07:05 UTC, Toralf Förster
Details
environment (environment,138.46 KB, text/plain)
2024-06-25 07:05 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-06-25 07:05 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.45 KB, application/x-xz)
2024-06-25 07:05 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.89 KB, application/x-xz)
2024-06-25 07:05 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,51.96 KB, application/x-xz)
2024-06-25 07:05 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.75 KB, application/x-xz)
2024-06-25 07:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-06-25 07:05:51 UTC
      |                                    ~~~^          ~~~
      |                                       |          |
      |                                       |          lua_Integer {aka long int}
      |                                       unsigned int
      |                                    %0*lx
lua-plugin-init.c: In function 'ime_utf8_to_utf16':
lua-plugin-init.c:412:27: error: passing argument 2 of 'luaL_addlstring' from incompatible pointer type [-Wincompatible-pointer-types]
  412 |     luaL_addlstring(&buf, str, written * sizeof(gunichar2));
      |                           ^~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-20240621-221521

  UNMASKED:
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  >=sys-libs/ncurses-6.5
    Requested by sam
  ~dev-lang/perl-5.40.0
  ~virtual/perl-Archive-Tar-3.20.10_rc
  ~virtual/perl-CPAN-Meta-Requirements-2.143.0
  ~virtual/perl-Compress-Raw-Bzip2-2.212.0
  ~virtual/perl-DB_File-1.859.0
  ~virtual/perl-Data-Dumper-2.189.0
  ~virtual/perl-Devel-PPPort-3.720.0
  ~virtual/perl-Exporter-5.780.0
  ~virtual/perl-ExtUtils-CBuilder-0.280.240
  ~virtual/perl-ExtUtils-Manifest-1.750.0
  ~virtual/perl-File-Spec-3.900.0
  ~virtual/perl-HTTP-Tiny-0.88.0
  ~virtual/perl-IO-1.550.0
  ~virtual/perl-IO-Compress-2.212.0
  ~virtual/perl-IO-Socket-IP-0.420.0
  ~virtual/perl-IO-Zlib-1.150.0
  ~virtual/perl-Math-BigInt-2.3.2
  ~virtual/perl-Math-BigInt-FastCalc-0.501.800
  ~virtual/perl-Math-BigRat-2.3.2
  ~virtual/perl-Module-CoreList-5.202.406.90
  ~virtual/perl-Module-Metadata-1.0.38
  ~virtual/perl-Pod-Simple-3.450.0
  ~virtual/perl-Safe-2.460.0
  ~virtual/perl-Socket-2.38.0
  ~virtual/perl-Test-Harness-3.480.0
  ~virtual/perl-Test-Simple-1.302.199
  ~virtual/perl-Text-Tabs+Wrap-2024.1.0
  ~virtual/perl-Time-HiRes-1.977.700
  ~virtual/perl-Time-Local-1.350.0
  ~virtual/perl-autodie-2.370.0
  ~virtual/perl-bignum-0.670.0
  ~virtual/perl-podlators-5.10.200_rc
  ~virtual/perl-threads-2.400.0
  ~virtual/perl-threads-shared-1.690.0
  ~virtual/perl-version-0.993.0
    Requested by dilfridge and sam

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.7
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.4 linux/amd64

  HEAD of ::gentoo
commit 252642f432f041bae98b8348d38fbc859d0c3dc0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 25 03:19:11 2024 +0000

    2024-06-25 03:19:11 UTC

emerge -qpvO app-i18n/ibus-libpinyin
[ebuild  N    ] app-i18n/ibus-libpinyin-1.15.2-r1  USE="lua -boost -opencc" LUA_SINGLE_TARGET="lua5-1 -lua5-3" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-06-25 07:05:52 UTC
Created attachment 896379 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-06-25 07:05:53 UTC
Created attachment 896380 [details]
app-i18n:ibus-libpinyin-1.15.2-r1:20240625-041131.log
Comment 3 Toralf Förster gentoo-dev 2024-06-25 07:05:55 UTC
Created attachment 896381 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-06-25 07:05:56 UTC
Created attachment 896382 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-06-25 07:05:57 UTC
Created attachment 896383 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-06-25 07:05:57 UTC
Created attachment 896384 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-06-25 07:05:58 UTC
Created attachment 896385 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-06-25 07:05:59 UTC
Created attachment 896386 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-06-25 07:06:00 UTC
Created attachment 896387 [details]
temp.tar.xz
Comment 10 Graham 2024-06-26 10:00:34 UTC
This compiles and works fine on my own machine (x86_64) when i use the same useflags (lua only). So I don't think this is a current real-world issue (yet). 

I am guessing the issue might be changes in the compiler as i am on the stable x86_64-pc-linux-gnu-13 (not -14 that the unstable test build was using that generated this).
Comment 11 Graham 2024-06-27 07:50:56 UTC
I had a look upstream, and found this :-

https://github.com/libpinyin/ibus-libpinyin/commit/cf33a2c289f7676a36954bdcf700a9d0086d6886

I believe this is probably the issue, and applying that change should fix it.

If so, it can be fixed in two ways:-
1. Upgrade the package to the latest version
or
2. Adhoc Patch this into the current version. 

Ideally '1' is the best solution, but the reason we aren't already running with the latest version is that it failed testing and had some very weird behavior (excessive latency etc) which made it unusable. Still that was several months ago, so I will take another look at this.
Comment 12 Graham 2024-07-01 08:37:00 UTC
I did some testing with current latest (1.15.7) and it seemed fine, none of the latency issues that i mentioned above. 
As such we can just bump the version and this should resolve this bug.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-19 14:22:34 UTC
Please make a github PR for the ibus-pinyin changes (as well as any other cjk stuff you wish to help fix ;)). Thanks.
Comment 14 Graham 2024-11-21 18:28:12 UTC
(In reply to Sam James from comment #13)
> Please make a github PR for the ibus-pinyin changes (as well as any other
> cjk stuff you wish to help fix ;)). Thanks.

FYI Version bump is https://github.com/gentoo/gentoo/pull/39400 

Sorry for the delay btw. (life got in the way)