Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cross compiling openssl
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
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Fri Mar 25, 2022 1:23 pm    Post subject: cross compiling openssl Reply with quote

targets:
-aarch64-unknown-linux-gnu
-aarch64-unknown-linux-gnueabi

when cross-emerging openssl, on both targets, openssl fails with "I AM NOT SANE".

any clue what it could be?
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21907

PostPosted: Fri Mar 25, 2022 2:20 pm    Post subject: Reply with quote

Your environment is not sane. Most likely, the CHOST tuple is not recognized. Do you have any weird environment variables exported into the build? The usual Portage debugging instructions probably apply, too.
Back to top
View user's profile Send private message
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Fri Mar 25, 2022 3:52 pm    Post subject: Reply with quote

Hu wrote:
Your environment is not sane. Most likely, the CHOST tuple is not recognized. Do you have any weird environment variables exported into the build? The usual Portage debugging instructions probably apply, too.

not really sure what you mean with your last sentence, but just to start, make.conf:
Code:

CHOST=aarch64-unknown-linux-gnu
CBUILD=x86_64-pc-linux-gnu

HOSTCC=${CBUILD}-gcc
MAKEOPTS="-j32"
ROOT=/usr/${CHOST}/

ACCEPT_KEYWORDS="${ARCH} ~${ARCH}"
USE="-seccomp -samba -smartcard -pdf -png -svg -jpeg2k -gdbm -pci lto readline bind custom-cflags -cryptsetup caps ssl netlink dbus dhcp ipv6 -pam"

CFLAGS="-O3 -mcpu=cortex-a53+crypto+crc -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${CFLAGS}"
FEATURES="-collision-protect -sandbox -ipc-sandbox -pid-sandbox -user-sandbox -network-sandbox buildpkg noman noinfo nodoc"
# Be sure we dont overwrite pkgs from another repo..
PYTHON_TARGETS="python3_9"
PYTHON_SINGLE_TARGET="python3_9"
PKGDIR=/data/software/pkgaarch64/
PORTAGE_TMPDIR=${ROOT}tmp/
PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/"
BINPKG_COMPRESS="lz4"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --usepkg"
#PORTDIR_OVERLAY="/usr/portage/local/"

and root's env:
Code:

SHELL=/bin/bash                                                                                                                                     
LESS=-R -M --shift 5                                                                                                                                 
JDK_HOME=/etc/java-config-2/current-system-vm                                                                                                       
CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/php/cli-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/revdep-rebuild                                                   
DISTCC_VERBOSE=0                                                                                                                                     
JAVA_HOME=/etc/java-config-2/current-system-vm                                                                                                       
ANT_HOME=/usr/share/ant                                                                                                                             
StorMan=/usr/StorMan                                                                                                                                 
EDITOR=/bin/nano                                                                                                                                     
PWD=/root                                                                                                                                           
CONFIG_PROTECT=/var/bind /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt                                                                   
LOGNAME=root                                                                                                                                         
DISTCC_TCP_CORK=                                                                                                                                     
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.1/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/man:/etc/java-config-2/current-system-vm/man/:/usr/lib64/php8.1/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/13/share/man:/usr/lib/llvm/12/share/man:/usr/lib/llvm/9/share/man                                                                                           
OPENCL_PROFILE=ocl-icd                                                                                                                               
UNCACHED_ERR_FD=                                                                                                                                     
MOTD_SHOWN=pam                                                                                                                                       
HOME=/root                                                                                                                                           
LANG=en_US.utf8                                                                                                                                     
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;
31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;
31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;
35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;
35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:                                                                                                                           
OPENGL_PROFILE=xorg-x11                                                                                                                             
DISTCC_FALLBACK=1                                                                                                                                   
DCC_EMAILLOG_WHOM_TO_BLAME=                                                                                                                         
INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.1/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/info:/usr/share/info:/usr/share/info/emacs-27                                                                                                                                           
JAVAC=/etc/java-config-2/current-system-vm/bin/javac                                                                                                 
TERM=xterm-256color                                                                                                                                 
LESSOPEN=|lesspipe %s                                                                                                                               
PEGASUS_HOME=/usr/StorMan/pegasus                                                                                                                   
USER=root                                                                                                                                           
PEGASUS_ROOT=/usr/StorMan/pegasus                                                                                                                   
MANPAGER=manpager                                                                                                                                   
SHLVL=1                                                                                                                                             
DISTCC_SAVE_TEMPS=0                                                                                                                                 
PAGER=/usr/bin/less                                                                                                                                 
DISTCC_SSH=                                                                                                                                         
GCC_SPECS=                                                                                                                                           
GSETTINGS_BACKEND=dconf                                                                                                                             
DISTCC_ENABLE_DISCREPANCY_EMAIL=                                                                                                                     
HUSHLOGIN=FALSE                                                                                                                                     
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/usr/lib/llvm/12/bin:/usr/lib/llvm/9/bin             
CROSS_COMPILE=aarch64-unknown-linux-gnu-                                                                                                             
MAIL=/var/mail/root                                                                                                                                 
REMOTEHOST=fe80::6516:7704:9fce:4f28

