Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682564 - dev-util/radare2-3.4.1 hexagon_disas.o: file not recognized: file truncated
Summary: dev-util/radare2-3.4.1 hexagon_disas.o: file not recognized: file truncated
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL: https://github.com/radare/radare2/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-05 06:15 UTC by Andrew Udvare
Modified: 2019-05-14 07:14 UTC (History)
4 users (show)

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


Attachments
build log (build.log.gz,30.79 KB, application/x-gzip)
2019-04-05 06:15 UTC, Andrew Udvare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2019-04-05 06:15:40 UTC
Created attachment 571902 [details]
build log

Stops at linking stage:

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: p/../arch/hexagon/hexagon_disas.o: file not recognized: file truncated


emerge --info radare2:

Portage 2.3.62 (python 3.6.8-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29-r1, 5.0.0-gentoo-limelight x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.0.0-gentoo-limelight-x86_64-Intel-R-_Core-TM-_i7-5930K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    32799200 total,  18980616 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 05 Apr 2019 05:44:22 +0000
Head commit of repository gentoo: 1361e26fa8a2eedbdc63b574f29ccbd2f6b28565

Timestamp of repository atom: Thu, 21 Mar 2019 18:53:14 +0000
Head commit of repository atom: 65dfd87806dab1c371c7184e1bc2dfb308115f57

Head commit of repository tatsh-overlay: 88b115e7a6fb179559331702cd22537445a2f387

Timestamp of repository torbrowser: Sat, 23 Mar 2019 14:03:52 +0000
Head commit of repository torbrowser: 90dbad7ccbed8ad1ca0201a413127ac90e6195a9

sh bash 5.0_p3-r1
ld GNU ld (Gentoo 2.32 p1) 2.32.0
app-shells/bash:          5.0_p3-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/cmake:           3.14.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32::gentoo
sys-devel/gcc:            8.3.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: no


atom
    location: /var/db/repos/atom
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/atom.git
    masters: gentoo

tatsh-overlay
    location: /var/lib/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    sync-git-verify-commit-signature: no

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo

Installed sets: @admin, @bashcomp, @bitcoin, @cdr, @chrome, @clang, @cm, @cups, @docker, @exfat, @firefox, @fonts, @gimp, @git, @grub, @i3, @ibus, @kde, @kdevelop, @kernel, @l2tp-ipsec, @libimobiledevice, @libreoffice, @logrotate, @media, @misc, @mlocate, @mupen64plus, @nim, @pass, @portage-utilities, @python, @rar, @rust, @scala, @shellcheck, @ssh, @stepmania, @tmux, @vim, @virtualbox, @vlc, @wine, @x11, @x11-misc, @xirvik-vpn
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j13 --with-bdeps=y --quiet-build=y --complete-graph --verbose-conflicts --exclude=cross-i686-pc-mingw32/*"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ rsync://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j13"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 avahi bash-completion bluetooth branding bzip2 cairo cdda cdio cjk cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss exif fam ffmpeg flac fortran gdbm gif glamor gles gles2 gpm iconv idn ipv6 jemalloc jpeg jpeg2k kde kipi kwallet lcms libnotify libtirpc mad man mod mp3 mp4 mpeg multilib ncurses nls nptl nvenc ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline samba scanner seccomp spell ssl svg syslog systemd tcpd tiff truetype udev udisks unicode upower usb vdpau vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xcomposite xinerama xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="en-GB en ja ko zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-util/radare2-3.3.0::gentoo was built with the following:
USE="ssl -libressl" ABI_X86="(64)"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-04-06 10:00:54 UTC
Probably a parallel make issue.

Does
    MAKEOPTS=-j1 emerge -v1 radare2
works for you as a workaround?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-04-06 10:09:02 UTC
I also moticed meson refers this file twice:
  libr/anal/meson.build:  '../asm/arch/hexagon/hexagon_disas.c',
  libr/asm/meson.build:  'arch/hexagon/hexagon_disas.c',
Perhaps radare's own build system does something slightly different here and breaks.
Comment 3 Andrew Udvare 2019-04-06 12:24:01 UTC
(In reply to Sergei Trofimovich from comment #1)
> Probably a parallel make issue.
> 
> Does
>     MAKEOPTS=-j1 emerge -v1 radare2
> works for you as a workaround?

Yes. This makes it build successful.
Comment 4 ngg 2019-04-09 14:23:59 UTC
I had this same issue and the workaround fixed it for me as well.
Comment 5 Cheyenne Wills 2019-04-09 14:59:57 UTC
MAKEOPTS="-j1" fixes the problem for me as well.
Comment 6 Larry the Git Cow gentoo-dev 2019-04-09 21:44:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fe4c06d46ad85f2a205c91bc70acd8c4f3b903d

commit 6fe4c06d46ad85f2a205c91bc70acd8c4f3b903d
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-04-09 21:44:28 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-04-09 21:44:38 +0000

    dev-util/radare2: disable parallel build, bug #682564
    
    'hexagon_disas.o' does not have correct dependencies and
    gets into archive before final artifact is ready.
    
    Disable prallel build as a workaround.
    
    Reported-by: Andrew Udvare
    Bug: https://bugs.gentoo.org/682564
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-util/radare2/radare2-3.4.1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2019-04-10 08:19:16 UTC
Added -j1 workaround into the ebuild. Keep bug open to find more details and report upstream.
Comment 8 Jonas Stein gentoo-dev 2019-05-04 17:26:51 UTC
Upstream ticket: https://github.com/radare/radare2/issues/13765
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-04 21:10:14 UTC
Thank you!
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-14 07:14:52 UTC
Fix is included in 3.5.0. Pushed into ::gentoo as https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df68a2489dd141a899485fd397c1007ab4a1614d. Declaring solved.