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: 54642 Location: 56N 3W
|
Posted: Sat Oct 27, 2018 9:41 am Post subject: |
|
|
necktwi,
Code: | CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -Wno-error -ggdb " |
Don't do -ggdb in make.conf.
Code: | make: *** [Makefile:116: keys-ssl.c] Segmentation fault | It looks like gcc broke.
Be warned that not all build systems honour the -jX -lY options either. _________________ 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
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54642 Location: 56N 3W
|
Posted: Sat Oct 27, 2018 2:54 pm Post subject: |
|
|
necktwi,
Code: | make -j1 PREFIX=/usr SBINDIR=$(PREFIX)/sbin/ LIBDIR=$(PREFIX)/lib64 UDEV_RULE_DIR=/lib/udev/rules.d REG_BIN=/usr/lib/crda/regulatory.bin USE_OPENSSL=1 CC=aarch64-unknown-linux-gnu-gcc V=1 WERROR= all_noverify
./utils/key2pub.py --ssl pubkeys/linville.key.pub.pem pubkeys/sforshee.key.pub.pem keys-ssl.c
make: *** [Makefile:116: keys-ssl.c] Segmentation fault |
That's better but looks like gcc is still broken.
Can you build anything at all?
Code: | [ebuild N ] net-wireless/crda-3.18-r1 USE="libressl -gcrypt"
* IMPORTANT: 12 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items. |
libressl is mostly broken, unless you know different. Its not a drop in replacement for dev-libs/openssl. It works with some things but there is a lot of work to do to make it work system wide.
News items really are important. If you follow the -dev mailing list or read them elsewhere, you will be aware of the contents, so thats OK. _________________ 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: Sat Oct 27, 2018 4:08 pm Post subject: |
|
|
As I mentioned above, I successfully emerged "x264". Now I also emerged "sudo" successfully. I shall habituate reading the emerge news. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54642 Location: 56N 3W
|
Posted: Sat Oct 27, 2018 4:46 pm Post subject: |
|
|
necktwi,
Look in dmesg in case the segfault information is still there.
Pastebin all of dmesg if it is.
Regenerate the segfault if you need to then share dmesg.
That usually indicates what happened. _________________ 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: Tue Oct 30, 2018 7:28 am Post subject: |
|
|
emerge crda failed with above error and dmesg has nothing new after emerge but it already got following errors
Code: | ...
[ 0.119567] dmi: Firmware registration failed.
...
[ 0.739007] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
...
[ 6.234184] udevd[640]: specified group 'kvm' unknown
...
[ 8.862848] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
...
[ 17.891652] Bluetooth: hci0 command 0x0c03 tx timeout
...
[ 26.083713] Bluetooth: hci0: BCM: Reset failed (-110)
|
Thanq |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54642 Location: 56N 3W
|
Posted: Tue Oct 30, 2018 9:20 am Post subject: |
|
|
necktwi,
Code: | [ 0.119567] dmi: Firmware registration failed.
...
[ 0.739007] Error: Driver 'sdhost-bcm2835' is already registered, aborting... |
I get those but everything seems to work.
Code: | [ 6.234184] udevd[640]: specified group 'kvm' unknown |
Your kvm support is incomplete. It mostly won't matter as with only 1G RAM, running a KVM on a Pi is just a curiosity.
Code: | [ 8.862848] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50 |
Is information, not an error.
Code: | [ 17.891652] Bluetooth: hci0 command 0x0c03 tx timeout
...
[ 26.083713] Bluetooth: hci0: BCM: Reset failed (-110) |
Your bluetooth doesn't work.
There is nothing there that helps with the segfault.
Look at all the thingc gcc is dynamically linked with
Code: | $ lddtree /usr/bin/gcc-7.3.0
/usr/bin/gcc-7.3.0 (interpreter => /lib64/ld-linux-x86-64.so.2)
libm.so.6 => /lib64/libm.so.6
libc.so.6 => /lib64/libc.so.6
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
| and rebuild them. That sample is from my amd64. You need to run the lddtree command on your Pi.
glibc is there. It doesn't always distribute correctly. It builds with distcc but then fails when its used.
Rebuild glibc but without distcc. _________________ 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: Wed Oct 31, 2018 11:07 am Post subject: |
|
|
I've remerged glibc without distcc and ccache on RPi3B but couldn't rectify the error. |
|
Back to top |
|
|
necktwi Apprentice
Joined: 24 Aug 2018 Posts: 171
|
Posted: Wed Oct 31, 2018 4:50 pm Post subject: |
|
|
I tried remerging gcc but it hung the rpi on segmentation fault. this is the last error displayed.
Code: |
cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/method.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o cp/repo.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o aarch64-c.o glibc-c.o cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl -lz
kcollect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
^Z
[1]+ Stopped sudo FEATURES="-distcc -distcc-pump" CCACHE_RECACHE=YES emerge -av --with-bdeps=y --deep gcc
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54642 Location: 56N 3W
|
Posted: Wed Oct 31, 2018 6:43 pm Post subject: |
|
|
lnecktwi,
Code: | ld terminated with signal 11 [Segmentation fault] | Thats your clue. ld is the linker.
The linker belongs to sys-devel/binutils.
There are two different linkers, bfd, which is the old tried and tested one and the gold linker, which isn't ready for the prime time yet.
Try upgrading or rebuilding sys-devel/binutils to fix the linker.
The bad news is that you need a linker that works to link binutils.
You can try switching to the gold linker but build systems can force the linker of their choice with a CFLAG setting, so your global linker setting may not be honoured.
-- Edit --
Don't do that. ccache is OK when it works and when it goes wrong, you waste more time that it will ever save you sorting out the mess. _________________ 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: Wed Oct 31, 2018 6:49 pm Post subject: |
|
|
I was able to emerge binutils. but then merging crda failed with same error. so i started merging gcc. should check the result tmrw. |
|
Back to top |
|
|
|