Rishi Kumar
Forum Replies Created
-
AuthorPosts
-
Rishi Kumar
ParticipantDear all,
I am facing compilation error after adding mysql lib in c program. the bitbake file & errors give below. thanks in advance.
DESCRIPTION = “Hello world program”
PR = “r0”
SRC_URI = “file://*”
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} -o rs232 $(mysql_config –cflags) ${WORKDIR}/rs232.c $(mysql_config –libs)
# ${CC} ${CFLAGS} ${LDFLAGS} ${mysql_config –cflags} ${WORKDIR}/rs232.c ${mysql_config –libs} -o rs232
}
do_install() {
install -m 0755 -d ${D}${bindir} ${D}${docdir}/rs232
install -m 0644 ${S}/rs232 ${D}${bindir}
}
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb do_compile failed
NOTE: package rs-1.0.0-r0: task do_distribute_sources: Succeeded
ERROR: Task 7 (/home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb, do_compile) failed with 256
ERROR: ‘/home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb’ failed
ERROR: Function do_compile failed
NOTE: Task failed: (‘function do_compile failed’, ‘/home/rk/corecdp-1.1.1/build/tmp/work/armv5te-corecdp-linux-gnueabi/rs-1.0.0-r0/temp/log.do_compile.9875’)
ERROR: Logfile of failure stored in: /home/rk/corecdp-1.1.1/build/tmp/work/armv5te-corecdp-linux-gnueabi/rs-1.0.0-r0/temp/log.do_compile.9875
Log data follows:
| CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/mysql
| cc1: internal compiler error: in add_path, at c-incpath.c:425
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
| ERROR: Function do_compile failed
NOTE: package rs-1.0.0-r0: task do_compile: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb do_compile failed
ERROR: Task 7 (/home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb, do_compile) failed with 256
ERROR: ‘/home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb’ failed
ERROR: ‘/home/rk/corecdp-1.1.1/user-collection/recipes/rs/rs_1.0.0.bb’ failed
reagds
rishi
Rishi Kumar
ParticipantHi JM,
Thanks for reply. problem is not with C program it is quite simple printf(“hellobrother”). May you help me write .bb file which can compile .c file from existing directory.
i suspect on following area in .bb file. it is still not behaving as i understood from opendembedded manual.
PR = “r1”
SRC_URI=”file://hellobrother.c”
S = “${WORKDIR}/${P}”
do_fetch () {
mkdir -p ${WORKDIR}/${P}
cp hellobrother.c ${WORKDIR}/${P}
}
Regards
Rishi
Rishi Kumar
ParticipantHi JM,
Thanks for appreciations. I recently started work on it. Even it is my first experience on Linux too. CDP has lot of opportunity in India. Your assumption is correct I am from India. If you don’t mind may I know about you too? My personal ID is given below
Regards
Rishi Kumar
Rishi Kumar
ParticipantHello JM,
It took around 15hours in my m/c but at last moment it faild due to less disk space. yes i am working on CDP.
thanks & regards
rishi
Rishi Kumar
ParticipantIt is Ubuntu 10.04
thanks
regards
rishi
Rishi Kumar
ParticipantBitbake is working but
I am getting following warnnings is this ok?
NOTE: Handling BitBake files: / (1267/7970) [15 %]<string>:8: DeprecationWarning: the sets module is deprecated
NOTE: Handling BitBake files: – (1848/7970) [23 %]NOTE: Angstrom DOES NOT support libiconv because the glibc builtin iconv replacement is used
NOTE: Handling BitBake files: (2134/7970) [26 %]NOTE: Angstrom DOES NOT support fso-apm because regular apmd is good enough
NOTE: Handling BitBake files: (3169/7970) [39 %]NOTE: Angstrom DOES NOT support bluez-libs because bluez-libs 3.x has been replaced by bluez4
NOTE: Handling BitBake files: – (3703/7970) [46 %]NOTE: Angstrom DOES NOT support bluez-libs because bluez-libs 3.x has been replaced by bluez4
NOTE: Handling BitBake files: (4394/7970) [55 %]NOTE: Angstrom DOES NOT support bluez-libs because bluez-libs 3.x has been replaced by bluez4
NOTE: Handling BitBake files: (4440/7970) [55 %]^Z
[1]+ Stopped bitbake corecdp-base-image
Rishi Kumar
ParticipantSir, I am in home directory only pl see below
There is no tmp dir.
“* make sure you loaded the environment script when you were in the right directory”
how i can varify this?
Pl note that I am working on Virtual Machine VM ware.
rishi@ubuntu:~$ ls
corecdp-1.1.1 Documents LICENSE Pictures Templates
corecdp-1.1.1.tar.gz Downloads licenses Public Videos
Desktop examples.desktop Music README
rishi@ubuntu:~$ pwd
/home/rishi
regards
rishi
Rishi Kumar
ParticipantThanks for reply.
It has all permission. O/P of ls -l is below.
drwxr-xr-x 7 rishi rishi 4096 2010-12-17 13:41 corecdp-1.1.1
regards
rishi
-
AuthorPosts