Still don’t have a Meld Account?
Join now to be a part of the worlds largest embedded linux community!
Join Now!Start a discussion
Function do_compile of shasum-native fails
Dileep Raj - December 22, 2011
Hi,
I am using RHEL 5.3 as my linux distribution & While I am trying to build bitbake it's failing for me during do_compile of shasum-native. Even I rerun the build command with -D option and looked into the logs referred to in the build output to see what it's executing. Every time i did the source setup.sh prior to executing the build command number of times but could not overcome the error.
NOTE: Running task 8 of 2340 (ID: 30, /home/dileep/mytestproject/tmp/collections/cge60-main-1111292203/cge60-main/recipes/shasum/shasum-native.bb, do_compile)
NOTE: package shasum-native-1.0-r1.1: task do_compile: Started
ERROR: Function 'do_compile' failed (see /home/dileep/mytestproject/tmp/work/i686-linux/shasum-native-1.0-r1.1/temp/log.do_compile.4939 for further information)
ERROR: Logfile of failure stored in: /home/dileep/mytestproject/tmp/work/i686-linux/shasum-native-1.0-r1.1/temp/log.do_compile.4939
Log data follows:
| unction ‘memcpy’
| sha256.c:245: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:245: error: ‘struct sha256_ctx’ has no member named ‘index’
| sha256.c:246: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:260: warning: incompatible implicit declaration of built-in function ‘memcpy’
| sha256.c:260: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:261: error: ‘struct sha256_ctx’ has no member named ‘index’
| sha256.c: In function ‘sha256_final’:
| sha256.c:269: error: ‘word32’ undeclared (first use in this function)
| sha256.c:269: error: expected ‘;’ before ‘data’
| sha256.c:273: error: ‘struct sha256_ctx’ has no member named ‘index’
| sha256.c:280: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:284: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:289: error: ‘data’ undeclared (first use in this function)
| sha256.c:289: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:289: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:289: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:289: error: ‘struct sha256_ctx’ has no member named ‘block’
| sha256.c:295: error: ‘struct sha256_ctx’ has no member named ‘state’
| sha256.c:304: error: ‘struct sha256_ctx’ has no member named ‘count_high’
| sha256.c:304: error: ‘struct sha256_ctx’ has no member named ‘count_low’
| sha256.c:306: error: ‘struct sha256_ctx’ has no member named ‘count_low’
| sha256.c:306: error: ‘struct sha256_ctx’ has no member named ‘index’
| sha256.c:307: error: ‘struct sha256_ctx’ has no member named ‘state’
| sha256.c: In function ‘sha256_digest’:
| sha256.c:314: error: ‘NULL’ undeclared (first use in this function)
| sha256.c:316: error: ‘const struct sha256_ctx’ has no member named ‘state’
| sha256.c:317: error: ‘const struct sha256_ctx’ has no member named ‘state’
| sha256.c:318: error: ‘const struct sha256_ctx’ has no member named ‘state’
| sha256.c:319: error: ‘const struct sha256_ctx’ has no member named ‘state’
NOTE: package shasum-native-1.0-r1.1: task do_compile: Failed
ERROR: Task 30 (/home/dileep/mytestproject/tmp/collections/cge60-main-1111292203/cge60-main/recipes/shasum/shasum-native.bb, do_compile) failed with exit code '1'
ERROR: '/home/dileep/mytestproject/tmp/collections/cge60-main-1111292203/cge60-main/recipes/shasum/shasum-native.bb' failed
I would be thankful if someone can provide helpful inputs to proceed further.

Function do_compile of shasum-native fails
Hi Dileep,
Please ensure that your license is configured correctly. You may wish to login to the MontaVista Zone and have a look at the FAQs such as: https://support.mvista.com/content/FAQs/00566.html
I assume you're doing a $bitbake default-image? If that's not the case, please let me know what bitbake command you're issuing.
Thanks
Bill
Function do_compile of shasum-native fails
Hello Bill,
Thanks for the response.Now, I could able to overcome the do_compile error after placing my license file in the correct location. Your assumption is absolutely true & i am using the same
bitbake default-image command for the first time during my build environment.
Anyway thanks for your valuable input & Wishing You A HAPPY NEW YEAR - 2012 in Advance.
Thanks,
Dileep