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

Bug 562054

Summary: dev-qt/qtcore-4.8.5-r2: ld: cannot find -liconv / gnu-libiconv.cpp:54:46: error: invalid conversion from ‘const char**’ to ‘char**’ [-fpermissive]
Product: Gentoo Linux Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: [OLD] LibraryAssignee: Qt Bug Alias <qt>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bsd+disabled, nigoro.dev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Chí-Thanh Christopher Nguyễn gentoo-dev 2015-10-02 16:46:48 UTC
Created attachment 413516 [details]
build.log

dev-qt/qtcore-4.8.5-r2 fails to build on amd64-fbsd because it cannot find -liconv, and building internal iconv fails in gnu-libiconv.cpp due to invalid conversion from const char**’ to ‘char**

# emerge --info
Portage 2.2.22 (python 3.4.3-final-0, default/bsd/fbsd/amd64/10.2, gcc-4.9.3, freebsd-lib-10.2-r1, 10.2-Gentoo amd64)
=================================================================
System uname: FreeBSD-10.2-Gentoo-amd64-64bit-ELF
KiB Mem:     3885592 total
KiB Swap:    8388608 total
Timestamp of repository gentoo: Tue, 29 Sep 2015 15:45:01 +0000
sh sh
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:         4.3_p42::gentoo
dev-lang/perl:           5.22.0::gentoo
dev-lang/python:         2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:          3.3.2::gentoo
dev-util/pkgconfig:      0.29::gentoo
sys-apps/baselayout:     2.2::gentoo
sys-apps/openrc:         0.17::gentoo
sys-devel/autoconf:      2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:      1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:      2.25.1-r1::gentoo
sys-devel/gcc:           4.9.3::gentoo
sys-devel/gcc-config:    1.8::gentoo
sys-devel/libtool:       2.4.6-r1::gentoo
sys-devel/make:          4.1-r1::gentoo
sys-freebsd/freebsd-lib: 10.2-r1::gentoo (virtual/os-headers)
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-freebsd10.2"
CFLAGS="-O2 -pipe -march=btver1"
CHOST="x86_64-gentoo-freebsd10.2"
CONFIG_PROTECT="/boot/device.hints /etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=btver1"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
INSTALL_MASK="/usr/lib/systemd"
LANG="en_GB.UTF-8"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi amd64-fbsd berkdb bluetooth branding cairo cdda cdr consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac gdbm gif glamor gtk iconv ipv6 jpeg lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls ogg opengl oss pam pango pcre pdf png ppds python2 qt3support qt4 readline sdl spell sse sse2 ssl startup-notification svg tcpd tiff truetype udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zfs zlib" ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 ssse3 sse4a" ELIBC="FreeBSD" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="BSD" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Yuta SATOH 2015-10-05 11:46:53 UTC
I think this bug is a duplicate of bug 493310.
But, bug 493310 is old information.


I think a good way to add ~amd64-fbsd, ~x86-fbsd KEYWORDS to dev-qt/qtchooser (See bug 529196).
And, remove dev-qt/* from profiles/arch/{amd64-fbsd,x86-fbsd}/package.mask.

# emerge =qtcore-4.8.7

[ebuild  N    #] dev-qt/qtcore-4.8.7  USE="exceptions glib iconv ssl (-aqua) -debug -icu -pch -qt3support"
[ebuild  N    #] dev-qt/qttranslations-4.8.7

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by dev-qt/qtcore-4.8.7::gentoo
# required by =qtcore-4.8.7 (argument)
# /usr/portage/profiles/arch/x86-fbsd/package.mask:
# Davide Pesavento <pesa@gentoo.org> (20 Nov 2014)
# Qt4 multilib ebuilds, masked until dev-qt/qtchooser
# gets keyworded. See bug 529196.
=dev-qt/qttranslations-4.8.7
# required by =qtcore-4.8.7 (argument)
# /usr/portage/profiles/arch/x86-fbsd/package.mask:
# Davide Pesavento <pesa@gentoo.org> (20 Nov 2014)
# Qt4 multilib ebuilds, masked until dev-qt/qtchooser
# gets keyworded. See bug 529196.
=dev-qt/qtcore-4.8.7
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-10-08 18:48:12 UTC
with qtchooser now keyworded, qtcore-4.8.7 builds fine.