_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21907

PostPosted: Fri Mar 25, 2022 4:18 pm    Post subject: Reply with quote

jpsollie wrote:
not really sure what you mean with your last sentence
When a build fails, Portage prints out a standardized banner "If you need support, post the output of ..." and tells you a list of things to provide. This is standardized because it is so often useful or even essential in solving the problem. In this case, my first thought would be to emerge --info --verbose, since we recently had a thread where someone had set a strange environment variable and broken openssl's configure script.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4437
Location: Bavaria

PostPosted: Fri Mar 25, 2022 4:24 pm    Post subject: Reply with quote

BTW: Delete this: "-smartcard" from your USE-definition. You'll need it (even without smartcard; do an "emerge -uUDv @world" after it).
Back to top
View user's profile Send private message
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Fri Mar 25, 2022 5:36 pm    Post subject: Reply with quote

Hu wrote:
jpsollie wrote:
not really sure what you mean with your last sentence
When a build fails, Portage prints out a standardized banner "If you need support, post the output of ..." and tells you a list of things to provide. This is standardized because it is so often useful or even essential in solving the problem. In this case, my first thought would be to emerge --info --verbose, since we recently had a thread where someone had set a strange environment variable and broken openssl's configure script.

I hope you're right:
Code:

aarch64-unknown-linux-gnu-emerge --info --verbose
Portage 3.0.30 (python 3.9.11-final-0, embedded, gcc-11.2.0, unavailable, 5.16.16release+ x86_64)
=================================================================
System uname: Linux-5.16.16release+-x86_64-AMD_Ryzen_Threadripper_2950X_16-Core_Processor-with-glibc2.34
KiB Mem:    32785296 total,  20437356 free
KiB Swap:   97022380 total,  97015980 free
Timestamp of repository gentoo: Wed, 23 Mar 2022 04:45:01 +0000
Head commit of repository gentoo: 7ae3534616b0da4d47a00b848ff2731a91afa345
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.1::gentoo
dev-lang/python:           3.9.11::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.61.3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

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

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ANT_HOME="/usr/share/ant"
ARCH="arm64"
AUTOCLEAN="yes"
BINPKG_COMPRESS="lz4"
BROOT=""
BUILD_CFLAGS="-march=znver1 -O3 -pipe -madx -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mclzero -mcx16 -mf16c -mfma -mfsgsbase -mfxsr -mlzcnt -mmmx -mmovbe -mmwaitx -mpclmul -mpopcnt -mprfchw -mrdrnd -mrdseed -msahf -msha -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -mxsave -mxsavec -mxsaveopt -mxsaves --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
BUILD_CPPFLAGS=""
BUILD_CXXFLAGS="-march=znver1 -O3 -pipe -madx -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mclzero -mcx16 -mf16c -mfma -mfsgsbase -mfxsr -mlzcnt -mmmx -mmovbe -mmwaitx -mpclmul -mpopcnt -mprfchw -mrdrnd -mrdseed -msahf -msha -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -mxsave -mxsavec -mxsaveopt -mxsaves --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
BUILD_LDFLAGS="-Wl,-O1 -Wl,--as-needed"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -mcpu=cortex-a53+crypto+crc -pipe"
CHOST="aarch64-unknown-linux-gnu"
CLEAN_DELAY="0"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CROSS_COMPILE="aarch64-unknown-linux-gnu-"
CXXFLAGS="-O3 -mcpu=cortex-a53+crypto+crc -pipe"
DCC_EMAILLOG_WHOM_TO_BLAME=""
DISTCC_ENABLE_DISCREPANCY_EMAIL=""
DISTCC_FALLBACK="1"
DISTCC_SAVE_TEMPS="0"
DISTCC_SSH=""
DISTCC_TCP_CORK=""
DISTCC_VERBOSE="0"
DISTDIR="/var/cache/distfiles"
EBEEP_IGNORE="1"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" --usepkg"
EMERGE_WARNING_DELAY="10"
EPAUSE_IGNORE="1"
EPREFIX=""
EROOT="/usr/aarch64-unknown-linux-gnu/"
ESYSROOT="/usr/aarch64-unknown-linux-gnu/"
FCFLAGS="-Os -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-Os -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GSETTINGS_BACKEND="dconf"
HOME="/root"
HOSTCC="x86_64-pc-linux-gnu-gcc"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.1/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/info:/usr/share/info:/usr/share/info/emacs-27"
INPUT_DEVICES="evdev"
IUSE_IMPLICIT="prefix prefix-guest prefix-stack"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="en_US.utf8"
LDFLAGS="-O3 -mcpu=cortex-a53+crypto+crc -pipe"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LINGUAS="en"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j32"
MANPAGER="manpager"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.1/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/man:/etc/java-config-2/current-system-vm/man/:/usr/lib64/php8.1/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/13/share/man:/usr/lib/llvm/12/share/man:/usr/lib/llvm/9/share/man"
MOTD_SHOWN="pam"
OPENCL_PROFILE="ocl-icd"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/usr/lib/llvm/12/bin:/usr/lib/llvm/9/bin"
PEGASUS_HOME="/usr/StorMan/pegasus"
PEGASUS_ROOT="/usr/StorMan/pegasus"
PKGDIR="/data/software/pkgaarch64/"
PKG_CONFIG_PATH="/usr/aarch64-unknown-linux-gnu/usr/lib/pkgconfig/"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa ia64 m68k mips ppc ppc-macos ppc64 ppc64-linux riscv s390 sparc sparc-solaris sparc64-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-linux x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.9"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/usr/aarch64-unknown-linux-gnu/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ECLASS_WARNING_ENABLE="0"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.9/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.9/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/usr/aarch64-unknown-linux-gnu/tmp/"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="2775"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima        security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
PROFILE_ONLY_VARIABLES="IUSE_IMPLICIT USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/root"
PYTHON_SINGLE_TARGET="python3_9"
PYTHON_TARGETS="python3_9"
REMOTEHOST="2a02:578:8538:b00:8d01:6912:42fc:3da3"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/usr/aarch64-unknown-linux-gnu/"
RPMDIR="/var/cache/rpm"
SHELL="/bin/bash"
SHLVL="1"
SYSROOT="/usr/aarch64-unknown-linux-gnu/"
StorMan="/usr/StorMan"
TERM="xterm-256color"
UNCACHED_ERR_FD=""
UNINSTALL_IGNORE="/lib/modules/*"
USE="arm64 bind caps custom-cflags dbus dhcp geoip ipv6 kdrive lto minimal multicall ncurses netlink python readline split-usr ssl stunnel threads urandom xinetd zlib" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" USERLAND="GNU" VIDEO_CARDS="fbdev"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_S390 ABI_X86 CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 hppa ia64 m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-linux x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="bionic Cygwin Darwin glibc mingw musl SunOS Winnt"
USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VIDEO_CARDS="fbdev"

