mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegorslists@googlemail.com>
To: barebox <barebox@lists.infradead.org>
Subject: Cross-compiling target tools
Date: Wed, 25 Mar 2020 23:13:03 +0100	[thread overview]
Message-ID: <CAGm1_ktP_E_44J-CuM=Dy7JdLXXturWm9jC9MmYN9aq=ngNvxQ@mail.gmail.com> (raw)

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:
undefined reference to `xmalloc'
/tmp/cc0VGmDE.o: In function `envfs_save':
/home/user/MyProjects/oss/bootloaders/barebox-upstream/scripts/../common/environment.c:291:
undefined reference to `xzalloc'
/tmp/cc0VGmDE.o: In function `envfs_load':
/home/user/MyProjects/oss/bootloaders/barebox-upstream/scripts/../common/environment.c:594:
undefined reference to `xmalloc'
collect2: error: ld returned 1 exit status
/home/user/MyProjects/oss/bootloaders/barebox-upstream/scripts/Makefile:58:
recipe for target 'scripts/bareboxenv-target' failed
make[3]: *** [scripts/bareboxenv-target] Error 1
/home/user/MyProjects/oss/bootloaders/barebox-upstream/Makefile:426:
recipe for target 'scripts' failed
make[2]: *** [scripts] Error 2
Makefile:123: recipe for target '_all' failed
make[1]: *** [_all] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2

Yegor

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

             reply	other threads:[~2020-03-25 22:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-25 22:13 Yegor Yefremov [this message]
2020-03-26  6:36 ` Sascha Hauer
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='CAGm1_ktP_E_44J-CuM=Dy7JdLXXturWm9jC9MmYN9aq=ngNvxQ@mail.gmail.com' \
    --to=yegorslists@googlemail.com \
    --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