All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ed Swarthout <ed.swarthout@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] mkenvimage.c:119:35: error: ‘PLAIN_VERSION’ undeclared
Date: Tue, 29 May 2018 23:51:42 +0000	[thread overview]
Message-ID: <VI1PR04MB1533F8685E647C4F03D3C9CA996D0@VI1PR04MB1533.eurprd04.prod.outlook.com> (raw)

I'm not sure why mkenvimage.c is expecting the system include path to have u-boot's version.h, but it is causing the subject error message if it contains someone elses.  See:

$ echo '#error Should not include /usr/local/include/version.h' > /usr/local/include/version.h
$ make O=/home/ed/bsp/build/uboot_sand sandbox_defconfig
$ make O=/home/ed/bsp/build/uboot_sand  

make[1]: Entering directory '/f/deb/files/bsp/build/uboot_sand'
  CHK     include/config/uboot.release
  Using /f/deb/files/bsp/git/u-boot as source for U-Boot
  GEN     ./Makefile
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  HOSTCC  tools/mkenvimage.o
In file included from /f/deb/files/bsp/git/u-boot/tools/mkenvimage.c:25:0:
/usr/local/include/version.h:1:2: error: #error Should not include /usr/local/include/version.h
 #error Should not include /usr/local/include/version.h
  ^
/f/deb/files/bsp/git/u-boot/tools/mkenvimage.c: In function ‘main’:
/f/deb/files/bsp/git/u-boot/tools/mkenvimage.c:119:35: error: ‘PLAIN_VERSION’ undeclared (first use in this function)
    printf("%s version %s\n", prg, PLAIN_VERSION);
                                   ^
/f/deb/files/bsp/git/u-boot/tools/mkenvimage.c:119:35: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.host:114: recipe for target 'tools/mkenvimage.o' failed
make[2]: *** [tools/mkenvimage.o] Error 1
/f/deb/files/bsp/git/u-boot/Makefile:1372: recipe for target 'tools' failed
make[1]: *** [tools] Error 2
make[1]: Leaving directory '/f/deb/files/bsp/build/uboot_sand'
Makefile:148: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

This has been here for awhile and is in current master.
I'm not sure why it was done this way, so I'm hesitate to provide a fix.

Ed Swarthout

                 reply	other threads:[~2018-05-29 23:51 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=VI1PR04MB1533F8685E647C4F03D3C9CA996D0@VI1PR04MB1533.eurprd04.prod.outlook.com \
    --to=ed.swarthout@nxp.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.