[U-Boot] u-boot build error [from v2013.01 onwards]

Hi,
I am getting below error while configuring any board in the u-boot.
bash> make versatilepb_config Makefile:597: *** missing `endif'. Stop.
Host setup: ---------------- Processor: x86_64 OS: Red Hat Enterprise Linux Client release 5.6 u-boot version: v2013.01
Request for any help.
Thanks, Jagan.

Hi Jagan,
On Sat, 26 Jan 2013 18:34:56 +0530, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi,
I am getting below error while configuring any board in the u-boot.
bash> make versatilepb_config Makefile:597: *** missing `endif'. Stop.
Host setup:
Processor: x86_64 OS: Red Hat Enterprise Linux Client release 5.6 u-boot version: v2013.01
Request for any help.
Can you indicate which target you are building, with which command line exactly, and which toolchain you are using?
Thanks, Jagan.
Amicalement,

Hi Albert
On Sat, Jan 26, 2013 at 9:40 PM, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Jagan,
On Sat, 26 Jan 2013 18:34:56 +0530, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi,
I am getting below error while configuring any board in the u-boot.
bash> make versatilepb_config Makefile:597: *** missing `endif'. Stop.
Host setup:
Processor: x86_64 OS: Red Hat Enterprise Linux Client release 5.6 u-boot version: v2013.01
Request for any help.
Can you indicate which target you are building, with which command line exactly, and which toolchain you are using?
This error occurred for all boards in the u-boot, I have used arm-none-linux-gnueabi- xtool for versatilepb board. I saw this issue specially from 2013.01 on-wards.
Thanks, Jagan.

On 1/27/2013 7:10 AM, Jagan Teki wrote:
This error occurred for all boards in the u-boot, I have used arm-none-linux-gnueabi- xtool for versatilepb board. I saw this issue specially from 2013.01 on-wards.
Can you check your host setup once?
Below is the output from my setup. I don't see any error.
$ git describe v2013.01 $ make ARCH=arm versatilepb_config Configuring for versatilepb - Board: versatile, Options: ARCH_VERSATILE_PB $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty
~Vikram

Hi Vikram,
On Sun, Jan 27, 2013 at 9:24 AM, Vikram Narayanan vikram186@gmail.com wrote:
On 1/27/2013 7:10 AM, Jagan Teki wrote:
This error occurred for all boards in the u-boot, I have used arm-none-linux-gnueabi- xtool for versatilepb board. I saw this issue specially from 2013.01 on-wards.
Can you check your host setup once?
Below is the output from my setup. I don't see any error.
$ git describe v2013.01 $ make ARCH=arm versatilepb_config Configuring for versatilepb - Board: versatile, Options: ARCH_VERSATILE_PB $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty
Here is my LSB host settings
Mr.J> lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: RedHatEnterpriseClient Description: Red Hat Enterprise Linux Client release 5.6 (Tikanga) Release: 5.6 Codename: Tikanga
I am getting same error irrespective any board. Does v2013.01 release builds depends on any perl versions
Mr.J> perl -v This is perl, v5.8.5 built for x86_64-linux
Thanks, Jagan.

Hi Jagan,
On Sun, 27 Jan 2013 12:30:45 +0530, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi Vikram,
On Sun, Jan 27, 2013 at 9:24 AM, Vikram Narayanan vikram186@gmail.com wrote:
On 1/27/2013 7:10 AM, Jagan Teki wrote:
This error occurred for all boards in the u-boot, I have used arm-none-linux-gnueabi- xtool for versatilepb board. I saw this issue specially from 2013.01 on-wards.
Can you check your host setup once?
Below is the output from my setup. I don't see any error.
$ git describe v2013.01 $ make ARCH=arm versatilepb_config Configuring for versatilepb - Board: versatile, Options: ARCH_VERSATILE_PB $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty
Here is my LSB host settings
Mr.J> lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: RedHatEnterpriseClient Description: Red Hat Enterprise Linux Client release 5.6 (Tikanga) Release: 5.6 Codename: Tikanga
I am getting same error irrespective any board. Does v2013.01 release builds depends on any perl versions
Mr.J> perl -v This is perl, v5.8.5 built for x86_64-linux
Actually I'd be more interested in the result of the following commands:
1) $CROSS_COMPILE}gcc -v
2) git rev-parse HEAD
3) git clean -xfd git status
Thanks, Jagan.
Amicalement,

Hi Albert,
Please find the below comments.
On Sun, Jan 27, 2013 at 8:44 PM, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Jagan,
On Sun, 27 Jan 2013 12:30:45 +0530, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi Vikram,
On Sun, Jan 27, 2013 at 9:24 AM, Vikram Narayanan vikram186@gmail.com wrote:
On 1/27/2013 7:10 AM, Jagan Teki wrote:
This error occurred for all boards in the u-boot, I have used arm-none-linux-gnueabi- xtool for versatilepb board. I saw this issue specially from 2013.01 on-wards.
Can you check your host setup once?
Below is the output from my setup. I don't see any error.
$ git describe v2013.01 $ make ARCH=arm versatilepb_config Configuring for versatilepb - Board: versatile, Options: ARCH_VERSATILE_PB $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty
Here is my LSB host settings
Mr.J> lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: RedHatEnterpriseClient Description: Red Hat Enterprise Linux Client release 5.6 (Tikanga) Release: 5.6 Codename: Tikanga
I am getting same error irrespective any board. Does v2013.01 release builds depends on any perl versions
Mr.J> perl -v This is perl, v5.8.5 built for x86_64-linux
Actually I'd be more interested in the result of the following commands:
$CROSS_COMPILE}gcc -v
Mr.J> ${CROSS_COMPILE}gcc -v Using built-in specs. Target: arm-none-linux-gnueabi .... Thread model: posix gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
git rev-parse HEAD
Mr.J> git rev-parse HEAD 54b08efcf2f4ff532ce99c53f341a59c193331a5
git clean -xfd git status
Mr.J> git clean -xfd Removing .boards.depend Removing LOG/ Removing arch/arm/include/asm/arch Removing arch/arm/include/asm/proc Removing arm-none-linux-gnueabi-gcc Removing include/asm Removing include/config.h Removing include/config.mk Removing include/generated/
Mr.J> git status # On branch master nothing to commit (working directory clean)
Mr.J> ./MAKEALL versatilepb_config Makefile:597: *** missing `endif'. Stop. Makefile:597: *** missing `endif'. Stop. arm-none-linux-gnueabi-size: './u-boot': No such file Makefile:597: *** missing `endif'. Stop.
--------------------- SUMMARY ---------------------------- Boards compiled: 1 Boards with warnings but no errors: 1 ( versatilepb_config ) ----------------------------------------------------------
Thanks, Jagan.

Dear Jagan Teki,
In message CAD6G_RS1bV_8z_J0QEjbNooy=6+Zxi0faXjxNr1fN4U2ajbObg@mail.gmail.com you wrote:
Actually I'd be more interested in the result of the following commands:
$CROSS_COMPILE}gcc -v
Mr.J> ${CROSS_COMPILE}gcc -v Using built-in specs. Target: arm-none-linux-gnueabi .... Thread model: posix gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
Well, the actual error comes from the Makefile, so gcc should not be involved here...
Mr.J> git rev-parse HEAD 54b08efcf2f4ff532ce99c53f341a59c193331a5
Looks clean.
Mr.J> git status # On branch master nothing to commit (working directory clean)
Mr.J> ./MAKEALL versatilepb_config Makefile:597: *** missing `endif'. Stop. Makefile:597: *** missing `endif'. Stop. arm-none-linux-gnueabi-size: './u-boot': No such file Makefile:597: *** missing `endif'. Stop.
You should get this instead:
-> ./MAKEALL versatilepb_config make: *** No rule to make target `versatilepb_config_config'. Stop. make: *** [versatilepb_config_config] Error 1 make: *** [all] Error 1 arm-linux-gnueabi-size: './u-boot': No such file System not configured - see README make: *** [all] Error 1
--------------------- SUMMARY ---------------------------- Boards compiled: 1 Boards with errors: 1 ( versatilepb_config ) ----------------------------------------------------------
Note that the correct name with MAKEALL is the board target name _without_ the "_config" part. What does "make -v" report for you? [GNU Make 3.82 on my end.]
Best regards,
Wolfgang Denk

Hi Wolfgang Denk,
On Mon, Jan 28, 2013 at 12:29 PM, Wolfgang Denk wd@denx.de wrote:
Dear Jagan Teki,
In message CAD6G_RS1bV_8z_J0QEjbNooy=6+Zxi0faXjxNr1fN4U2ajbObg@mail.gmail.com you wrote:
Actually I'd be more interested in the result of the following commands:
$CROSS_COMPILE}gcc -v
Mr.J> ${CROSS_COMPILE}gcc -v Using built-in specs. Target: arm-none-linux-gnueabi .... Thread model: posix gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
Well, the actual error comes from the Makefile, so gcc should not be involved here...
Mr.J> git rev-parse HEAD 54b08efcf2f4ff532ce99c53f341a59c193331a5
Looks clean.
Mr.J> git status # On branch master nothing to commit (working directory clean)
Mr.J> ./MAKEALL versatilepb_config Makefile:597: *** missing `endif'. Stop. Makefile:597: *** missing `endif'. Stop. arm-none-linux-gnueabi-size: './u-boot': No such file Makefile:597: *** missing `endif'. Stop.
You should get this instead:
-> ./MAKEALL versatilepb_config make: *** No rule to make target `versatilepb_config_config'. Stop. make: *** [versatilepb_config_config] Error 1 make: *** [all] Error 1 arm-linux-gnueabi-size: './u-boot': No such file System not configured - see README make: *** [all] Error 1
--------------------- SUMMARY ---------------------------- Boards compiled: 1 Boards with errors: 1 ( versatilepb_config )
Note that the correct name with MAKEALL is the board target name _without_ the "_config" part. What does "make -v" report for you? [GNU Make 3.82 on my end.]
Thanks for your note. GNU Make is 3.80 at my end.
Thanks, Jagan.
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de [War] is instinctive. But the instinct can be fought. We're human beings with the blood of a million savage years on our hands! But we can stop it. We can admit that we're killers ... but we're not going to kill today. That's all it takes! Knowing that we're not going to kill today! -- Kirk, "A Taste of Armageddon", stardate 3193.0

Hi,
On Mon, Jan 28, 2013 at 1:31 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi Wolfgang Denk,
On Mon, Jan 28, 2013 at 12:29 PM, Wolfgang Denk wd@denx.de wrote:
Dear Jagan Teki,
In message CAD6G_RS1bV_8z_J0QEjbNooy=6+Zxi0faXjxNr1fN4U2ajbObg@mail.gmail.com you wrote:
Actually I'd be more interested in the result of the following commands:
$CROSS_COMPILE}gcc -v
Mr.J> ${CROSS_COMPILE}gcc -v Using built-in specs. Target: arm-none-linux-gnueabi .... Thread model: posix gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
Well, the actual error comes from the Makefile, so gcc should not be involved here...
Mr.J> git rev-parse HEAD 54b08efcf2f4ff532ce99c53f341a59c193331a5
Looks clean.
Mr.J> git status # On branch master nothing to commit (working directory clean)
Mr.J> ./MAKEALL versatilepb_config Makefile:597: *** missing `endif'. Stop. Makefile:597: *** missing `endif'. Stop. arm-none-linux-gnueabi-size: './u-boot': No such file Makefile:597: *** missing `endif'. Stop.
You should get this instead:
-> ./MAKEALL versatilepb_config make: *** No rule to make target `versatilepb_config_config'. Stop. make: *** [versatilepb_config_config] Error 1 make: *** [all] Error 1 arm-linux-gnueabi-size: './u-boot': No such file System not configured - see README make: *** [all] Error 1
--------------------- SUMMARY ---------------------------- Boards compiled: 1 Boards with errors: 1 ( versatilepb_config )
Note that the correct name with MAKEALL is the board target name _without_ the "_config" part. What does "make -v" report for you? [GNU Make 3.82 on my end.]
Thanks for your note. GNU Make is 3.80 at my end.
I have just upgraded my Make from 3.80 to 3.81.. u-boot build works fine.
Thanks, Jagan.
Thanks, Jagan.
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de [War] is instinctive. But the instinct can be fought. We're human beings with the blood of a million savage years on our hands! But we can stop it. We can admit that we're killers ... but we're not going to kill today. That's all it takes! Knowing that we're not going to kill today! -- Kirk, "A Taste of Armageddon", stardate 3193.0

