Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

[solved] aarch64 sys-devel/llvm-6.0.0-r1 cmake failed

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
zigford
n00b
n00b
Posts: 23
Joined: Wed Feb 16, 2005 11:18 am

[solved] aarch64 sys-devel/llvm-6.0.0-r1 cmake failed

  • Quote

Post by zigford » Wed Jun 13, 2018 11:40 pm

There was another post here similar to my issue but not quite the same. In the other post there was a bug with the llvm ebuild which added incompatible paramerters to gcc on aarch64.
In my case, I have the patched ebuild but I'm still failing on the step:

Code: Select all

The C compiler "/usr/bin/aarch64-unknown-linux-gnu-gcc"
is not able to compile a simple test program.
It fails with the following output:
 Change Dir: /var/tmp/portage/sys-devel/llvm-6.0.0-r1/work/llvm-6.0.0.src-.arm64/CMakeFiles/CMakeTmp
It then repeats itself over and over however the 'Change Dir: ' path keeps growing to the point that this is on the screen

Without further ado:

Code: Select all

picard /home/harrisj # emerge --info '=sys-devel/llvm-6.0.0-r1::gentoo'
Portage 2.3.40 (python 3.5.5-final-0, default/linux/arm64/17.0, gcc-7.3.0, glibc-2.27-r3, 4.14.48-v8-b36f4e9e1984+ aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.48-v8-b36f4e9e1984+-aarch64-with-gentoo-2.6
KiB Mem:      886356 total,    697764 free
KiB Swap:   84973248 total,  84973248 free
Timestamp of repository gentoo: Wed, 13 Jun 2018 02:00:01 +0000
Head commit of repository gentoo: 47bb0dee5c35cea2ac784c3378fe0149df03bec7
sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p2) 2.30.0
distcc 3.2rc1 aarch64-unknown-linux-gnu [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.5.5-r1::gentoo
dev-util/cmake:           3.11.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/openrc:          0.36::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r3::gentoo
Repositories:

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

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
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"
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"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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="acl arm64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc modules multilib ncurses nls nptl openmp pam pcre readline seccomp 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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" INPUT_DEVICES="libinput keyboard mouse" 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-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="vc4" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Code: Select all

picard /home/harrisj # emerge -pqv '=sys-devel/llvm-6.0.0-r1::gentoo'
[ebuild  N    ] sys-devel/llvm-6.0.0-r1  USE="libffi ncurses -debug -doc -gold -libedit {-test} -xar -xml" LLVM_TARGETS="(AArch64) -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -X86 -XCore"
Here is the build log
Here is the environment file

Code: Select all

picard /home/harrisj # gcc-config -l
 [1] aarch64-unknown-linux-gnu-6.4.0
 [2] aarch64-unknown-linux-gnu-7.3.0 *
picard /home/harrisj # eselect binutils list
 [1] aarch64-unknown-linux-gnu-2.29.1
 [2] aarch64-unknown-linux-gnu-2.30 *
Many thanks in advance if anyone could provide some insight
Last edited by zigford on Sat Jun 16, 2018 11:12 pm, edited 1 time in total.
----------------------------------------
Say hi to your mum for me
Top
bobbymcgee
n00b
n00b
Posts: 55
Joined: Thu Apr 12, 2018 2:03 pm

  • Quote

Post by bobbymcgee » Thu Jun 14, 2018 11:53 pm

first thing to check when gcc simple test fails is your compiler options

try just this to test:

Code: Select all

CFLAGS="-mcpu=cortex-a53 -O2 -pipe"
i'm wondering if maybe the wrapper is choking on the feature modifier.
Top
zigford
n00b
n00b
Posts: 23
Joined: Wed Feb 16, 2005 11:18 am

  • Quote

Post by zigford » Fri Jun 15, 2018 4:36 am

Brilliant bobbymcgee, it’s compiling now. Past the configure stage.
----------------------------------------
Say hi to your mum for me
Top
zigford
n00b
n00b
Posts: 23
Joined: Wed Feb 16, 2005 11:18 am

  • Quote

Post by zigford » Fri Jun 15, 2018 7:13 am

i'm wondering if maybe the wrapper is choking on the feature modifier.
Would this be a cmake bug that should be reported upstream or the way emerge parses the flags?
----------------------------------------
Say hi to your mum for me
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy