3

I downloaded the gdb sources from https://launchpad.net/gdb-linaro/.

I want to build the gdb for aarch64.

As mentioned in README file I set CC to the cross compiler that I have

  1. CC=aarch64-linux-gnu-gcc
  2. ./configure --host=aarch64

However this doesn't seem right as this sets the target to "aarch64-unknown-none"

And later make fails as below *** BFD does not support target aarch64-unknown-none.

I am not sure how to pass the correct target name required to cross compile gdb on my system.

Any suggestions will help! :)

Thanks,

MS

MS.
  • 881
  • 2
  • 9
  • 23
  • Have you tried `CC=aarch64-linux-gnu-` ? – Gluttton Aug 09 '17 at 13:15
  • I tried this now. But it didn't work (seems configure needs the compiler option). Below is the error in config.log 70 configure:4201: aarch64-linux-gnu- --version >&5 71 ./configure: line 4203: aarch64-linux-gnu-: command not found – MS. Aug 09 '17 at 13:27
  • Have you installed cross-compiler package (something line `gcc-XXX-aarch64-linux-gnu-YYY`)? – Gluttton Aug 09 '17 at 13:31
  • Yep. Installed the packages for Ubuntu. And the same are available in /usr/bin/ as well.. – MS. Aug 09 '17 at 13:42

1 Answers1

2

It seems below does the job.

./configure --host=aarch64-linux-gnu

Thank you for the comments..

BR,

MS

MS.
  • 881
  • 2
  • 9
  • 23