Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge Btrfs-progs fails
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: Thu Nov 01, 2018 3:23 pm    Post subject: emerge Btrfs-progs fails Reply with quote

emerge Btrfs-progs fail with
undefined reference to symbol '__printf_chk@@GLIBC_2.1...

RPi3B:~ Necktwi$ emerge --info '=sys-fs/btrfs-progs-4.17.1::gentoo' | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/4FOwzqcPE9fpCAb56SOV/
RPi3B:linux # emerge -pqv '=sys-fs/btrfs-progs-4.17.1::gentoo' | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/JRk5FClNSyoQvmG4KU8d/
RPi3B:linux # wgetpaste /var/tmp/portage/sys-fs/btrfs-progs-4.17.1/temp/build.log
Your paste can be seen here: https://paste.pound-python.org/show/94Ijo3SMVO1sOPhO31TY/
RPi3B:linux # wgetpaste /var/tmp/portage/sys-fs/btrfs-progs-4.17.1/temp/environment
Your paste can be seen here: https://paste.pound-python.org/show/yC2w55hTFrOUykyv5d95/

Thanq!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31353
Location: here

PostPosted: Thu Nov 01, 2018 3:28 pm    Post subject: Reply with quote

Code:
distcc[21354] ERROR: compile cmds-restore.c on 192.168.2.28,cpp,lzo failed

It seems a distcc problem, try to compile without distcc
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 171

PostPosted: Thu Nov 01, 2018 7:38 pm    Post subject: Reply with quote

Unfortunately, that didn't work either

Code:
sudo FEATURES="-distcc -distcc-pump -ccache" CCACHE_RECACHE=Yes emerge btrfs-progs

RPi3B:~ # emerge --info '=sys-fs/btrfs-progs-4.17.1::gentoo' | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/Ua5m781MLd8Bx9mr64gQ/
RPi3B:~ # emerge -pqv '=sys-fs/btrfs-progs-4.17.1::gentoo' | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/lEowKvuKlJKE8mk04zD7/
RPi3B:~ # wgetpaste /var/tmp/portage/sys-fs/btrfs-progs-4.17.1/temp/build.log
Your paste can be seen here: https://paste.pound-python.org/show/Xtzf976Zc5FzmdvjFZbK/
RPi3B:~ # wgetpaste /var/tmp/portage/sys-fs/btrfs-progs-4.17.1/temp/environment
Your paste can be seen here: https://paste.pound-python.org/show/yxnYiJQgKq9DAr6m9otp/

the line 714 of build.log says btrfstune is linking with -L/usr/lib/libc.so but I think it should be -L/usr/lib64/libc.so because this is 64 bit Linux.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 653
Location: EU

PostPosted: Sat Nov 03, 2018 8:03 am    Post subject: Reply with quote

Why this?
Code:
LDFLAGS="-Wl,-O1 -Wl,--as-needed"


Since you are ricing the CPU you can use this:

CFLAGS="-march=armv8-a+crc -mcpu=cortex-a53+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -Wno-error"
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 171

PostPosted: Sat Nov 03, 2018 9:37 am    Post subject: Reply with quote

What do you mean by "ricing" the CPU. what does -mcpu=cortex-a53+crc do? I don't know why those LDFLAGS, I didn't put them.

thanq!


Last edited by necktwi on Sat Nov 03, 2018 12:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 03, 2018 12:20 pm    Post subject: Reply with quote

necktwi,

Here's the definitive Ricers Guide

Linking failed for you.
Code:
/usr/    [LD]     btrfs-convert
lib/gcc/aarch64-unknown-linux-gnu/8.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: extent-tree.o: undefined reference to symbol '__printf_chk@@GLIBC_2.17'
/lib64/libc.so.6: error adding symbols: DSO missing from command line
aarch64-unknown-linux-gnu-gcc -o btrfs-select-super ctree.o disk-io.o kernel-lib/radix-tree.o extent-tree.o print-tree.o root-tree.o dir-item.o file-item.o inode-item.o inode-map.o extent-cache.o extent_io.o volumes.o utils.o repair.o qgroup.o free-space-cache.o kernel-lib/list_sort.o props.o kernel-shared/ulist.o qgroup-verify.o backref.o string-table.o task-utils.o inode.o file.o find-root.o free-space-tree.o help.o send-dump.o fsfeatures.o kernel-lib/tables.o kernel-lib/raid56.o transaction.o btrfs-select-super.o \
    \
   libbtrfs.a libbtrfsutil.a \
   -Wl,-O1 -Wl,--as-needed -rdynamic -L.   -L/usr/lib -luuid -L/usr/lib -lblkid -L. -pthread
collect2: error: ld returned 1 exit status


It builds on arm64 for me.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Sat Nov 03, 2018 12:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 171

PostPosted: Sat Nov 03, 2018 12:24 pm    Post subject: Reply with quote

it seems like holy stuff! ok, I will stick in -mcpu=cortrex-a53+crc; one more reason to use Gentoo. but I pulled out Gentoo with a hope it makes contributing to upstream easy. I wish there is a FEATURE that puts a git repo in /usr/local/src/debug/ from which I can submit pull requests.

Last edited by necktwi on Sat Nov 03, 2018 2:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 03, 2018 12:37 pm    Post subject: Reply with quote

necktwi,

Code:
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


Don't use ccache. Its more trouble than its worth.
When you get a build fail, turn off both distcc distcc-pump. distcc is "mostly harmless" but not always.
Pump mode makes it less reliable.

Code:
MAKEOPTS="-j9 -l4"
is scary. Not all build systems honour the -l4

-j1 is safer but not everything will build in 1G RAM and 4G swap on a Pi 3 anyway.
It goes into death by swapping due to the lack of IO bandwidth.
_________________
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
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22870

PostPosted: Sat Nov 03, 2018 3:34 pm    Post subject: Reply with quote

necktwi wrote:
I wish there is a FEATURE that puts a git repo in /usr/local/src/debug/ from which I can submit pull requests.
For upstreams that use git, you can use a live ebuild, optionally pinned to a specific commit if you want to track a release. For upstreams which do not use git, you could not send them a useful pull request anyway, since their tooling may not be able to readily convert a git pull request into whatever form their repository requires. Thus, your first step for such projects should be to help them convert to git. ;)
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