Home > OS >  Aarch64 - elf can compile and GDB?
Aarch64 - elf can compile and GDB?

Time:09-22

Now with GCC: GCC - linaro - 7.5.0-2019.12 - x86_64_aarch64 - elf
GDB, GDB - 8.3.1

Compile failure: aarch64 - elf - GCC test. C
You will be prompted crt0. O,

Want to ask next compile properly? If the compiler parameters how to configure the GDB confgiure,
Thank you very much!

CodePudding user response:

Sure to compile, feel you means in the cross compiling

CodePudding user response:

reference 1st floor mouse_zhu response:
sure you can compile, feel you means in the cross compile

Is a cross compiler but not compile successfully

CodePudding user response:

1. Whether you cross tool chain is complete?
2. GDB - 8.3.1 you is how to configure? Stick down your configuration,

CodePudding user response:


The export PATH=/home/GMB/code/GDB/GCC - linaro - 7.5.0-2019.12 - x86_64_aarch64 - elf/bin: $PATH
Export CC="aarch64 - elf - GCC -- sysroot=/home/GMB/code/GDB/sysroot - newlib linaro - 2019.12 - aarch64 - elf"

./configure -- prefix=` PWD ` \
CFLAGS="- O2 - v - static - specs.=rdimon specs - Wl - start - group - LGCC - lc - lm - lrdimon - Wl, - end - group" \
CXXFLAGS="- O2 - v - static - specs.=rdimon specs - Wl - start - group - LGCC - lc - lm - lrdimon - Wl, - end - group" \
- host=aarch64 - elf \
-- target=aarch64 - elf


Compile report:

The rm -f util. O
Checking been ln -s works... Yes
Checking the maximum length of the command line arguments... The Compiler executable checksum: e1In file included the from../../readline rltty. C: 44:0:
./../readline rltty. H: beyond: fatal error: sgtty. H: No to the file or directory
# include & lt; Sgtty. H>
^ ~ ~ ~ ~ ~ ~ ~ ~
Compilation terminated.
03 f8fc478a9c99c0382ec249using built - in specs.



CodePudding user response:

reference gt_sup reply: 3/f
1. Whether you cross tool chain is complete?
2. GDB - 8.3.1 you is how to configure? Stick down your configuration,


The configuration above
Report the fault is different, different machine,

CodePudding user response:

You this is short of package, no glibc - dev

CodePudding user response:

refer to 6th floor mouse_zhu response:
you that this is short of package, no glibc - dev

The/usr/include/have this file, if you include this path will be submitted to the other's fault,,,,
  • Related