Dear Jagan Teki,
In message CAD6G_RQv2JH8N6UDjtuakU-s9auhVENRnEfwnEgNk_oUnepiwA@mail.gmail.com you wrote:
GNU Make is 3.80 at my end.
I have just upgraded my Make from 3.80 to 3.81.. u-boot build works fine.
Ah, thanks for reporting.
But please note that v3.81 is still 7 years old. Why don't you use recent code (v3.82, wich actually is already 2.5 yeards old as well)?
Best regards,
Wolfgang Denk

Hi Wolfgang Denk,
On Mon, Jan 28, 2013 at 5:04 PM, Wolfgang Denk wd@denx.de wrote:
Dear Jagan Teki,
In message CAD6G_RQv2JH8N6UDjtuakU-s9auhVENRnEfwnEgNk_oUnepiwA@mail.gmail.com you wrote:
GNU Make is 3.80 at my end.
I have just upgraded my Make from 3.80 to 3.81.. u-boot build works fine.
Ah, thanks for reporting.
But please note that v3.81 is still 7 years old. Why don't you use recent code (v3.82, wich actually is already 2.5 yeards old as well)?
Sorry, I have a typo mistake actually I have upgraded to 3.82 only.. there build works fine..
Thanks, Jagan.
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Voodoo Programming: Things programmers do that they know shouldn't work but they try anyway, and which sometimes actually work, such as recompiling everything. - Karl Lehenbauer

Dear Jagan Teki,
In message CAD6G_RSuMebC=aiPpdMo5mXUGHeftMi-BTvkVmhu5y8xYpW_MA@mail.gmail.com you wrote:
Note that the correct name with MAKEALL is the board target name _without_ the "_config" part. What does "make -v" report for you? [GNU Make 3.82 on my end.]
Thanks for your note. GNU Make is 3.80 at my end.
Well... make v3.80 is more than 10 years old (10/04/2002).
Can you please try with a less antiquated version and see if this helps?
Best regards,
Wolfgang Denk
participants (4)
-
Albert ARIBAUD
-
Jagan Teki
-
Vikram Narayanan
-
Wolfgang Denk