Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error while compiling app-misc/mosquitto from maggu2810
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sat May 02, 2015 12:21 am    Post subject: Error while compiling app-misc/mosquitto from maggu2810 Reply with quote

Hello,

I'm trying to install app-misc/mosquitto-1.4 from maggu2810-overlay.
I had first to install cmake 3.2.1 but the compilation is failing with following error.

Code:
Linking C executable mosquitto
cd /var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4_build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/mosquitto.dir/link.txt --verbose=1
/usr/lib/distcc/bin/armv7a-hardfloat-linux-gnueabi-gcc  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard    -Wl,-O1 -Wl,--as-needed CMakeFiles/mosquitto.dir/conf.c.o CMakeFiles/mosquitto.dir/context.c.o CMakeFiles/mosquitto.dir/database.c.o CMakeFiles/mosquitto.dir/logging.c.o CMakeFiles/mosquitto.dir/loop.c.o CMakeFiles/mosquitto.dir/__/lib/memory_mosq.c.o CMakeFiles/mosquitto.dir/mosquitto.c.o CMakeFiles/mosquitto.dir/net.c.o CMakeFiles/mosquitto.dir/__/lib/net_mosq.c.o CMakeFiles/mosquitto.dir/persist.c.o CMakeFiles/mosquitto.dir/read_handle.c.o CMakeFiles/mosquitto.dir/read_handle_client.c.o CMakeFiles/mosquitto.dir/read_handle_server.c.o CMakeFiles/mosquitto.dir/__/lib/read_handle_shared.c.o CMakeFiles/mosquitto.dir/subs.c.o CMakeFiles/mosquitto.dir/security.c.o CMakeFiles/mosquitto.dir/security_default.c.o CMakeFiles/mosquitto.dir/__/lib/send_client_mosq.c.o CMakeFiles/mosquitto.dir/__/lib/send_mosq.c.o CMakeFiles/mosquitto.dir/send_server.c.o CMakeFiles/mosquitto.dir/sys_tree.c.o CMakeFiles/mosquitto.dir/__/lib/time_mosq.c.o CMakeFiles/mosquitto.dir/__/lib/tls_mosq.c.o CMakeFiles/mosquitto.dir/__/lib/util_mosq.c.o CMakeFiles/mosquitto.dir/websockets.c.o CMakeFiles/mosquitto.dir/__/lib/will_mosq.c.o  -o mosquitto -rdynamic -lrt -ldl -lm -luuid -Wl,-rpath,::::::::
make[2]: Leaving directory '/var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4_build/CMakeFiles  18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
[ 91%] Built target mosquitto
make[1]: Leaving directory '/var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4_build'
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-misc/mosquitto-1.4::maggu2810-overlay failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-misc/mosquitto-1.4::maggu2810-overlay'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/mosquitto-1.4::maggu2810-overlay'`.
 * The complete build log is located at '/var/tmp/portage/app-misc/mosquitto-1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/mosquitto-1.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4_build'
 * S: '/var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4'


Logs' content aren't helpful.

My system is :
Code:
torchwood ~ # emerge --info
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf
Portage 2.2.18 (python 3.3.5-final-0, default/linux/arm/13.0/armv7a, gcc-4.8.3, glibc-2.19-r1, 3.4.103 armv7l)
=================================================================
System uname: Linux-3.4.103-armv7l-ARMv7_Processor_rev_4_-v7l-with-gentoo-2.2
KiB Mem:      895332 total,    537988 free
KiB Swap:     497660 total,    476620 free
Timestamp of repository gentoo: Fri, 01 May 2015 09:30:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 armv7a-hardfloat-linux-gnueabi [enabled]
app-shells/bash:          4.2_p53::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.1::gentoo
dev-util/pkgconfig:       0.28-r1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.19-r1::gentoo
Repositories:

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

maggu2810-overlay
    location: /var/lib/layman/maggu2810-overlay
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l3.0"
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="acl arm armv5te armv6 armv6t2 avahi berkdb bzip2 cli cracklib crypt cxx dbus dri fortran gdbm iconv jpeg jpeg2k modules mp3 ncurses nls nptl openmp pam pcre png postgresql pulseaudio readline session ssl tcpd unicode zlib" APACHE2_MODULES="actions alias auth_basic auth_digest authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi dav dav_fs dav_lock deflate dir env filter info log_config mime negotiation setenvif status unique_id userdir" 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" ELIBC="glibc" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Any tips ?

Thanks

Laurent
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sat May 02, 2015 2:07 pm    Post subject: Reply with quote

Hum, I wonder if the problem is not with portage itself.
Because if I try manually to finish, the compilation, it succeed :

Code:
torchwood ~ # cd /var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4_build
torchwood mosquitto-1.4_build # make all
[ 35%] Built target libmosquitto
Linking CXX shared library libmosquittopp.so
[ 37%] Built target mosquittopp
Scanning dependencies of target mosquitto_pub
[ 39%] Building C object client/CMakeFiles/mosquitto_pub.dir/pub_client.c.o
distcc[31079] (dcc_connect_by_name) ERROR: failed to look up host "pset.local": Unknown host
distcc[31079] Warning: failed to distribute /var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4/client/pub_client.c to pset.local, running locally instead
[ 41%] Building C object client/CMakeFiles/mosquitto_pub.dir/client_shared.c.o
distcc[31093] ERROR: nonblocking connect to 192.168.0.20:3632 failed: No route to host
distcc[31093] Warning: failed to distribute /var/tmp/portage/app-misc/mosquitto-1.4/work/mosquitto-1.4/client/client_shared.c to celeron.chez.moi, running locally instead
Linking C executable mosquitto_pub
[ 41%] Built target mosquitto_pub
Scanning dependencies of target mosquitto_sub
[ 43%] Building C object client/CMakeFiles/mosquitto_sub.dir/sub_client.c.o
[ 45%] Building C object client/CMakeFiles/mosquitto_sub.dir/client_shared.c.o
Linking C executable mosquitto_sub
[ 45%] Built target mosquitto_sub
[100%] Built target mosquitto


Even the installation succeed :
Code:
torchwood mosquitto-1.4_build # make install
[ 35%] Built target libmosquitto
[ 37%] Built target mosquittopp
[ 41%] Built target mosquitto_pub
[ 45%] Built target mosquitto_sub
[100%] Built target mosquitto
Install the project...
-- Install configuration: "Gentoo"
-- Installing: /etc/mosquitto/mosquitto.conf
-- Installing: /etc/mosquitto/aclfile.example
-- Installing: /etc/mosquitto/pskfile.example
-- Installing: /etc/mosquitto/pwfile.example
-- Installing: /usr/lib/libmosquitto.so.1.4
-- Installing: /usr/lib/libmosquitto.so.1
-- Installing: /usr/lib/libmosquitto.so
-- Set runtime path of "/usr/lib/libmosquitto.so.1.4" to "/usr/lib"
-- Installing: /usr/include/mosquitto.h
running true 2>&1
-- Installing: /usr/lib/libmosquittopp.so.1.4
-- Installing: /usr/lib/libmosquittopp.so.1
-- Installing: /usr/lib/libmosquittopp.so
-- Set runtime path of "/usr/lib/libmosquittopp.so.1.4" to "/usr/lib"
-- Installing: /usr/include/mosquittopp.h
running true 2>&1
-- Installing: /usr/bin/mosquitto_pub
-- Set runtime path of "/usr/bin/mosquitto_pub" to "/usr/lib"
-- Installing: /usr/bin/mosquitto_sub
-- Set runtime path of "/usr/bin/mosquitto_sub" to "/usr/lib"
-- Installing: /usr/sbin/mosquitto
-- Set runtime path of "/usr/sbin/mosquitto" to "/usr/lib"
-- Installing: /usr/include/mosquitto_plugin.h
running true 2>&1
-- Installing: /usr/share/man/man1/mosquitto_passwd.1
-- Installing: /usr/share/man/man1/mosquitto_pub.1
-- Installing: /usr/share/man/man1/mosquitto_sub.1
-- Installing: /usr/share/man/man3/libmosquitto.3
-- Installing: /usr/share/man/man5/mosquitto.conf.5
-- Installing: /usr/share/man/man7/mosquitto-tls.7
-- Installing: /usr/share/man/man7/mqtt.7
-- Installing: /usr/share/man/man8/mosquitto.8


but obviously, emerge processing didn't finished (mosquitto is even not in my world file and their is no start/stop script) and consequently it's very dirty :cry:
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sat May 02, 2015 2:22 pm    Post subject: Reply with quote

Well after another try, the problem is elsewhere : it seems to me an (no obvious at least for me) issue with the Makefile, because after this dirty installation, a full emerge succeed this time.
So I guess the ebuild is trying to link with libraries at the wrong location or not yet built.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum