[U-Boot] compilation failure on Powerpc with SPL

Hello York, Prabhakar,
I am seeing build failure on powerpc u-boot with SPL. I have checked B4860QDS_NAND_defconfig and T1040RDB_SDCARD_defconfig
common/built-in.o:(.got2+0x2a4): undefined reference to `do_bootd' scripts/Makefile.spl:333: recipe for target 'spl/u-boot-spl' failed make[1]: *** [spl/u-boot-spl] Error 1 Makefile:1396: recipe for target 'spl/u-boot-spl' failed make: *** [spl/u-boot-spl] Error 2
Regards Ashish

Hi York,
Can you please share details of code-base.
Regards, Prabhakar
From: Ashish Kumar Sent: Tuesday, July 25, 2017 4:13 PM To: York Sun york.sun@nxp.com; Prabhakar Kushwaha prabhakar.kushwaha@nxp.com; u-boot@lists.denx.de Subject: compilation failure on Powerpc with SPL
Hello York, Prabhakar,
I am seeing build failure on powerpc u-boot with SPL. I have checked B4860QDS_NAND_defconfig and T1040RDB_SDCARD_defconfig
common/built-in.o:(.got2+0x2a4): undefined reference to `do_bootd' scripts/Makefile.spl:333: recipe for target 'spl/u-boot-spl' failed make[1]: *** [spl/u-boot-spl] Error 1 Makefile:1396: recipe for target 'spl/u-boot-spl' failed make: *** [spl/u-boot-spl] Error 2
Regards Ashish

Sorry for missing the details.
repo: git://git.denx.de/u-boot.git
commit: e14b1169c0c5a1b362b41451006b492bd16f2fff Merge: 409a81d 172b2e0b Author: Tom Rini trini@konsulko.com Date: Wed Jul 12 08:16:41 2017 -0400
Merge git://www.denx.de/git/u-boot-marvell
Regards Ashish
From: Prabhakar Kushwaha Sent: Tuesday, July 25, 2017 4:33 PM To: Ashish Kumar ashish.kumar@nxp.com; York Sun york.sun@nxp.com; u-boot@lists.denx.de Subject: RE: compilation failure on Powerpc with SPL
Hi York,
Can you please share details of code-base.
Regards, Prabhakar
From: Ashish Kumar Sent: Tuesday, July 25, 2017 4:13 PM To: York Sun <york.sun@nxp.commailto:york.sun@nxp.com>; Prabhakar Kushwaha <prabhakar.kushwaha@nxp.commailto:prabhakar.kushwaha@nxp.com>; u-boot@lists.denx.demailto:u-boot@lists.denx.de Subject: compilation failure on Powerpc with SPL
Hello York, Prabhakar,
I am seeing build failure on powerpc u-boot with SPL. I have checked B4860QDS_NAND_defconfig and T1040RDB_SDCARD_defconfig
common/built-in.o:(.got2+0x2a4): undefined reference to `do_bootd' scripts/Makefile.spl:333: recipe for target 'spl/u-boot-spl' failed make[1]: *** [spl/u-boot-spl] Error 1 Makefile:1396: recipe for target 'spl/u-boot-spl' failed make: *** [spl/u-boot-spl] Error 2
Regards Ashish

I checked the head of master branch d56b4b1 and e14b116 but don't see compiling error. My toolchain is gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4).
York
On 07/25/2017 04:14 AM, Ashish Kumar wrote:
Sorry for missing the details.
repo:
git://git.denx.de/u-boot.git
commit:
e14b1169c0c5a1b362b41451006b492bd16f2fff
Merge: 409a81d 172b2e0b
Author: Tom Rini trini@konsulko.com
Date: Wed Jul 12 08:16:41 2017 -0400
Merge git://www.denx.de/git/u-boot-marvell
Regards
Ashish
*From:* Prabhakar Kushwaha *Sent:* Tuesday, July 25, 2017 4:33 PM *To:* Ashish Kumar ashish.kumar@nxp.com; York Sun york.sun@nxp.com; u-boot@lists.denx.de *Subject:* RE: compilation failure on Powerpc with SPL
Hi York,
Can you please share details of code-base.
Regards,
Prabhakar
*From:* Ashish Kumar *Sent:* Tuesday, July 25, 2017 4:13 PM *To:* York Sun <york.sun@nxp.com mailto:york.sun@nxp.com>; Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com mailto:prabhakar.kushwaha@nxp.com>; u-boot@lists.denx.de mailto:u-boot@lists.denx.de *Subject:* compilation failure on Powerpc with SPL
Hello York, Prabhakar,
I am seeing build failure on powerpc u-boot with SPL.
I have checked B4860QDS_NAND_defconfig and T1040RDB_SDCARD_defconfig
common/built-in.o:(.got2+0x2a4): undefined reference to `do_bootd'
scripts/Makefile.spl:333: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1396: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
Regards
Ashish

Hello York,
Thanks for the help. Issue is not observed with toolchain gcc-4.9,
Could you please help understand why this is compiler dependent?
Regards Ashish
-----Original Message----- From: York Sun Sent: Wednesday, July 26, 2017 12:04 AM To: Ashish Kumar ashish.kumar@nxp.com; Prabhakar Kushwaha prabhakar.kushwaha@nxp.com; u-boot@lists.denx.de Subject: Re: compilation failure on Powerpc with SPL
I checked the head of master branch d56b4b1 and e14b116 but don't see compiling error. My toolchain is gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4).
York
On 07/25/2017 04:14 AM, Ashish Kumar wrote:
Sorry for missing the details.
repo:
git://git.denx.de/u-boot.git
commit:
e14b1169c0c5a1b362b41451006b492bd16f2fff
Merge: 409a81d 172b2e0b
Author: Tom Rini trini@konsulko.com
Date: Wed Jul 12 08:16:41 2017 -0400
Merge git://www.denx.de/git/u-boot-marvell
Regards
Ashish
*From:* Prabhakar Kushwaha *Sent:* Tuesday, July 25, 2017 4:33 PM *To:* Ashish Kumar ashish.kumar@nxp.com; York Sun york.sun@nxp.com; u-boot@lists.denx.de *Subject:* RE: compilation failure on Powerpc with SPL
Hi York,
Can you please share details of code-base.
Regards,
Prabhakar
*From:* Ashish Kumar *Sent:* Tuesday, July 25, 2017 4:13 PM *To:* York Sun <york.sun@nxp.com mailto:york.sun@nxp.com>; Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com mailto:prabhakar.kushwaha@nxp.com>; u-boot@lists.denx.de mailto:u-boot@lists.denx.de *Subject:* compilation failure on Powerpc with SPL
Hello York, Prabhakar,
I am seeing build failure on powerpc u-boot with SPL.
I have checked B4860QDS_NAND_defconfig and T1040RDB_SDCARD_defconfig
common/built-in.o:(.got2+0x2a4): undefined reference to `do_bootd'
scripts/Makefile.spl:333: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1396: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
Regards
Ashish

On 07/26/2017 12:45 AM, Ashish Kumar wrote:
Hello York,
Thanks for the help. Issue is not observed with toolchain gcc-4.9,
Could you please help understand why this is compiler dependent?
Ashish,
To understand your issue, please post the complete log for the error. We need to see what has failed. You may be using an old toolchain from internal SDK, which requires you to set the lib path otherwise you wouldn't be able to link gcc libraries.
York
participants (3)
-
Ashish Kumar
-
Prabhakar Kushwaha
-
York Sun