View previous topic :: View next topic |
Author |
Message |
necktwi Apprentice
Joined: 24 Aug 2018 Posts: 171
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31355 Location: here
|
Posted: Thu Nov 01, 2018 3:28 pm Post subject: |
|
|
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 |
|
|
necktwi Apprentice
Joined: 24 Aug 2018 Posts: 171
|
|
Back to top |
|
|
erm67 l33t
Joined: 01 Nov 2005 Posts: 653 Location: EU
|
Posted: Sat Nov 03, 2018 8:03 am Post subject: |
|
|
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 |
|
|
necktwi Apprentice
Joined: 24 Aug 2018 Posts: 171
|
Posted: Sat Nov 03, 2018 9:37 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54643 Location: 56N 3W
|
Posted: Sat Nov 03, 2018 12:20 pm Post subject: |
|
|
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 |
|
|
necktwi Apprentice
Joined: 24 Aug 2018 Posts: 171
|
Posted: Sat Nov 03, 2018 12:24 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54643 Location: 56N 3W
|
Posted: Sat Nov 03, 2018 12:37 pm Post subject: |
|
|
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.
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22871
|
Posted: Sat Nov 03, 2018 3:34 pm Post subject: |
|
|
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 |
|
|
|