Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFLAGS ARMv7 Processor rev 1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 196

PostPosted: Tue Feb 13, 2018 8:08 pm    Post subject: CFLAGS ARMv7 Processor rev 1 Reply with quote

does anyone have any idea what CFLAGS can I use for this processor (ARM Cortex A9 Quad Core)?

Code:
Processor       : ARMv7 Processor rev 1 (v7l)
processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1835.17
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

processor       : 1
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1835.17
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

processor       : 2
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1835.17
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

processor       : 3
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1835.17
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

Hardware        : gs705a
Revision        : 0000
Serial          : 0c004639ca070e36


-march = native could be fine?
or is there something more specific?

CHOST = "armv7a-hardfloat-linux-gnueabi" should be fine ... right?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41417
Location: 56N 3W

PostPosted: Tue Feb 13, 2018 8:32 pm    Post subject: Reply with quote

antonellocaroli,

-march="native" on ARM started with gcc-6.
If you want to use distcc, ask gcc what -march="native" means and use that, otherwise -march="native" is good.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 196

PostPosted: Wed Feb 14, 2018 2:14 pm    Post subject: Reply with quote

NeddySeagoon Thanks!
Back to top
View user's profile Send private message
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 196

PostPosted: Sun Feb 25, 2018 9:37 pm    Post subject: Reply with quote

hi,

with -march=native I do not know why but libtools do not compile
and not even with -march=cortex-a9

Code:
  GNU nano 2.5.3                                  File: /var/tmp/portage/sys-devel/libtool-2.4.6-r3/temp/build.log                                                                           

^[[32;01m * ^[[39;49;00mPackage:    sys-devel/libtool-2.4.6-r3
^[[32;01m * ^[[39;49;00mRepository: gentoo
^[[32;01m * ^[[39;49;00mMaintainer: base-system@gentoo.org
^[[32;01m * ^[[39;49;00mUSE:        arm elibc_glibc kernel_linux userland_GNU
^[[32;01m * ^[[39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libtool-2.4.6.tar.xz to /var/tmp/portage/sys-devel/libtool-2.4.6-r3/work
>>> Source unpacked in /var/tmp/portage/sys-devel/libtool-2.4.6-r3/work
>>> Preparing source in /var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6 ...
 ^[[32;01m*^[[0m Applying libtool-2.4.3-use-linux-version-in-fbsd.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-link-specs.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-link-fsanitize.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-link-fuse-ld.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-libtoolize-slow.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-libtoolize-delay-help.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-sed-quote-speedup.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying libtool-2.4.6-ppc64le.patch ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running eautoreconf in '/var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6/libltdl' ...
 ^[[32;01m*^[[0m Running true --install --copy --force --ltdl --automake ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running aclocal -I ../m4 ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running autoconf --force ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running autoheader ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running automake --add-missing --copy --foreign --force-missing ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running eautoreconf in '/var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6' ...
 ^[[32;01m*^[[0m Running true --install --copy --force --ltdl --automake ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running aclocal -I m4 ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running autoconf --force ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running autoheader ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running automake --add-missing --copy --force-missing ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running automake --add-missing --copy --force-missing ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Removing useless C++ checks ...
^[[A^[[116C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6 ...
 * econf: updating libtool-2.4.6/build-aux/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating libtool-2.4.6/build-aux/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6/configure --prefix=/usr --build=armv7a-hardfloat-linux-gnueabi --host=armv7a-hardfloat-linux-gnueabi --mandir=/usr/share/man -$
## ------------------------- ##
## Configuring libtool 2.4.6 ##
## ------------------------- ##

checking for GNU M4 that supports accurate traces... /usr/bin/m4
checking whether /usr/bin/m4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for a BSD-compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... armv7a-hardfloat-linux-gnueabi
checking host system type... armv7a-hardfloat-linux-gnueabi
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4.6
configure: autobuild hostname... localhost
configure: autobuild mode... default
configure: autobuild timestamp... 20180225T213115Z
checking for armv7a-hardfloat-linux-gnueabi-gcc... armv7a-hardfloat-linux-gnueabi-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6/config.log
 ^[[31;01m*^[[0m ERROR: sys-devel/libtool-2.4.6-r3::gentoo failed (configure phase):
 ^[[31;01m*^[[0m   econf failed
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m               ebuild.sh, line  124:  Called src_configure
 ^[[31;01m*^[[0m             environment, line 2291:  Called econf '--disable-ltdl-install'
 ^[[31;01m*^[[0m        phase-helpers.sh, line  665:  Called __helpers_die 'econf failed'
 ^[[31;01m*^[[0m   isolated-functions.sh, line  117:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m   isolated-functions.sh, line  117:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m                die "$@"
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the output of `emerge --info '=sys-devel/libtool-2.4.6-r3::gentoo'`,
 ^[[31;01m*^[[0m the complete build log and the output of `emerge -pqv '=sys-devel/libtool-2.4.6-r3::gentoo'`.
 ^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/sys-devel/libtool-2.4.6-r3/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/sys-devel/libtool-2.4.6-r3/temp/environment'.
 ^[[31;01m*^[[0m Working directory: '/var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6'
 ^[[31;01m*^[[0m S: '/var/tmp/portage/sys-devel/libtool-2.4.6-r3/work/libtool-2.4.6'



Code:
Portage 2.3.13 (python 2.7.12-final-0, default/linux/arm/13.0/armv7a, gcc-6.4.0, glibc-2.25-r9, 3.10.38 armv7l)
=================================================================
System uname: Linux-3.10.38-armv7l-ARMv7_Processor_rev_1_-v7l-with-gentoo-2.3
KiB Mem:     1014116 total,    710872 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 25 Feb 2018 20:30:01 +0000
Head commit of repository gentoo: 4eaca4d909fbcef620b5b4f531b328687d7141c0
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.3-r1::gentoo, 3.5.4-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

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

gallifrey
    location: /var/lib/layman/gallifrey
    masters: gentoo
    priority: 150

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-march=native -02 -pipe"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -02 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
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 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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="a52 aac aacplus acl alsa arm armv5te armv6 armv6t2 berkdb bindist bzip2 cli consolekit corefonts crypt cxx dbus dri dsd encode faac flac fortran freesound g3dvl gdbm git gudev hwdb iconv icu id3 id3tag ipv6 lame libsamplerate lv2 mad midi minizip modules mp3 mp4 mpeg mpg123 musepack ncurses nls nptl openmp pam pcre policykit python readline realtime seccomp sndfile ssl tcpd timidity truetype udev unicode usb vorbis wav wavpack 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb vfp vfpv3 vfp-d32 v4 v5 v6 v7 thumb2" 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="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap 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"
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
Back to top
View user's profile Send private message
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 196

PostPosted: Mon Feb 26, 2018 5:44 am    Post subject: Reply with quote

fixed, there was an error in the make.conf

-march=native it works

-march=cortex-a9 does not work

use -march=native
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM 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