Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Can't emerge "android-tools" Unknown processor:i586
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Mon Oct 15, 2018 5:45 pm    Post subject: [Solved] Can't emerge "android-tools" Unknown proc Reply with quote

When I install "android-tools-8.1.0_p1", I get the following error message.

Code:
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/build"
cmake -C /var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/build/gentoo_toolchain.cmake  /var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl
loading initial cache file /var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/build/gentoo_common_config.cmake
-- The C compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/i486-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/i486-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/i486-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/i486-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Perl: /usr/bin/perl (found version "5.24.3")
CMake Error at CMakeLists.txt:262 (message):
  Unknown processor:i586

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/build/CMakeFiles/CMakeOutput.log".
 * ERROR: dev-util/android-tools-8.1.0_p1::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 3982:  Called cmake-utils_src_configure
 *   environment, line 1075:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=dev-util/android-tools-8.1.0_p1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/android-tools-8.1.0_p1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/android-tools-8.1.0_p1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/android-tools-8.1.0_p1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/build'
 * S: '/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work'

>>> Failed to emerge dev-util/android-tools-8.1.0_p1, Log file:

>>>  '/var/tmp/portage/dev-util/android-tools-8.1.0_p1/temp/build.log'


On the other hand, "android-tools-6.0.1_p79" installs without a problem. Did they just drop support for the old x86 machines? If so, what would be my alternate option here, short of staying with 6.0.1_p79?
__
sol


Last edited by solamour on Tue Oct 16, 2018 1:24 am; edited 1 time in total
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Mon Oct 15, 2018 5:58 pm    Post subject: Reply with quote

Here is the output of "emerge --info".
Code:

Portage 2.3.49 (python 3.6.5-final-0, default/linux/x86/17.0, gcc-7.3.0, glibc-2.26-r7, 4.9.76-gentoo-r1 i586)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-i586-Geode-TM-_Integrated_Processor_by_AMD_PCS-with-gentoo-2.4.1
KiB Mem:      242516 total,     17324 free
KiB Swap:    4193852 total,   4035400 free
Timestamp of repository gentoo: Sun, 14 Oct 2018 10:30:01 +0000
Head commit of repository gentoo: ef08307a0570000182d16e51ef3932ed5db643b5
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 i486-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-march=geode -Os -mmmx -m3dnow -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
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=geode -Os -mmmx -m3dnow -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="ssh://solamour@temash/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="acl berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode x86 xattr zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext" CURL_SSL="gnutls" 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="pc" INPUT_DEVICES="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-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="geode" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

__
sol
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30904
Location: here

PostPosted: Mon Oct 15, 2018 6:20 pm    Post subject: Reply with quote

x86 is supported the problem is the proogram get i586 as system processor and CMakeList of boringssl as only check for i386 and i486
Code:

...
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
  set(ARCH "x86")
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386")
  set(ARCH "x86")
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
  set(ARCH "x86")
...

I've no idea how change this without a patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30904
Location: here

PostPosted: Mon Oct 15, 2018 6:35 pm    Post subject: Reply with quote

Try this patch, but not sure if work
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Mon Oct 15, 2018 7:28 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Try this patch, but not sure if work


Hmm... pardon my ignorance, but how do I apply the patch? If I manually make the change to "/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/CMakeLists.txt", it will get overwritten when I do "emerge -v android-tools", no?

Anyhow, if android-tools supports i386, I don't see why it can't support i586.
__
sol
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30904
Location: here

PostPosted: Mon Oct 15, 2018 7:40 pm    Post subject: Reply with quote

solamour wrote:
Hmm... pardon my ignorance, but how do I apply the patch? If I manually make the change to "/var/tmp/portage/dev-util/android-tools-8.1.0_p1/work/boringssl/CMakeLists.txt", it will get overwritten when I do "emerge -v android-tools", no?l

Correct, but you can use /etc/portage/patches for apply user patches

solamour wrote:
Anyhow, if android-tools supports i386, I don't see why it can't support i586.

I think so, too. Maybe the problem is only the check in CMakeList.txt
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21618

PostPosted: Tue Oct 16, 2018 1:12 am    Post subject: Reply with quote

solamour wrote:
Anyhow, if android-tools supports i386, I don't see why it can't support i586.
According to the posts in this thread, the build system has a whitelist of supported types. i586 is not on the whitelist. That may be an accidental omission, since i386 and i686 are far more commonly used than i586. i386 is used for its ability to work everywhere. i686 is used because it is the highest x86 dialect. Every 32-bit x86 derivative after i686 is lumped into the i686 bucket, at least in this context.
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Tue Oct 16, 2018 1:23 am    Post subject: Reply with quote

I applied the patch, and the built went OK. I also verified the tools included in "android-tools" (i.e. "adb", "fastboot", and "mkbootimg") all worked fine.

Thanks everyone for taking time to share your knowledge.

It does look like an unintentional omission, although I'm not sure what to do about it. Should I file a bug report? How do I make sure I don't file a duplicate report?
__
sol
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21618

PostPosted: Tue Oct 16, 2018 1:27 am    Post subject: Reply with quote

Find the proper venue to report the problem. Search their bug database to see if anyone else has reported it. If you feel ambitious, check the current development code to see if it was already fixed (which might not have a ticket if one of their developers spotted it and fixed it). If you find no indication that it was previously reported or fixed, then file the report.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Oct 16, 2018 1:31 am    Post subject: Reply with quote

solamour wrote:
Should I file a bug report? How do I make sure I don't file a duplicate report?

Don't worry about a duplicate; it's unlikely anyone else is trying to use adb on a Geode. And besides if it turns out to be duplicate it might send them a message that this is worth supporting properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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