mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Kevin Du Huanpeng <u74147@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [Makefile bug] make barebox.s : dead loop
Date: Mon, 2 Dec 2013 20:27:39 +0800	[thread overview]
Message-ID: <CANvTkNa710tfGW0=xeLwg-Qrb3YccoKui7d6zWMnio5e4CSZGg@mail.gmail.com> (raw)
In-Reply-To: <20131202091320.GF24559@pengutronix.de>

hi, Hauer:
There is two targets of barebox.S,
one is X86,
I just try to compile the x86 barebox,
to  test if there is the same problem with x86 arch.
but i got this:
0. my host & gcc:
$ cat /proc/version
Linux version 3.8.0-29-generic (buildd@akateko) (gcc version 4.6.3
(Ubuntu/Linaro 4.6.3-1ubuntu5) ) #42~precise1-Ubuntu SMP Wed Aug 14
15:31:16 UTC 2013
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.3-1ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i686
--with-tune=generic --enable-checking=release --build=i686-linux-gnu
--host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)


1. edit Makefile
  ARCH=x86
  CROSS_COMPILE=
2. $ make generic_defconfig
3.  make

  LD      arch/x86/boot/built-in.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      common/version.o
  LD      common/built-in.o
  LD      barebox
ld: section .eh_frame loaded at [000000000001605c,000000000001f01b]
overlaps section .barebox_initcalls loaded at
[000000000001605c,00000000000160b7]
make: *** [barebox] Error 1
dev@bogon:~/wr720n/bug.dis/x86$

2013/12/2 Sascha Hauer <s.hauer@pengutronix.de>:
> On Mon, Dec 02, 2013 at 04:36:50PM +0800, Kevin Du Huanpeng wrote:
>> I add barebox.s after the target barebox.S,
>> It works.
>> maybe should add the same thing with
>>
>> ----------
>> ifdef CONFIG_X86
>> barebox.S: barebox
>> ifdef CONFIG_X86_HDBOOT
>> ------------
>>
>>
>> @@ -723,7 +724,7 @@ endif
>>         @echo " * Init Calls content" >> barebox.S
>>         $(Q)$(OBJDUMP) -j .barebox_initcalls -d barebox >> barebox.S
>>  else
>> -barebox.S: barebox FORCE
>> +barebox.S barebox.s: barebox FORCE
>>         $(call if_changed,disasm)
>
> Normally you are supposed to call 'make barebox.S' (with uppercase 'S'),
> but I think it's fine to just add the same target with a lowercase 's'
> like you did to make both work. Care to send a proper patch with
> Signed-off-by?
>
> Sascha
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 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:[~2013-12-02 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-02  8:22 Kevin Du Huanpeng
2013-12-02  8:36 ` Kevin Du Huanpeng
2013-12-02  9:13   ` Sascha Hauer
2013-12-02 12:27     ` Kevin Du Huanpeng [this message]
2013-12-03 11:25       ` Sascha Hauer
2013-12-04 14:17         ` Kevin Du Huanpeng

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='CANvTkNa710tfGW0=xeLwg-Qrb3YccoKui7d6zWMnio5e4CSZGg@mail.gmail.com' \
    --to=u74147@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox