mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Yegor Yefremov <yegorslists@googlemail.com>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: Cross-compiling target tools
Date: Thu, 26 Mar 2020 07:36:14 +0100	[thread overview]
Message-ID: <20200326063614.GO27288@pengutronix.de> (raw)
In-Reply-To: <CAGm1_ktP_E_44J-CuM=Dy7JdLXXturWm9jC9MmYN9aq=ngNvxQ@mail.gmail.com>

Hi Yegor,

On Wed, Mar 25, 2020 at 11:13:03PM +0100, Yegor Yefremov wrote:
> How should one compile the target tools like bareboxenv-target etc. I
> get the following error:
> 
>  ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -C debian/build
> make: Entering directory
> '/home/user/MyProjects/oss/bootloaders/barebox-upstream/debian/build'
> make[3]: 'include/generated/mach-types.h' is up to date.
>   Using /home/user/MyProjects/oss/bootloaders/barebox-upstream as
> source for kernel
>   GEN     /home/user/MyProjects/oss/bootloaders/barebox-upstream/debian/build/Makefile
>   CHK     include/generated/version.h
>   CHK     include/generated/utsrelease.h
>   CREATE  include/config.h
>   CC      scripts/bareboxenv-target
> /tmp/cc0VGmDE.o: In function `file_action':
> /home/user/MyProjects/oss/bootloaders/barebox-upstream/scripts/../common/environment.c:119:
> undefined reference to `xzalloc'
> /tmp/cc0VGmDE.o: In function `concat_path_file':
> /home/user/MyProjects/oss/bootloaders/barebox-upstream/scripts/bareboxenv.c:79:

bareboxenv.c includes a compiler.h file which has static inline variants
of xmalloc and xzalloc. I just gave it a test here and it still works as
expected. Could you verify scripts/compiler.h is included by the
compiler? If not, what else is included which provides prototypes for
these functions? If scripts/compiler.h is not included then I would
expect some undeclared function warnings.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

  reply	other threads:[~2020-03-26  6:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-25 22:13 Yegor Yefremov
2020-03-26  6:36 ` Sascha Hauer [this message]
2020-03-26 15:31   ` Yegor Yefremov
2020-03-26 16:00     ` Ahmad Fatoum
2020-03-26 16:36       ` Yegor Yefremov

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=20200326063614.GO27288@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=yegorslists@googlemail.com \
    /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