Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572732 - x11-libs/libxcb-1.11-r1 fails to build when cross-compiling for arm targets
Summary: x11-libs/libxcb-1.11-r1 fails to build when cross-compiling for arm targets
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-24 00:08 UTC by Alex Barker
Modified: 2020-11-19 04:13 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,224.01 KB, text/x-log)
2016-01-24 00:18 UTC, Alex Barker
Details
Patch (libxcb.patch,387 bytes, patch)
2016-02-13 08:32 UTC, Alex Barker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2016-01-24 00:08:28 UTC
See build log for more detail.

 /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c -m 644 man/xcb_dri2_copy_region.3 man/xcb_dri2_copy_region_reply.3 man/xcb_dri2_copy_region_unchecked.3 man/xcb_dri2_create_draw
able.3 man/xcb_dri2_create_drawable_checked.3 man/xcb_dri2_destroy_drawable.3 man/xcb_dri2_destroy_drawable_checked.3 man/xcb_dri2_get_buffers.3 man/xcb_dri2_get_buffers_buffers.3 man/xcb_
dri2_get_buffers_buffers_iterator.3 man/xcb_dri2_get_buffers_buffers_length.3 man/xcb_dri2_get_buffers_reply.3 man/xcb_dri2_get_buffers_unchecked.3 man/xcb_dri2_get_buffers_with_format.3 m
an/xcb_dri2_get_buffers_with_format_buffers.3 man/xcb_dri2_get_buffers_with_format_buffers_iterator.3 man/xcb_dri2_get_buffers_with_format_buffers_length.3 man/xcb_dri2_get_buffers_with_fo
rmat_reply.3 man/xcb_dri2_get_buffers_with_format_unchecked.3 man/xcb_dri2_get_msc.3 man/xcb_dri2_get_msc_reply.3 man/xcb_dri2_get_msc_unchecked.3 man/xcb_dri2_get_param.3 man/xcb_dri2_get
_param_reply.3 man/xcb_dri2_get_param_unchecked.3 man/xcb_dri2_invalidate_buffers_event_t.3 man/xcb_dri2_query_version.3 man/xcb_dri2_query_version_reply.3 man/xcb_dri2_query_version_unche
cked.3 man/xcb_dri2_swap_buffers.3 man/xcb_dri2_swap_buffers_reply.3 man/xcb_dri2_swap_buffers_unchecked.3 man/xcb_dri2_swap_interval.3 man/xcb_dri2_swap_interval_checked.3 man/xcb_dri2_wa
it_msc.3 man/xcb_dri2_wait_msc_reply.3 man/xcb_dri2_wait_msc_unchecked.3 man/xcb_dri2_wait_sbc.3 man/xcb_dri2_wait_sbc_reply.3 man/xcb_dri2_wait_sbc_unchecked.3 '/usr/armv6j-hardfloat-linu
x-gnueabihf/tmp/portage/x11-libs/libxcb-1.11.1/image//usr/share/man/man3'
 /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c -m 644 man/xcb_dri3_buffer_from_pixmap.3 man/xcb_dri3_buffer_from_pixmap_reply.3 man/xcb_dri3_buffer_from_pixmap_unchecked.3 man
/xcb_dri3_fd_from_fence.3 man/xcb_dri3_fd_from_fence_reply.3 man/xcb_dri3_fd_from_fence_unchecked.3 man/xcb_dri3_fence_from_fd.3 man/xcb_dri3_fence_from_fd_checked.3 man/xcb_dri3_open.3 ma
n/xcb_dri3_open_reply.3 man/xcb_dri3_open_unchecked.3 man/xcb_dri3_pixmap_from_buffer.3 man/xcb_dri3_pixmap_from_buffer_checked.3 man/xcb_dri3_query_version.3 man/xcb_dri3_query_version_re
ply.3 man/xcb_dri3_query_version_unchecked.3 man/xcb_enter_notify_event_t.3 man/xcb_expose_event_t.3 man/xcb_fill_poly.3 man/xcb_fill_poly_checked.3 man/xcb_focus_in_event_t.3 man/xcb_focu
s_out_event_t.3 man/xcb_force_screen_saver.3 man/xcb_force_screen_saver_checked.3 man/xcb_free_colormap.3 man/xcb_free_colormap_checked.3 man/xcb_free_colors.3 man/xcb_free_colors_checked.
3 man/xcb_free_cursor.3 man/xcb_free_cursor_checked.3 man/xcb_free_gc.3 man/xcb_free_gc_checked.3 man/xcb_free_pixmap.3 man/xcb_free_pixmap_checked.3 man/xcb_ge_generic_event_t.3 man/xcb_g
et_atom_name.3 man/xcb_get_atom_name_name.3 man/xcb_get_atom_name_name_end.3 man/xcb_get_atom_name_name_length.3 man/xcb_get_atom_name_reply.3 '/usr/armv6j-hardfloat-linux-gnueabihf/tmp/po
rtage/x11-libs/libxcb-1.11.1/image//usr/share/man/man3'
libtool: relink: armv6j-hardfloat-linux-gnueabihf-gcc -shared  -fPIC -DPIC  .libs/composite.o   -Wl,--as-needed -L/usr/armv6j-hardfloat-linux-gnueabihf/tmp/portage/x11-libs/libxcb-1.11.1/i
mage//usr/lib -L/usr/lib -lxcb -lXau -lXdmcp  -march=armv6j -Os -mfpu=vfp -mfloat-abi=hard -Wl,-O1   -Wl,-soname -Wl,libxcb-composite.so.0 -o .libs/libxcb-composite.so.0.0.0
 /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c -m 644 man/xcb_get_atom_name_unchecked.3 man/xcb_get_font_path.3 man/xcb_get_font_path_path_iterator.3 man/xcb_get_font_path_pat
h_length.3 man/xcb_get_font_path_reply.3 man/xcb_get_font_path_unchecked.3 man/xcb_get_geometry.3 man/xcb_get_geometry_reply.3 man/xcb_get_geometry_unchecked.3 man/xcb_get_image.3 man/xcb_
get_image_data.3 man/xcb_get_image_data_end.3 man/xcb_get_image_data_length.3 man/xcb_get_image_reply.3 man/xcb_get_image_unchecked.3 man/xcb_get_input_focus.3 man/xcb_get_input_focus_repl
y.3 man/xcb_get_input_focus_unchecked.3 man/xcb_get_keyboard_control.3 man/xcb_get_keyboard_control_reply.3 man/xcb_get_keyboard_control_unchecked.3 man/xcb_get_keyboard_mapping.3 man/xcb_
get_keyboard_mapping_keysyms.3 man/xcb_get_keyboard_mapping_keysyms_end.3 man/xcb_get_keyboard_mapping_keysyms_length.3 man/xcb_get_keyboard_mapping_reply.3 man/xcb_get_keyboard_mapping_un
checked.3 man/xcb_get_modifier_mapping.3 man/xcb_get_modifier_mapping_keycodes.3 man/xcb_get_modifier_mapping_keycodes_end.3 man/xcb_get_modifier_mapping_keycodes_length.3 man/xcb_get_modifier_mapping_reply.3 man/xcb_get_modifier_mapping_unchecked.3 man/xcb_get_motion_events.3 man/xcb_get_motion_events_events.3 man/xcb_get_motion_events_events_iterator.3 man/xcb_get_motion_events_events_length.3 man/xcb_get_motion_events_reply.3 man/xcb_get_motion_events_unchecked.3 man/xcb_get_pointer_control.3 '/usr/armv6j-hardfloat-linux-gnueabihf/tmp/portage/x11-libs/libxcb-1.11.1/image//usr/share/man/man3'
/usr/lib/libXau.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libxcb-composite.la' with the above command before installing it
Makefile:849: recipe for target 'install-libLTLIBRARIES' failed
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: *** Waiting for unfinished jobs....


