View previous topic :: View next topic |
Author |
Message |
necktwi Apprentice

Joined: 24 Aug 2018 Posts: 171
|
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54923 Location: 56N 3W
|
Posted: Fri Oct 26, 2018 5:47 pm Post subject: |
|
|
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 |
|
 |
necktwi Apprentice

Joined: 24 Aug 2018 Posts: 171
|
Posted: Fri Oct 26, 2018 6:11 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54923 Location: 56N 3W
|
Posted: Fri Oct 26, 2018 7:09 pm Post subject: |
|
|
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 |
|
 |
|