Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] emerge cmake fails on RPi3B
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
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 171

PostPosted: Fri Oct 26, 2018 5:20 pm    Post subject: [Solved] emerge cmake fails on RPi3B Reply with quote

emerge cmake fails with
Code:
Unable to trace static ELF: /usr/bin/aarch64-unknown-linux-gnu-ar: /usr/bin/a
arch64-unknown-linux-gnu-ar qc libcmsys.a


(RPi3B):~ # emerge --info '=dev-util/cmake-3.12.3::gentoo' | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/EGwP3Lr6Qjg5k9VPTryq/
(RPi3B):~ # emerge -pqv '=dev-util/cmake-3.12.3::gentoo'|wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/OSlkl94HIok3AF9QD3Th/
(RPi3B):~ # wgetpaste /var/tmp/portage/dev-util/cmake-3.12.3/temp/build.log
Your paste can be seen here: https://paste.pound-python.org/show/Tq0Zfi0lbi3UEvAYDsd5/
(RPi3B):~ # wgetpaste /var/tmp/portage/dev-util/cmake-3.12.3/temp/environment
Your paste can be seen here: https://paste.pound-python.org/show/aOK2laNrFEelhDbui3V6/

Fix for this would fix many similar emerge fails. I am afraid that the issue is because I updated the RPi with crossdev binpkgs.

Thanq!


Last edited by necktwi on Sun Oct 28, 2018 10:44 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Oct 26, 2018 5:47 pm    Post subject: Reply with quote

necktwi,

Code:
[  3%] Linking C executable pseudo_cppcheck
cd /var/tmp/portage/dev-util/cmake-3.12.3/work/cmake-3.12.3_build/Tests/RunCMake && /var/tmp/portage/dev-util/cmake-3.12.3/work/cmake-3.12.3/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/pseudo_cppcheck.dir/link.txt --verbose=1
/usr/lib64/distcc/bin/aarch64-unknown-linux-gnu-gcc -march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -Wno-error -ggdb  -Wl,-O1 -Wl,--as-needed -rdynamic


-ggdb is a bad idea, You will probably run out of RAM on the Pi during linking.

/usr/bin/aarch64-unknown-linux-gnu-ar, which it claims is not found, is a symlink.
Code:
arm64-build /usr/src # ls /usr/bin/aarch64-unknown-linux-gnu-ar -l
lrwxrwxrwx 1 root root 37 Sep 22 15:58 /usr/bin/aarch64-unknown-linux-gnu-ar -> /usr/aarch64-unknown-linux-gnu/bin/ar

Its one of lots.

I can confirm that dev-util/cmake-3.12.3 builds natively.
eix claims
Code:
Installed versions:  3.12.3{tbz2}(19:29:56 10/06/18)(doc ncurses qt5 -emacs -system-jsoncpp -test)

Its in my binhost, without -ggdb
_________________
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
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 171

PostPosted: Fri Oct 26, 2018 6:11 pm    Post subject: Reply with quote

I hope
ln -s /usr/aarch64-unknown-linux-gnu/binutils-bin/2.31.1/ar /usr/bin/aarch64-unknown-linux-gnu-ar
fix the issue; i started the remerge.

How do I remove certain CFLAGS on certain packages? Won't portage just append new CFLAGS in package.use to old ones?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Oct 26, 2018 7:09 pm    Post subject: Reply with quote

necktwi,

Adding -ggdb is something you have done somewhere.
Its in your make.conf.
Code:
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -Wno-error -ggdb "


Don't do that on any arch. You should only set -ggdb on a per package basis. Ever.
It wants large amounts of memory to build and produces large binaries.

The process you need is described in the Handbook
The worked example uses -ggdb too.

-- edit --

You can append to or replace the CFLAGS in this way.
_________________
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
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