PinePhone Cross Compiler Install
#1
I'm trying to install a GCC cross compiler so I can write so really bad code for when my PhinePhone gets here; a 5th grader is probably a better coder then I am.

Anyway, I'm using these instructions, and it work just fine untill I try to install glibc

https://preshing.com/20141119/how-to-bui...-compiler/

Code:
make -j4 csu/subdir_lib
returns this
make[2]: *** [/home/dgdimick/PinePhone/CrossCompiler/build-glibc/sysd-rules:9: /                                                                                                            home/dgdimick/PinePhone/CrossCompiler/build-glibc/csu/libc-start.o] Error 1
make[2]: *** Waiting for unfinished jobs....
check_fds.c: Assembler messages:
check_fds.c:81: Error: no such instruction: `brk '
make[2]: *** [../o-iterator.mk:9: /home/dgdimick/PinePhone/CrossCompiler/build-g                                                                                                            libc/csu/check_fds.o] Error 1
In file included from ../include/errno.h:25,
                from ../csu/libc-tls.c:20,
                from ../sysdeps/aarch64/libc-tls.c:19:
../sysdeps/aarch64/libc-tls.c: In function ‘__tls_get_addr’:
../sysdeps/aarch64/nptl/tls.h:91:19: error: ‘__builtin_thread_pointer’ is not su                                                                                                            pported on this target
  91 |  (((tcbhead_t *) __builtin_thread_pointer ())->dtv)
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../sysdeps/aarch64/libc-tls.c:30:16: note: in expansion of macro ‘THREAD_DTV’
  30 |  dtv_t *dtv = THREAD_DTV ();
      |                ^~~~~~~~~~
make[2]: *** [/home/dgdimick/PinePhone/CrossCompiler/build-glibc/sysd-rules:485:                                                                                                              /home/dgdimick/PinePhone/CrossCompiler/build-glibc/csu/libc-tls.o] Error 1
make[2]: Leaving directory '/home/dgdimick/PinePhone/CrossCompiler/glibc-2.29/cs                                                                                                            u'
make[1]: *** [Makefile:258: csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/dgdimick/PinePhone/CrossCompiler/glibc-2.29'
make: *** [Makefile:9: csu/subdir_lib] Error 2

dgdimick@Samba:~/PinePhone/CrossCompiler/build-glibc $



Any ideas? Or am I just doing this wrong, like there's already as package to install?

I'm running on an old laptop that has Ubuntu installed.
  Reply
#2
I would expect ubuntu to have a packaged crossdevelopment toolchain available - there's gcc-aarch64-linux-gnu at least. It probably depends which distro you're targeting though - for example PostmarketOS has a script that builds its own crossdev environment.
  Reply
#3
Here's a couple of instruction/discussion pages on cross compilation for Gentoo, maybe you will find these useful or get some direction from reading these:

https://wiki.gentoo.org/wiki/Cross_build_environment
https://forums.gentoo.org/viewtopic-p-8024368.html
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Heart What native PinePhone application would you like to see in the near future? kern707 54 5,218 1 hour ago
Last Post: biketool
  Pinephone on Cricket Wireless (USA) no service acm006 38 3,558 04-15-2021, 12:06 AM
Last Post: calinb
  Pinephone inexpensive carriers and free carriers linux_n 6 765 04-13-2021, 10:05 AM
Last Post: pagesix1536
  PinePhone can't make outbound calls rocketchik24 3 404 04-11-2021, 03:57 PM
Last Post: dukla2000
  PlayStation emulator on Pinephone PinePS1 2 1,205 04-08-2021, 01:43 AM
Last Post: naymeo
Question Pinephone mainboards on stock again somewhen? myxor 4 438 04-07-2021, 06:39 AM
Last Post: biketool
  UPDATED: 17-distro multi-boot image for Pinephone (incl. 3GiB variant) megous 132 79,037 04-06-2021, 05:22 AM
Last Post: Codenul
Lightbulb Next Pinephone should be smaller (imho) _kiwi 7 641 04-05-2021, 11:23 PM
Last Post: biketool
  Windows 10 (KVM) on PinePhone Danct12 5 2,405 04-04-2021, 09:05 AM
Last Post: nas
  pinephone 2 specs discussion - 5G WiFi6 BT5 NFC? - mitcoes 13 1,137 04-02-2021, 06:55 AM
Last Post: bitsandnumbers

Forum Jump:


Users browsing this thread: 1 Guest(s)