Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 910604

Summary: app-arch/lha LHa: Error: iconv() failure: Invalid or incomplete multibyte or wide character
Product: Gentoo Linux Reporter: Luke A. Guest <laguest>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: UNCONFIRMED ---    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Luke A. Guest 2023-07-20 21:15:43 UTC
I get that error when trying to extract an amiga ahi lha when trying to compile bebbo/amiga-gcc from gh.

Reproducible: Always

Steps to Reproduce:
1. git clone
2. cd amiga-gcc
3. make branch branch=amiga13.1 mod=gcc
4. make update
5. make all PREFIX=$HOME/opt/amiga-gcc NDK=3.2

Actual Results:  
sdk cgx...
sdk cgx...done
make[2]: Leaving directory '$HOME/src/mine-new/amiga/amiga-gcc'
make[1]: Leaving directory '$HOME/src/mine-new/amiga/amiga-gcc'
make libSDL12...
make libSDL12...failed
make[1]: Entering directory '$HOME/src/mine-new/amiga/amiga-gcc/build-Linux-m68k-amigaos/libSDL12'
$HOME/opt/amiga-gcc/bin/m68k-amigaos-gcc -I$HOME/opt/amiga-gcc/include -I./include/ -I./include/SDL -Ofast -fomit-frame-pointer -m68030 -mhard-float -ffast-math -noixemul -DNOIXEMUL -D_HAVE_STDINT_H -DNO_AMIGADEBUG -DAPOLLO_BLIT -I./video/apollo -DENABLE_CYBERGRAPHICS -DNO_SIGNAL_H -D__MEM_AMIGA -DENABLE_AHI  -o audio/SDL_audio.go -c audio/SDL_audio.c
In file included from audio/SDL_audio.c:39:
audio/SDL_sysaudio.h:49:10: fatal error: devices/ahi.h: No such file or directory
   49 | #include <devices/ahi.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:65: audio/SDL_audio.go] Error 1
make libSDL12...failed
use less "log/make libSDL12.log" to view the full log and search for ***
make: *** [Makefile:1247: $HOME/src/mine-new/amiga/amiga-gcc/build-Linux-m68k-amigaos/libSDL12/_done] Error 2

$ cat log/sdk\ ahi.log
m68k-amigaos-ahi/Developer/Include/C/pragmas/ahi_sub_pragmas.h  - Melting  :  .
m68k-amigaos-ahi/Developer/Include/C/pragmas/ahi_sub_pragmas.h  - Melting  :  o
m68k-amigaos-ahi/Developer/Include/C/pragmas/ahi_sub_pragmas.h  - Melted  
LHa: Error: iconv() failure: Invalid or incomplete multibyte or wide character
LHa: Error: iconv() failure: Invalid or incomplete multibyte or wide character
LHa: Error: iconv() failure: Invalid or incomplete multibyte or wide character
LHa: Error: iconv() failure: Invalid or incomplete multibyte or wide character

Expected Results:  
Expect the files to be extracted.

I even tried using the latest version with a local ebuild:

$ eix lha
[?] app-arch/lha
     Available versions:  114i_p20201004 (~)114i_p20210328
     Installed versions:  114i_p20211125[1](22:04:29 20/07/23)
     Description:         Utility for creating and opening lzh archives

The same problem occurs.

$ eix iconv
* app-text/psiconv
     Available versions:  (~)0.8.3-r1
     Description:         An interpreter for Psion 5(MX) file formats

* dev-haskell/iconv [1]
     Available versions:  (~) {doc hoogle hscolour profile}
     Description:         String encoding conversion

* dev-libs/libiconv
     Available versions:  1.17 {prefix static-libs ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Description:         GNU charset conversion library for libc which doesn't implement it

* dev-perl/Text-Iconv
     Available versions:  1.700.0-r3^t {test}
     Description:         A Perl interface to the iconv() codeset conversion function

* sci-libs/libticonv
     Available versions:  (~)1.1.5 {doc iconv static-libs}
     Description:         Charset conversion library for TI calculators

[I] virtual/libiconv
     Available versions:  0-r2 {ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0-r2(16:51:45 13/02/22)(ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Description:         Virtual for the GNU conversion library

[1] "haskell" /var/db/repos/haskell

Found 6 matches
Comment 1 Luke A. Guest 2023-07-20 21:16:59 UTC
$ emerge -pv dev-libs/libiconv

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 127.09 s.

[ebuild  N     ] dev-libs/libiconv-1.17::gentoo  USE="(-prefix) -static-libs" ABI_X86="32 (64) (-x32)" 5,287 KiB
[blocks B      ] sys-libs/glibc ("sys-libs/glibc" is soft blocking dev-libs/libiconv-1.17)

Total: 1 package (1 new), Size of downloads: 5,287 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-libs/glibc-2.37-r3:2.2/2.2::gentoo, installed) pulled in by
    sys-libs/glibc required by @selected 

  (dev-libs/libiconv-1.17:0/0::gentoo, ebuild scheduled for merge) pulled in by

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
Comment 2 Luke A. Guest 2023-07-20 21:21:49 UTC
The ebuild needs the following:

src_configure() {
	local myeconfargs=(

    econf "${myeconfargs[@]}"
Comment 3 Luke A. Guest 2023-07-22 21:15:25 UTC
Please upgrade to & (I copied this and changed the version, compiled fine).

Or at least add this ebuild.

This version fixed my problem.