_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Fri Mar 25, 2022 5:39 pm    Post subject: Reply with quote

pietinger wrote:
BTW: Delete this: "-smartcard" from your USE-definition. You'll need it (even without smartcard; do an "emerge -uUDv @world" after it).

Glad you're telling me ... What's the logic bevind smartcard then?
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4437
Location: Bavaria

PostPosted: Fri Mar 25, 2022 7:01 pm    Post subject: Reply with quote

Some applications which rely on gnupg check if there is a scdaemon and will fail without (own experience; I thought also I dont need it ... ;-) )
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Mar 25, 2022 7:58 pm    Post subject: Reply with quote

jpsollie,

Code:
Portage 3.0.30 (python 3.9.11-final-0, embedded, gcc-11.2.0, unavailable, 5.16.16release+ x86_64)


Do not use the embedded profile, its not useful to anyone. Choose a real aarch64 profile in the target root.
The glibc version is unavailable?

Maybe fixing your target root profile will fix that.

What target are you building for?
_________________
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
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Sat Mar 26, 2022 4:16 am    Post subject: Reply with quote

For a neo3 iot device, rockchip rk3328.
It's more or less what you'd classify as 'embedded', no?
I van conform I installed both cross-compile glibc + aarch64 target glibc
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 26, 2022 11:57 am    Post subject: Reply with quote

jpsollie,

A neo3 and Raspberry Pi are both embedded devices.

I can confirm that cross compiling for Pi3 and Pi4 as aarch64 targets goes better with an aarch64 profile than with the embedded profile.
_________________
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
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Sat Mar 26, 2022 12:19 pm    Post subject: Reply with quote

NeddySeagoon wrote:
jpsollie,

A neo3 and Raspberry Pi are both embedded devices.

I can confirm that cross compiling for Pi3 and Pi4 as aarch64 targets goes better with an aarch64 profile than with the embedded profile.

looks like you already tried it. glad I found a brother-in-arm ...
would you use aarch64-unknown-linux-gnu or aarch64-unknown-linux-gnueabi for those setups?
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 26, 2022 12:24 pm    Post subject: Reply with quote

jpsollie,

I use aarch64-unknown-linux-gnu, so does the arm64 stage3

There are lots of us around. I Cheat too. I have an arm64 server to use at a build host.
This public BINHOST is built for Raspberry Pi 4 and Pi 3
It will does not have the crypto extensions.
_________________
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
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Sat Mar 26, 2022 3:05 pm    Post subject: Reply with quote

Lol ... Nice to know :)

I am trying to cheat as less as possible:
I started U-boot from scratch,
mapped additional devices not in the dts but in some lookalike rk3328 dts file,
try to use every possible feature I can find. The reason is easy: money.
Electricity prices in EU are going through the roof, every tick my CPU can idle saves some money :)
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
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