Your message dated Tue, 18 Aug 2015 15:07:37 +0200
with message-id <[email protected]>
and subject line this is a bare-metal cross compiler
has caused the Debian Bug report #782813,
regarding gcc-arm-none-eabi: fail to compile Hello World program
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
782813: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782813
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gcc-arm-none-eabi
Version: 4.8.4-1+11-1
Severity: important

Dear Maintainers,

I fail to compile the Hello World program using the command:

$ arm-none-eabi-gcc -o hello hello.c

I suspect it is due to some dependencies not being satisfied.
Thanks for your attention!



*** /home/alexvong1995/c/hello/hello.c
#include <stdio.h>

int
main(void)
{
  puts("Hello World!");
  return 0;
}




*** /home/alexvong1995/c/hello/arm-none-eabi-gcc-output
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-exit.o):
In function `exit':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:70: undefined
reference to `_exit'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
sbrkr.o): In function `_sbrk_r':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/reent/../../../../../newlib/libc/reent/sbrkr.c:58: undefined
reference to `_sbrk'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
writer.o): In function `_write_r':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/reent/../../../../../newlib/libc/reent/writer.c:58: undefined
reference to `_write'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
closer.o): In function `_close_r':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/reent/../../../../../newlib/libc/reent/closer.c:53: undefined
reference to `_close'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
fstatr.o): In function `_fstat_r':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/reent/../../../../../newlib/libc/reent/fstatr.c:62: undefined
reference to `_fstat'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
isattyr.o): In function `_isatty_r':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/reent/../../../../../newlib/libc/reent/isattyr.c:58: undefined
reference to `_isatty'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
lseekr.o): In function `_lseek_r':
/home/tin/projects/debian/arm-toolchain/collab-maint/newlib/build/arm-none-
eabi/newlib/libc/reent/../../../../../newlib/libc/reent/lseekr.c:58: undefined
reference to `_lseek'
/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-
readr.o): In function `_read_r':

--- End Message ---
--- Begin Message ---
You are absolutely correct that the compiler provided by the
gcc-arm-none-eabi package is not useful without other supporting
software.

The errors you report are the "usual" things you get if you don't have a
suitable C library / board support package for your target installed.

The problem is that this is a bare-metal cross compiler (meant for
compiling for arbitrary ARM target devices that are *not* running 
Linux), and thus it is impossible to anticipate what target you might be
trying to compile for.

I'm going to close this bug with no further action taken, since the
results reported are exactly as expected.

Bdale

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to