Discussion:
[Ltib] Ltib issue while building Kernel
Siva Prakash Reddy Nareddy
2016-09-29 06:03:02 UTC
Permalink
Hi,

After configuring ltib kernel image using "./ltib --configure", I am
getting following message..

#
# configuration written to .config
#
+ '[' -f /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/
config/platform/mpc832x_rdb/linux_2.6.20_mpc832x_rdb.config
']'
+ cp -f ./.config
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/
config/platform/mpc832x_rdb/linux_2.6.20_mpc832x_rdb.config.dev
+ '[' -n '' ']'
+ '[' '%{kernel_series}' = 2.4 ']'
+ make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' uImage
scripts/kconfig/conf -s arch/powerpc/Kconfig
:0: error: bad value (e300c2) for -mcpu= switch
:0: error: bad value (e300c2) for -mcpu= switch
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/rpm/
BUILD/linux-2.6.20/scripts/gcc-version.sh:
line 13: printf: #: invalid number
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/rpm/
BUILD/linux-2.6.20/scripts/gcc-version.sh:
line 13: printf: #: invalid number
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use
in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is
reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
error: Bad exit status from
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912
(%build)


RPM build errors:
Bad exit status from
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912
(%build)
Build time for kernel-2.6.20-mpc832x_rdb: 2 seconds

Failed building kernel-2.6.20-mpc832x_rdb


f_buildrpms() returned an error, exiting
traceback:
main:491


Started: Thu Sep 29 11:08:10 2016
Ended: Thu Sep 29 11:09:25 2016
Elapsed: 75 seconds

These packages failed to build:
kernel-2.6.20-mpc832x_rdb
Build Failed

Exiting on error or interrupt

I am using Ubuntu 8.10 and MPC8323E-RDB development board
Please, help me in solving this..

Thanks and Regards,
Siva Prakash Reddy N
--
*SIVA*
Siva Prakash Reddy Nareddy
2016-09-29 06:23:31 UTC
Permalink
sir,

I didn't found <limits.h> in sumversion.c which is located at
/rpm/BUILD/linux-2.6.20/scripts/mod.

Please look at the attached sumversion.c file
HI Siva
From the log attached, I suggest that you first check the item of cross
toolchain in configure file, make sure it is a proper PowerPC’s toolchain
with correct C library. Then
Go to kernel directory, to check if /scripts/mod/sumversion.c already has
include <limits.h>. If has, the best bet is the issue happened in cross
toolchain or its configuration.
Good luck!
Eric Zang
Embed International Pty Ltd
2 Neil Street, Osborne Park WA 6017
Tel : +61 8 9340 0100 | Fax: +61 8 9340 0199
Website : www.embedcard.com<http://www.embedcard.com/>
Siva Prakash Reddy Nareddy
Sent: Thursday, September 29, 2016 2:03 PM
Subject: [Ltib] Ltib issue while building Kernel
Hi,
After configuring ltib kernel image using "./ltib --configure", I am
getting following message..
#
# configuration written to .config
#
+ '[' -f
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/config/platform/mpc832x_rdb/linux_2.6.20_mpc832x_rdb.config
']'
+ cp -f ./.config
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/config/platform/mpc832x_rdb/linux_2.6.20_mpc832x_rdb.config.dev
+ '[' -n '' ']'
+ '[' '%{kernel_series}' = 2.4 ']'
+ make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' uImage
scripts/kconfig/conf -s arch/powerpc/Kconfig
:0: error: bad value (e300c2) for -mcpu= switch
:0: error: bad value (e300c2) for -mcpu= switch
line 13: printf: #: invalid number
line 13: printf: #: invalid number
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use
in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is
reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
error: Bad exit status from
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912
(%build)
Bad exit status from
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912
(%build)
Build time for kernel-2.6.20-mpc832x_rdb: 2 seconds
Failed building kernel-2.6.20-mpc832x_rdb
f_buildrpms() returned an error, exiting
main:491
Started: Thu Sep 29 11:08:10 2016
Ended: Thu Sep 29 11:09:25 2016
Elapsed: 75 seconds
kernel-2.6.20-mpc832x_rdb
Build Failed
Exiting on error or interrupt
I am using Ubuntu 8.10 and MPC8323E-RDB development board
Please, help me in solving this..
Thanks and Regards,
Siva Prakash Reddy N
--
SIVA
--
*SIVA*
Eric Zang
2016-09-29 06:29:17 UTC
Permalink
Siva,
So give a kernel patch and modify kernel spec as well, because the definition of 'PATH_MAX' is in the limits.h.

Indeed, the building log as below seemingly indicate that your toolchain isn't correct. It would better double check.
Post by Siva Prakash Reddy Nareddy
:0: error: bad value (e300c2) for -mcpu= switch
:0: error: bad value (e300c2) for -mcpu= switch
line 13: printf: #: invalid number
line 13: printf: #: invalid number
Eric Zang

Embed International Pty Ltd
2 Neil Street, Osborne Park WA 6017
Tel : +61 8 9340 0100 | Fax: +61 8 9340 0199
Website : www.embedcard.com
E-mail : ***@embedcard.com

-----Original Message-----
From: Siva Prakash Reddy Nareddy [mailto:***@gmail.com]
Sent: Thursday, September 29, 2016 2:24 PM
To: Eric Zang <***@embedcard.com>; ltib <***@nongnu.org>
Subject: Re: [Ltib] Ltib issue while building Kernel

sir,

I didn't found <limits.h> in sumversion.c which is located at /rpm/BUILD/linux-2.6.20/scripts/mod.

Please look at the attached sumversion.c file
Post by Siva Prakash Reddy Nareddy
HI Siva
From the log attached, I suggest that you first check the item of
cross toolchain in configure file, make sure it is a proper PowerPC’s
toolchain with correct C library. Then Go to kernel directory, to
check if /scripts/mod/sumversion.c already has include <limits.h>. If
has, the best bet is the issue happened in cross toolchain or its
configuration.
Good luck!
Eric Zang
Embed International Pty Ltd
2 Neil Street, Osborne Park WA 6017
www.embedcard.com<http://www.embedcard.com/>
Behalf Of Siva Prakash Reddy Nareddy
Sent: Thursday, September 29, 2016 2:03 PM
Subject: [Ltib] Ltib issue while building Kernel
Hi,
After configuring ltib kernel image using "./ltib --configure", I am
getting following message..
#
# configuration written to .config
#
+ '[' -f
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/config/platform/mp
c832x_rdb/linux_2.6.20_mpc832x_rdb.config
']'
+ cp -f ./.config
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/config/platform/mp
c832x_rdb/linux_2.6.20_mpc832x_rdb.config.dev
+ '[' -n '' ']'
+ '[' '%{kernel_series}' = 2.4 ']'
+ make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' uImage
scripts/kconfig/conf -s arch/powerpc/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use
in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is
reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
error: Bad exit status from
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912
(%build)
Bad exit status from
/home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912
(%build)
Build time for kernel-2.6.20-mpc832x_rdb: 2 seconds
Failed building kernel-2.6.20-mpc832x_rdb
f_buildrpms() returned an error, exiting
main:491
Started: Thu Sep 29 11:08:10 2016
Ended: Thu Sep 29 11:09:25 2016
Elapsed: 75 seconds
kernel-2.6.20-mpc832x_rdb
Build Failed
Exiting on error or interrupt
I am using Ubuntu 8.10 and MPC8323E-RDB development board Please, help
me in solving this..
Thanks and Regards,
Siva Prakash Reddy N
--
SIVA
--
*SIVA*
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
***@nongnu.org
https://lists
Loading...