Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910604 - app-arch/lha LHa: Error: iconv() failure: Invalid or incomplete multibyte or wide character
Summary: app-arch/lha LHa: Error: iconv() failure: Invalid or incomplete multibyte or ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-20 21:15 UTC by Luke A. Guest
Modified: 2023-07-24 17:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 https://github.com/bebbo/amiga-gcc.git
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
~/src/mine-new/amiga/amiga-gcc


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)
     Homepage:            https://github.com/jca02266/lha https://lha.osdn.jp
     Description:         Utility for creating and opening lzh archives

The same problem occurs.

$ eix iconv
* app-text/psiconv
     Available versions:  (~)0.8.3-r1
     Homepage:            http://huizen.dds.nl/~frodol/psiconv
     Description:         An interpreter for Psion 5(MX) file formats

* dev-haskell/iconv [1]
     Available versions:  (~)0.4.1.3(0/0.4.1.3) {doc hoogle hscolour profile}
     Homepage:            https://hackage.haskell.org/package/iconv
     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"}
     Homepage:            https://www.gnu.org/software/libiconv/
     Description:         GNU charset conversion library for libc which doesn't implement it

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

* sci-libs/libticonv
     Available versions:  (~)1.1.5 {doc iconv static-libs}
     Homepage:            http://lpg.ticalc.org/prj_tilp/
     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
    dev-libs/libiconv


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
Comment 2 Luke A. Guest 2023-07-20 21:21:49 UTC
The ebuild needs the following:

src_configure() {
	local myeconfargs=(
		--enable-multibyte-filename=no
    )

    econf "${myeconfargs[@]}"
}
Comment 3 Luke A. Guest 2023-07-22 21:15:25 UTC
Please upgrade to https://fragglet.github.io/lhasa/ & https://data.gpo.zugaina.org/seden/app-arch/lhasa/lhasa-0.3.1.ebuild (I copied this and changed the version, compiled fine).

Or at least add this ebuild.

This version fixed my problem.