Reproducible: Always

Steps to Reproduce:
armv6j-hardfloat-linux-gnueabihf-emerge -v1 libxcb



Portage 2.2.26 (python 2.7.10-final-0, default/linux/arm/13.0, gcc-5.3.0, unavailable, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:     4047264 total,   3081416 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sat, 23 Jan 2016 21:15:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:  4.2_p47::gentoo
dev-lang/python:  2.7.8::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=armv6j -Os -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -pipe"
CHOST="armv6j-hardfloat-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv6j -Os -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/armv6j-hardfloat-linux-gnueabihf/packages/"
PORTAGE_CONFIGROOT="/usr/armv6j-hardfloat-linux-gnueabihf/"
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="/usr/armv6j-hardfloat-linux-gnueabihf/tmp/"
USE="acl arm berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre python2 readline seccomp session ssl tcpd unicode xattr zlib" 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" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20 ruby21" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alex Barker 2016-01-24 00:18:18 UTC
Created attachment 423734 [details]
build.log
Comment 2 Matt Turner gentoo-dev 2016-01-24 08:24:09 UTC
I have no idea where "USE=X" came from. That doesn't exist.
Comment 3 Alex Barker 2016-02-09 16:06:32 UTC
Best I can tell, this has been problem with libtool for at least 9 years with no solution in sight.  

https://www.gnu.org/software/automake/manual/html_node/Conditional-Libtool-Libraries.html

http://lists.gnu.org/archive/html/gnutls-devel/2007-12/msg00016.html


https://lists.linuxfoundation.org/pipermail/llvmlinux/2013-January/000108.html

There are more and more links just like these on mailing lists all over the internet.  I am not sure what to do about this because it is blocking development for me.  Is this a problem that will be fixed, or is this just another "well, autotools is a piece of shit" problem that wont be fixed?
Comment 4 Matt Turner gentoo-dev 2016-02-09 17:48:02 UTC
(In reply to Alex Barker from comment #3)
> Best I can tell, this has been problem with libtool for at least 9 years
> with no solution in sight.  
[...]
>                      Is this a problem that will be fixed, or is this just
> another "well, autotools is a piece of shit" problem that wont be fixed?

What would you have me do?
Comment 5 Alex Barker 2016-02-09 19:37:55 UTC
(In reply to Matt Turner from comment #4)
> (In reply to Alex Barker from comment #3)
> > Best I can tell, this has been problem with libtool for at least 9 years
> > with no solution in sight.  
> [...]
> >                      Is this a problem that will be fixed, or is this just
> > another "well, autotools is a piece of shit" problem that wont be fixed?
> 
> What would you have me do?

Honestly, nothing.  I am just trying to rule out any ebuild related stuff before I send out some WAT on the libtool mailing list.  Its just a bit frustrating to see errors going back to 2007 and no real solution except a lot of people saying that libtools sucks and here are tons of patches to make it work.
Comment 6 Alex Barker 2016-02-13 08:32:21 UTC
Created attachment 425364 [details, diff]
Patch

After several weeks of investigating, this is is the only solution short of getting rid of libtool.  This particular problem seems to have been around for a long time in some shape or form.  This short article pretty much sums it up:  http://www.metastatic.org/text/libtool.html
Comment 7 Joakim Tjernlund 2016-02-21 18:25:35 UTC
(In reply to Alex Barker from comment #6)
> Created attachment 425364 [details, diff] [details, diff]
> Patch
> 
> After several weeks of investigating, this is is the only solution short of
> getting rid of libtool.  This particular problem seems to have been around
> for a long time in some shape or form.  This short article pretty much sums
> it up:  http://www.metastatic.org/text/libtool.html

This might be the broken sysroot handling in libtool, head over to
  https://bugs.gentoo.org/show_bug.cgi?id=572038
for info and patches
Comment 8 Matt Turner gentoo-dev 2020-05-22 02:18:56 UTC
Is this still an issue?