LD error building uboot
#1
Following the instructions here on an archlinux:

https://wiki.pine64.org/wiki/U-Boot

For arm-trusted-firmware v2.4 I am getting:


Code:
$ make PLAT=sun50i_a64 -j4 -k
Building sun50i_a64
  LD      /home/lash/src/build/arm-trusted-firmware/2.4/build/sun50i_a64/release/bl31/bl31.elf
aarch64-linux-gnu-ld.bfd: warning: /home/lash/src/build/arm-trusted-firmware/2.4/build/sun50i_a64/release/bl31/bl31.elf has a LOAD segment with RWX permissions
make: *** [Makefile:1105: /home/lash/src/build/arm-trusted-firmware/2.4/build/sun50i_a64/release/bl31/bl31.elf] Error 1
make: Target 'all' not remade because of errors.

Code:
$ ld --version

GNU ld (GNU Binutils) 2.42.0
  Reply
#2
Try removing -Wl,--fatal-warnings here:
https://github.com/crust-firmware/arm-tr...efile#L421
and --fatal-warnings here:
https://github.com/crust-firmware/arm-tr...efile#L438
  Reply
#3
great that worked.

building uboot also failed. the version string passed to the pylibftd module generation in scripts/dtc didnt get generated properly because the makefile vars were not passed down. In lieu of figuring out how to pass them on (and anyway the sublevel var was empry), I just added this to scripts/dtc/Makefile and it built:

VERSION = 2021
PATCHLEVEL = 07
SUBLEVEL = 00
EXTRAVERSION = -rc4
NAME
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Star64/Starpro64 kernel building global 0 370 10-04-2024, 08:36 PM
Last Post: global
  Unable to connect to Pine64 IRC channel due to certificate error? Must-Borrow 1 1,155 03-10-2024, 02:43 PM
Last Post: Must-Borrow
  Im thinking of building a Pine64 cluster Theirat1991 1 1,280 01-12-2024, 03:31 AM
Last Post: KC9UDX
  Advice on building a simple computer… SeeMossRun 4 4,383 05-24-2021, 05:25 PM
Last Post: barray
  Building Kernel App for fast GPIO nimblemotors 0 1,607 05-21-2021, 11:56 PM
Last Post: nimblemotors
  Ordering Pinephone - Error in Shipping cost calculation Iolaum 1 3,810 07-19-2020, 02:22 PM
Last Post: SpoofyKid
  Website error - incorrect download link rrosenheim 1 2,787 07-01-2019, 02:28 PM
Last Post: fire219

Forum Jump:


Users browsing this thread: 2 Guest(s)