* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
[not found] <CANCHnQrEth2MVTXpvUucoHa2+8dAZSrt0XF5B1ax2oVQFfODZA@mail.gmail.com>
@ 2017-05-10 10:15 ` Jeroen Roovers
2017-05-11 4:31 ` Bin Meng
0 siblings, 1 reply; 7+ messages in thread
From: Jeroen Roovers @ 2017-05-10 10:15 UTC (permalink / raw)
To: u-boot
Apologies, I was using the wrong sender address.
---------- Forwarded message ----------
From: Jeroen Roovers <jeroen.roovers@airfi.aero>
Date: 10 May 2017 at 12:12
Subject: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
(.text.checkcpu+0x0): multiple definition of `checkcpu'
arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
To: u-boot at lists.denx.de
Trying to compile an x86_64 u-boot with EFI support:
arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
(.text.checkcpu+0x0): multiple definition of `checkcpu'
arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
/home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
multiple definition of `misc_init_r'
arch/x86/cpu/efi/built-in.o:(.text.misc_init_r+0x0): first defined here
arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
/home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
multiple definition of `print_cpuinfo'
arch/x86/cpu/efi/built-in.o:(.text.print_cpuinfo+0x0): first defined here
make[2]: *** [scripts/Makefile.build:359: arch/x86/cpu/built-in.o] Error 1
make[1]: *** [Makefile:1234: arch/x86/cpu] Error 2
make[1]: *** Waiting for unfinished jobs....
with the attached configuration. Am I doing it wrong?
Kind regards,
jer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uboot.config
Type: application/octet-stream
Size: 16230 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170510/7469044c/attachment.obj>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
2017-05-10 10:15 ` [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here Jeroen Roovers
@ 2017-05-11 4:31 ` Bin Meng
2017-05-11 7:39 ` Jeroen Roovers
0 siblings, 1 reply; 7+ messages in thread
From: Bin Meng @ 2017-05-11 4:31 UTC (permalink / raw)
To: u-boot
+Simon
On Wed, May 10, 2017 at 6:15 PM, Jeroen Roovers <jer@airfi.aero> wrote:
> Apologies, I was using the wrong sender address.
>
>
> ---------- Forwarded message ----------
> From: Jeroen Roovers <jeroen.roovers@airfi.aero>
> Date: 10 May 2017 at 12:12
> Subject: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
> (.text.checkcpu+0x0): multiple definition of `checkcpu'
> arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
> To: u-boot at lists.denx.de
>
>
> Trying to compile an x86_64 u-boot with EFI support:
>
> arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
> (.text.checkcpu+0x0): multiple definition of `checkcpu'
> arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
> multiple definition of `misc_init_r'
> arch/x86/cpu/efi/built-in.o:(.text.misc_init_r+0x0): first defined here
> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
> multiple definition of `print_cpuinfo'
> arch/x86/cpu/efi/built-in.o:(.text.print_cpuinfo+0x0): first defined here
> make[2]: *** [scripts/Makefile.build:359: arch/x86/cpu/built-in.o] Error 1
> make[1]: *** [Makefile:1234: arch/x86/cpu] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> with the attached configuration. Am I doing it wrong?
I don't have the environment to test but did you use efi-x86_defconfig?
Regards,
Bin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
2017-05-11 4:31 ` Bin Meng
@ 2017-05-11 7:39 ` Jeroen Roovers
2017-05-16 0:18 ` Simon Glass
2017-05-16 7:26 ` Bin Meng
0 siblings, 2 replies; 7+ messages in thread
From: Jeroen Roovers @ 2017-05-11 7:39 UTC (permalink / raw)
To: u-boot
On 11 May 2017 at 06:31, Bin Meng <bmeng.cn@gmail.com> wrote:
> +Simon
>
> On Wed, May 10, 2017 at 6:15 PM, Jeroen Roovers <jer@airfi.aero> wrote:
>> Trying to compile an x86_64 u-boot with EFI support:
>>
>> arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
>> (.text.checkcpu+0x0): multiple definition of `checkcpu'
>> arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
>> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
>> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
>> multiple definition of `misc_init_r'
>> arch/x86/cpu/efi/built-in.o:(.text.misc_init_r+0x0): first defined here
>> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
>> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
>> multiple definition of `print_cpuinfo'
>> arch/x86/cpu/efi/built-in.o:(.text.print_cpuinfo+0x0): first defined here
>> make[2]: *** [scripts/Makefile.build:359: arch/x86/cpu/built-in.o] Error 1
>> make[1]: *** [Makefile:1234: arch/x86/cpu] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>>
>> with the attached configuration. Am I doing it wrong?
>
> I don't have the environment to test but did you use efi-x86_defconfig?
No, the config I attached has been edited because when I use
efi-x86_defconfig I get a mix of 32-bit and 64-bit objects:
/home/jer/airfi/airfi-base/apollo/output/host/usr/bin/x86_64-buildroot-linux-gnu-ld.bfd:
Relocatable linking with relocations from format elf32-i386
(board/efi/efi-x86/efi.o) to format elf64-x86-64
(board/efi/efi-x86/built-in.o) is not supported
make[2]: *** [scripts/Makefile.build:359: board/efi/efi-x86/built-in.o] Error 1
make[1]: *** [Makefile:1234: board/efi/efi-x86] Error 2
make[1]: *** Waiting for unfinished jobs....
So I needed to adapt it for a 64-bit target by enabling CONFIG_X86_RUN_64BIT
Kind regards,
jer
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
2017-05-11 7:39 ` Jeroen Roovers
@ 2017-05-16 0:18 ` Simon Glass
2017-05-16 7:26 ` Bin Meng
1 sibling, 0 replies; 7+ messages in thread
From: Simon Glass @ 2017-05-16 0:18 UTC (permalink / raw)
To: u-boot
Hi,
On 11 May 2017 at 01:39, Jeroen Roovers <jer@airfi.aero> wrote:
> On 11 May 2017 at 06:31, Bin Meng <bmeng.cn@gmail.com> wrote:
>> +Simon
>>
>> On Wed, May 10, 2017 at 6:15 PM, Jeroen Roovers <jer@airfi.aero> wrote:
>>> Trying to compile an x86_64 u-boot with EFI support:
>>>
>>> arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
>>> (.text.checkcpu+0x0): multiple definition of `checkcpu'
>>> arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
>>> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
>>> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
>>> multiple definition of `misc_init_r'
>>> arch/x86/cpu/efi/built-in.o:(.text.misc_init_r+0x0): first defined here
>>> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
>>> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
>>> multiple definition of `print_cpuinfo'
>>> arch/x86/cpu/efi/built-in.o:(.text.print_cpuinfo+0x0): first defined here
>>> make[2]: *** [scripts/Makefile.build:359: arch/x86/cpu/built-in.o] Error 1
>>> make[1]: *** [Makefile:1234: arch/x86/cpu] Error 2
>>> make[1]: *** Waiting for unfinished jobs....
>>>
>>> with the attached configuration. Am I doing it wrong?
>>
>> I don't have the environment to test but did you use efi-x86_defconfig?
>
> No, the config I attached has been edited because when I use
> efi-x86_defconfig I get a mix of 32-bit and 64-bit objects:
>
> /home/jer/airfi/airfi-base/apollo/output/host/usr/bin/x86_64-buildroot-linux-gnu-ld.bfd:
> Relocatable linking with relocations from format elf32-i386
> (board/efi/efi-x86/efi.o) to format elf64-x86-64
> (board/efi/efi-x86/built-in.o) is not supported
> make[2]: *** [scripts/Makefile.build:359: board/efi/efi-x86/built-in.o] Error 1
> make[1]: *** [Makefile:1234: board/efi/efi-x86] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> So I needed to adapt it for a 64-bit target by enabling CONFIG_X86_RUN_64BIT
How did you provoke this build error? Did something change?
Regards,
Simon
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
2017-05-11 7:39 ` Jeroen Roovers
2017-05-16 0:18 ` Simon Glass
@ 2017-05-16 7:26 ` Bin Meng
2017-05-23 7:58 ` Jeroen Roovers
1 sibling, 1 reply; 7+ messages in thread
From: Bin Meng @ 2017-05-16 7:26 UTC (permalink / raw)
To: u-boot
Hi Jeroen,
On Thu, May 11, 2017 at 3:39 PM, Jeroen Roovers <jer@airfi.aero> wrote:
> On 11 May 2017 at 06:31, Bin Meng <bmeng.cn@gmail.com> wrote:
>> +Simon
>>
>> On Wed, May 10, 2017 at 6:15 PM, Jeroen Roovers <jer@airfi.aero> wrote:
>>> Trying to compile an x86_64 u-boot with EFI support:
>>>
>>> arch/x86/cpu/x86_64/built-in.o: In function `checkcpu':
>>> (.text.checkcpu+0x0): multiple definition of `checkcpu'
>>> arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
>>> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
>>> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
>>> multiple definition of `misc_init_r'
>>> arch/x86/cpu/efi/built-in.o:(.text.misc_init_r+0x0): first defined here
>>> arch/x86/cpu/x86_64/built-in.o: In function `arch_setup_gd':
>>> /home/jer/airfi/airfi-base/buildroot-2016.02-apollo/output/build/uboot-2017.05/arch/x86/cpu/x86_64/cpu.c:18:
>>> multiple definition of `print_cpuinfo'
>>> arch/x86/cpu/efi/built-in.o:(.text.print_cpuinfo+0x0): first defined here
>>> make[2]: *** [scripts/Makefile.build:359: arch/x86/cpu/built-in.o] Error 1
>>> make[1]: *** [Makefile:1234: arch/x86/cpu] Error 2
>>> make[1]: *** Waiting for unfinished jobs....
>>>
>>> with the attached configuration. Am I doing it wrong?
>>
>> I don't have the environment to test but did you use efi-x86_defconfig?
>
> No, the config I attached has been edited because when I use
> efi-x86_defconfig I get a mix of 32-bit and 64-bit objects:
>
> /home/jer/airfi/airfi-base/apollo/output/host/usr/bin/x86_64-buildroot-linux-gnu-ld.bfd:
> Relocatable linking with relocations from format elf32-i386
> (board/efi/efi-x86/efi.o) to format elf64-x86-64
> (board/efi/efi-x86/built-in.o) is not supported
> make[2]: *** [scripts/Makefile.build:359: board/efi/efi-x86/built-in.o] Error 1
> make[1]: *** [Makefile:1234: board/efi/efi-x86] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> So I needed to adapt it for a 64-bit target by enabling CONFIG_X86_RUN_64BIT
CONFIG_X86_RUN_64BIT is supposed to be turned on a 64-bit U-Boot
build, not for EFI application.
Regards,
Bin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
2017-05-16 7:26 ` Bin Meng
@ 2017-05-23 7:58 ` Jeroen Roovers
2017-05-31 3:50 ` Simon Glass
0 siblings, 1 reply; 7+ messages in thread
From: Jeroen Roovers @ 2017-05-23 7:58 UTC (permalink / raw)
To: u-boot
On 16 May 2017 at 09:26, Bin Meng <bmeng.cn@gmail.com> wrote:
>> So I needed to adapt it for a 64-bit target by enabling CONFIG_X86_RUN_64BIT
>
> CONFIG_X86_RUN_64BIT is supposed to be turned on a 64-bit U-Boot
> build, not for EFI application.
Right, so I cannot use u-boot on a 64-bit only UEFI system?
Kind regards,
jer
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here
2017-05-23 7:58 ` Jeroen Roovers
@ 2017-05-31 3:50 ` Simon Glass
0 siblings, 0 replies; 7+ messages in thread
From: Simon Glass @ 2017-05-31 3:50 UTC (permalink / raw)
To: u-boot
Hi Jeroen,
On 23 May 2017 at 01:58, Jeroen Roovers <jer@airfi.aero> wrote:
> On 16 May 2017 at 09:26, Bin Meng <bmeng.cn@gmail.com> wrote:
>>> So I needed to adapt it for a 64-bit target by enabling CONFIG_X86_RUN_64BIT
>>
>> CONFIG_X86_RUN_64BIT is supposed to be turned on a 64-bit U-Boot
>> build, not for EFI application.
>
> Right, so I cannot use u-boot on a 64-bit only UEFI system?
You can - you need to build U-Boot as 32-bit and use the 64-bit stub.
This should be described in the README.x86 but please post if you have
questions.
Once U-Boot 64-bit support is fully complete you'll be able to run
U-Boot in 64-bit if you like. Even when running 32-bit U-Boot does
support natively starting a 64-bit kernel.
Regards,
Simon
>
> Kind regards,
> jer
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-05-31 3:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CANCHnQrEth2MVTXpvUucoHa2+8dAZSrt0XF5B1ax2oVQFfODZA@mail.gmail.com>
2017-05-10 10:15 ` [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here Jeroen Roovers
2017-05-11 4:31 ` Bin Meng
2017-05-11 7:39 ` Jeroen Roovers
2017-05-16 0:18 ` Simon Glass
2017-05-16 7:26 ` Bin Meng
2017-05-23 7:58 ` Jeroen Roovers
2017-05-31 3:50 ` Simon Glass
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.