mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jon Ringle <jon@ringle.org>
To: barebox@lists.infradead.org
Subject: scripts/mod/sumversion built by CC?
Date: Tue, 22 Mar 2011 01:02:06 -0400	[thread overview]
Message-ID: <AANLkTime_ymhX6RZoyYnA6T-6EszDoXV67meqpyCtWic@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 8279 bytes --]

When I have CONFIG_DEFAULT_ENVIRONMENT=y and try to build barebox, I see
HOSTCC scripts/mod/sumversion.o
then later I see it trying to build with CC and fails.

I don't think that its supposed to try to build sumversion.o with the cross
compiler toolchain.

Jon

make -f Makefile ARCH=arm
CROSS_COMPILE=/opt/crosstool-ng-1.9.0/arm-1136j-eabi/gcc-4.4.5-newlib-1.18.0-binutils-2.20.1/bin/arm-1136j-eabi-
make[1]: Entering directory `/home/ringlej/git/barebox'
make[2]: `include/generated/mach-types.h' is up to date.
  CHK     include/generated/version.h
  CHK     include/generated/utsrelease.h
  SYMLINK include/config.h -> arch/arm/boards/isc3//config.h
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC      lib/ctype.o
  CC      lib/rbtree.o
  CC      lib/display_options.o
  CC      lib/string.o
  CC      lib/vsprintf.o
  CC      lib/div64.o
  CC      lib/misc.o
  CC      lib/driver.o
  CC      lib/bus.o
  CC      lib/parameter.o
  CC      lib/xfuncs.o
  CC      lib/getopt.o
  CC      lib/readkey.o
  CC      lib/kfifo.o
  CC      lib/libbb.o
  CC      lib/libgen.o
  CC      lib/stringlist.o
  CC      lib/recursive_action.o
  CC      lib/make_directory.o
  CC      lib/bzlib.o
  CC      lib/bzlib_crctable.o
  CC      lib/bzlib_decompress.o
  CC      lib/bzlib_huffman.o
  CC      lib/bzlib_randtable.o
  CC      lib/crc32.o
  CC      lib/readline.o
  CC      lib/glob.o
  CC      lib/notifier.o
  CC      lib/copy_file.o
  CC      lib/random.o
  CC      lib/show_progress.o
  CC      lib/process_escape_sequence.o
  LD      lib/built-in.o
  CC      fs/ramfs.o
  CC      fs/devfs.o
  CC      fs/fs.o
  LD      fs/built-in.o
  CC      /home/ringlej/git/barebox/fs/fs.o
  CC      /home/ringlej/git/barebox/fs/devfs.o
  CC      /home/ringlej/git/barebox/fs/ramfs.o
  CC      /home/ringlej/git/barebox/lib/rbtree.o
  CC      /home/ringlej/git/barebox/lib/libbb.o
  CC      /home/ringlej/git/barebox/lib/recursive_action.o
  CC      /home/ringlej/git/barebox/lib/libgen.o
  CC      /home/ringlej/git/barebox/lib/div64.o
  CC      /home/ringlej/git/barebox/lib/getopt.o
  CC      /home/ringlej/git/barebox/lib/notifier.o
  CC      /home/ringlej/git/barebox/lib/readline.o
  CC      /home/ringlej/git/barebox/lib/readline_simple.o
  CC      /home/ringlej/git/barebox/lib/bus.o
  CC      /home/ringlej/git/barebox/lib/readkey.o
  CC      /home/ringlej/git/barebox/lib/random.o
  CC      /home/ringlej/git/barebox/lib/bzlib.o
  CC      /home/ringlej/git/barebox/lib/kfifo.o
  CC      /home/ringlej/git/barebox/lib/stringlist.o
  CC      /home/ringlej/git/barebox/lib/ctype.o
  CC      /home/ringlej/git/barebox/lib/process_escape_sequence.o
  CC      /home/ringlej/git/barebox/lib/driver.o
  CC      /home/ringlej/git/barebox/lib/misc.o
  CC      /home/ringlej/git/barebox/lib/bzlib_crctable.o
  CC      /home/ringlej/git/barebox/lib/copy_file.o
  CC      /home/ringlej/git/barebox/lib/string.o
  CC      /home/ringlej/git/barebox/lib/bzlib_randtable.o
  CC      /home/ringlej/git/barebox/lib/glob.o
  CC      /home/ringlej/git/barebox/lib/vsprintf.o
  CC      /home/ringlej/git/barebox/lib/show_progress.o
  CC      /home/ringlej/git/barebox/lib/crc32.o
  CC      /home/ringlej/git/barebox/lib/make_directory.o
  CC      /home/ringlej/git/barebox/lib/bzlib_huffman.o
  CC      /home/ringlej/git/barebox/lib/parameter.o
  CC      /home/ringlej/git/barebox/lib/display_options.o
  CC      /home/ringlej/git/barebox/lib/bzlib_decompress.o
  CC      /home/ringlej/git/barebox/lib/xfuncs.o
  CC      /home/ringlej/git/barebox/scripts/mod/sumversion.o
/home/ringlej/git/barebox/scripts/mod/sumversion.c:1:24: error:
netinet/in.h: No such file or directory
/home/ringlej/git/barebox/scripts/mod/sumversion.c:5:20: error: stdint.h: No
such file or directory
/home/ringlej/git/barebox/scripts/mod/sumversion.c:7:19: error: ctype.h: No
such file or directory
/home/ringlej/git/barebox/scripts/mod/sumversion.c:10:20: error: limits.h:
No such file or directory
In file included from /home/ringlej/git/barebox/scripts/mod/sumversion.c:11:
/home/ringlej/git/barebox/scripts/mod/modpost.h:5:23: error: sys/types.h: No
such file or directory
/home/ringlej/git/barebox/scripts/mod/modpost.h:6:22: error: sys/stat.h: No
such file or directory
/home/ringlej/git/barebox/scripts/mod/modpost.h:7:22: error: sys/mman.h: No
such file or directory
/home/ringlej/git/barebox/scripts/mod/modpost.h:9:20: error: unistd.h: No
such file or directory
/home/ringlej/git/barebox/scripts/mod/modpost.h:21:1: warning: "ELF_ST_BIND"
redefined
In file included from /home/ringlej/git/barebox/scripts/mod/modpost.h:10,
                 from /home/ringlej/git/barebox/scripts/mod/sumversion.c:11:
include/elf.h:119:1: warning: this is the location of the previous
definition
In file included from /home/ringlej/git/barebox/scripts/mod/sumversion.c:11:
/home/ringlej/git/barebox/scripts/mod/modpost.h:22:1: warning: "ELF_ST_TYPE"
redefined
In file included from /home/ringlej/git/barebox/scripts/mod/modpost.h:10,
                 from /home/ringlej/git/barebox/scripts/mod/sumversion.c:11:
include/elf.h:120:1: warning: this is the location of the previous
definition
In file included from /home/ringlej/git/barebox/scripts/mod/sumversion.c:11:
/home/ringlej/git/barebox/scripts/mod/modpost.h:122: error: expected
specifier-qualifier-list before 'Elf32_Section'
/home/ringlej/git/barebox/scripts/mod/sumversion.c: In function
'le32_to_cpu_array':
/home/ringlej/git/barebox/scripts/mod/sumversion.c:75: warning: implicit
declaration of function 'ntohl'
/home/ringlej/git/barebox/scripts/mod/sumversion.c: In function
'cpu_to_le32_array':
/home/ringlej/git/barebox/scripts/mod/sumversion.c:83: warning: implicit
declaration of function 'htonl'
/home/ringlej/git/barebox/scripts/mod/sumversion.c: In function
'parse_file':
/home/ringlej/git/barebox/scripts/mod/sumversion.c:273: warning: implicit
declaration of function 'isspace'
/home/ringlej/git/barebox/scripts/mod/sumversion.c: In function
'parse_source_files':
/home/ringlej/git/barebox/scripts/mod/sumversion.c:303: warning: implicit
declaration of function 'malloc'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:303: warning: passing
argument 1 of 'do_nofail' makes pointer from integer without a cast
/home/ringlej/git/barebox/scripts/mod/modpost.h:89: note: expected 'void *'
but argument is of type 'int'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:314: warning: passing
argument 1 of 'do_nofail' makes pointer from integer without a cast
/home/ringlej/git/barebox/scripts/mod/modpost.h:89: note: expected 'void *'
but argument is of type 'int'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:372: warning: implicit
declaration of function 'free'
/home/ringlej/git/barebox/scripts/mod/sumversion.c: In function
'get_src_version':
/home/ringlej/git/barebox/scripts/mod/sumversion.c:385: error: 'PATH_MAX'
undeclared (first use in this function)
/home/ringlej/git/barebox/scripts/mod/sumversion.c:385: error: (Each
undeclared identifier is reported only once
/home/ringlej/git/barebox/scripts/mod/sumversion.c:385: error: for each
function it appears in.)
/home/ringlej/git/barebox/scripts/mod/sumversion.c:386: warning: implicit
declaration of function 'getenv'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:386: warning:
initialization makes pointer from integer without a cast
/home/ringlej/git/barebox/scripts/mod/sumversion.c:385: warning: unused
variable 'filelist'
/home/ringlej/git/barebox/scripts/mod/sumversion.c: In function
'write_version':
/home/ringlej/git/barebox/scripts/mod/sumversion.c:437: warning: implicit
declaration of function 'open'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:444: warning: implicit
declaration of function 'lseek'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:444: error: 'SEEK_SET'
undeclared (first use in this function)
/home/ringlej/git/barebox/scripts/mod/sumversion.c:450: warning: implicit
declaration of function 'write'
/home/ringlej/git/barebox/scripts/mod/sumversion.c:456: warning: implicit
declaration of function 'close'
make[2]: *** [/home/ringlej/git/barebox/scripts/mod/sumversion.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [common] Error 2
make[1]: Leaving directory `/home/ringlej/git/barebox'
make: *** [all] Error 2

[-- Attachment #1.2: Type: text/html, Size: 10051 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

                 reply	other threads:[~2011-03-22  5:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTime_ymhX6RZoyYnA6T-6EszDoXV67meqpyCtWic@mail.gmail.com \
    --to=jon@ringle.org \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox