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

Bug 311385

Summary: sys-apps/dbus: fails to (cross-)compile on i686-mingw32 target
Product: Gentoo Linux Reporter: Mansour <mansour.alakeel>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: pchrist
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Mansour 2010-03-26 05:50:20 UTC
Tyring to install dbus using the corss-emerge or i686-mingw32-emerge fails. Other packages are installing properly like "sed" and "expat". dbus is failing. 


Reproducible: Always

Steps to Reproduce:
1. Install sys-devel/crossdev-20100108  
2. then  install i686-mingw32 
3. Try to "cross-emerge dbus" 

Actual Results:  
mv -f .deps/dbus-marshal-validate.Tpo .deps/dbus-marshal-validate.Plo
/bin/sh ../libtool --tag=CC   --mode=compile i686-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I..  -fPIC -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\""/var/lib/dbus/machine-id"\" -DDBUS_SYSTEM_CONFIG_FILE=\""/etc/dbus-1/system.conf"\" -DDBUS_SESSION_CONFIG_FILE=\""/etc/dbus-1/session.conf"\"    -ffunction-sections -fdata-sections -O2 -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -fno-common -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-format -fno-strict-aliasing -MT dbus-message.lo -MD -MP -MF .deps/dbus-message.Tpo -c -o dbus-message.lo dbus-message.c
libtool: compile:  i686-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -fPIC -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/var/lib/dbus/machine-id\" -DDBUS_SYSTEM_CONFIG_FILE=\"/etc/dbus-1/system.conf\" -DDBUS_SESSION_CONFIG_FILE=\"/etc/dbus-1/session.conf\" -ffunction-sections -fdata-sections -O2 -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -fno-common -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-format -fno-strict-aliasing -MT dbus-message.lo -MD -MP -MF .deps/dbus-message.Tpo -c dbus-message.c  -DDLL_EXPORT -DPIC -o .libs/dbus-message.o
i686-mingw32-gcc: unrecognized option '-rdynamic'
dbus-message.c:1: warning: -fPIC ignored for target (all code is position independent)
dbus-message.c: In function 'dbus_message_contains_unix_fds':
dbus-message.c:3633: error: 'DBusMessage' has no member named 'n_unix_fds'
make[3]: *** [dbus-message.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/dbus-marshal-recursive.Tpo .deps/dbus-marshal-recursive.Plo
make[3]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.3.0/work/dbus-1.3.0/dbus'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.3.0/work/dbus-1.3.0/dbus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.3.0/work/dbus-1.3.0'
make: *** [all] Error 2
 * ERROR: sys-apps/dbus-1.3.0 failed:
 *   make failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3157:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/dbus-1.3.0',
 * the complete build log and the output of 'emerge -pqv =sys-apps/dbus-1.3.0'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/dbus-1.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/dbus-1.3.0/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/dbus-1.3.0/work/dbus-1.3.0'



Portage 2.1.7.17 (arch/x86, gcc-4.4.3, unavailable, 2.6.33-rc8 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-rc8-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 26 Mar 2010 03:00:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="* x86 ~*"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-mingw32"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/i686-mingw32/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mansour 2010-03-26 05:53:04 UTC
Created attachment 225289 [details]
build log

mars ~ # cat /usr/i686-mingw32/etc/make.conf 
CFLAGS="-O2" 
CXXFLAGS="${CFLAGS}"
#ARCH=x86
USE=""
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
ROOT=/usr/i686-mingw32
SYSROOT=${ROOT}
ACCEPT_KEYWORDS="* ~*" 

======================================
mars ~ # ls -l /usr/i686-mingw32/etc/
total 24
-rw-r--r-- 1 root root  150 Mar 26 02:05 csh.env
drwxr-xr-x 2 root root 4096 Mar 26 00:44 env.d
-rw-r--r-- 1 root root   64 Mar 26 00:44 ld.so.cache
-rw-r--r-- 1 root root   97 Mar 26 00:44 ld.so.conf
-rw-r--r-- 1 root root  164 Mar 26 02:03 make.conf
lrwxrwxrwx 1 root root   31 Mar 26 02:03 make.profile -> /usr/portage/profiles/arch/x86/
-rw-r--r-- 1 root root  152 Mar 26 02:05 profile.env
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-05 15:10:05 UTC
I'll assign the bug to the proper developers but dbus is supposed to fail to compile on Windows targets. From the official dbus page:

+++++++++++++++++++++++++++++++++++
Windows port

Until the merge with the official D-Bus code, the Windows port is hosted on Sourceforge: winDBus. Until the Windows port is merged into the reference implementation and documented in the spec, keep in mind that what eventually gets merged into the reference implementation and spec may not match the current winDBus code's behavior or API.
+++++++++++++++++++++++++++++++++++

I don't know if someone can do something here.