Skip to contentSkip to conversation

'bitbake opie-image' problem

DISCUSSION Jiason Li 3 participants 6 messages Mar 9, 2010 – Mar 23, 2010

lore
Share & tools
lore

Jiason Li

author
#0 lore raw

Hi,

I was trying to make some images followed the getting_started guide, 'bitbake nano', 'bitbake console-image' all succeeded, but soon I encountered problem when doing 'bitbake opie-image'.

Do you have any idea about this issue?
Any info are very appreciated. :)

Thank you!
jiason
20100309

here my local.conf:

BBFILES = "/home/oe/openembedded/recipes/*/*.bb"
MACHINE = "c7x0"
DISTRO = "angstrom-2008.1"
BB_NUMBER_THREADS = "2"

here the log -- build/tmp/work/armv5te-angstrom-linux-gnueabi/opie-packagemanager-1.2.4-r1/temp/log.do_compile.20550:

NOTE: make MAKEFLAGS=
arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb -c -pipe -isystem/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fno-exceptions -fno-rtti -isystem/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -O2 -D_REENTRANT -fPIC
-DIPKG_LIB -DHAVE_MKDTEMP -DOPIE_APP_INTERFACE -DQUICKAPP_NAME="\"packagemanager\"" -DGCC_SUPPORTS_VISIBILITY -DOPIE_NEW_MALLOC -DOPIE_NO_ERASE_RECT_HACKFIX -DQWS -DOPIE_BINDIR='"/usr/bin"' -DOPIE_LIBDIR='"/usr/lib/opie/lib"' -DOPIE_QTDIR='"/usr/lib/opie"' -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/home/oe/build/tmp/staging/i686-linux/usr/share/qmake/linux-gnueabi-oe-g++ -I. -I../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg -I/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/include -I/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/qt2/include
-o opackage.o opackage.cpp
arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb -c -pipe -isystem/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fno-exceptions -fno-rtti -isystem/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -O2 -D_REENTRANT -fPIC
-DIPKG_LIB -DHAVE_MKDTEMP -DOPIE_APP_INTERFACE -DQUICKAPP_NAME="\"packagemanager\"" -DGCC_SUPPORTS_VISIBILITY -DOPIE_NEW_MALLOC -DOPIE_NO_ERASE_RECT_HACKFIX -DQWS -DOPIE_BINDIR='"/usr/bin"' -DOPIE_LIBDIR='"/usr/lib/opie/lib"' -DOPIE_QTDIR='"/usr/lib/opie"' -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/home/oe/build/tmp/staging/i686-linux/usr/share/qmake/linux-gnueabi-oe-g++ -I. -I../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg -I/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/include -I/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/qt2/include
-o oconfitem.o oconfitem.cpp
arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb -c -pipe -isystem/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fno-exceptions -fno-rtti -isystem/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -O2 -D_REENTRANT -fPIC
-DIPKG_LIB -DHAVE_MKDTEMP -DOPIE_APP_INTERFACE -DQUICKAPP_NAME="\"packagemanager\"" -DGCC_SUPPORTS_VISIBILITY -DOPIE_NEW_MALLOC -DOPIE_NO_ERASE_RECT_HACKFIX -DQWS -DOPIE_BINDIR='"/usr/bin"' -DOPIE_LIBDIR='"/usr/lib/opie/lib"' -DOPIE_QTDIR='"/usr/lib/opie"' -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/home/oe/build/tmp/staging/i686-linux/usr/share/qmake/linux-gnueabi-oe-g++ -I. -I../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg -I/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/include -I/home/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/qt2/include
-o oipkg.o oipkg.cpp
In file included from ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/void_list.h:21,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_src_list.h:22,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/opkg_conf.h:29,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_vec.h:26,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:25,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/opkg.h:21,

                 from oipkg.h:42,
                 from oipkg.cpp:31:

../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:39:
error: expected ',' or '...' before 'new' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
In function 'void __list_add(list_head*)':
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:42:
error: 'next' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:42:
error: expected type-specifier before ';' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:43:
error: expected type-specifier before '->' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:43:
error: expected `;' before '->' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:44:
error: expected type-specifier before '->' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:44:
error: expected `;' before '->' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:45:
error: 'prev' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:45:
error: expected type-specifier before ';' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
At global scope:
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:56:
error: expected ',' or '...' before 'new' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
In function 'void list_add(list_head*)':
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:57:
error: expected type-specifier before ',' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:57:
error: 'head' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
At global scope:
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:68:
error: expected ',' or '...' before 'new' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
In function 'void list_add_tail(list_head*)':
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:69:
error: expected type-specifier before ',' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:69:
error: 'head' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
In function 'void list_del(list_head*)':
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:93:
warning: invalid conversion from 'void*' to 'list_head*' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:94:
warning: invalid conversion from 'void*' to 'list_head*' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
In function 'void list_move(list_head*, list_head*)':
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:56:
error: too many arguments to function 'void list_add(list_head*)' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:113:
error: at this point in file ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:
In function 'void list_move_tail(list_head*, list_head*)':
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:68:
error: too many arguments to function 'void list_add_tail(list_head*)' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/list.h:124:
error: at this point in file
In file included from ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_dest_list.h:21,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/opkg_conf.h:30,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_vec.h:26,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:25,
from
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/opkg.h:21,

                 from oipkg.h:42,
                 from oipkg.cpp:31:

../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_dest.h:
At global scope:
../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_dest.h:30:
warning: ISO C++ forbids declaration of 'FILE' with no type ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg_dest.h:30:
error: expected ';' before '*' token
In file included from ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/opkg.h:21,

                 from oipkg.h:42,
                 from oipkg.cpp:31:

../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:206:
error: variable or field 'pkg_formatted_info' declared void ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:206:
error: 'FILE' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:206:
error: 'fp' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:206:
error: expected primary-expression before '*' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:206:
error: expected primary-expression before ')' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:207:
error: variable or field 'pkg_formatted_field' declared void ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:207:
error: 'FILE' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:207:
error: 'fp' was not declared in this scope ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:207:
error: expected primary-expression before '*' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:207:
error: expected primary-expression before ',' token ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:207:
error: expected primary-expression before 'const' ../../../../staging/armv5te-angstrom-linux-gnueabi/usr/include/libopkg/pkg.h:211:
error: 'FILE' has not been declared
In file included from oipkg.cpp:31:
oipkg.h:105: warning: ISO C++ forbids declaration of 'opkg_t' with no type oipkg.h:105: error: expected ';' before '*' token
oipkg.cpp:53: error: variable or field 'fsignalOpkgProgress' declared void oipkg.cpp:53: error: 'opkg_t' was not declared in this scope oipkg.cpp:53: error: 'opkg' was not declared in this scope oipkg.cpp:53: error: expected primary-expression before 'const' oipkg.cpp:53: error: expected primary-expression before 'void'
make: *** [oipkg.o] Error 1
FATAL: oe_runmake failed

#1 lore raw
Quoted 5 lines · Jiason Li

I was trying to make some images followed the getting_started guide, 'bitbake nano', 'bitbake console-image' all succeeded, but soon I encountered problem when doing 'bitbake opie-image'.

Do you have any idea about this issue?

This is due to libopkg's C headers having changed recently. Not only has the API changed, but the headers are now uncompilable within a C++ program. I am in the process of fixing this, hopefully I will have some patches done this evening.

Cheers,
Paul

author
#2 lore raw

Hi Paul,
thanks for your kindly response and the effort!
can't wait to get it. :D

Thank you.
jiason
20100309

2010/3/9 Paul Eggleton:

Quoted 20 lines
Quoted 5 lines · Jiason Li

I was trying to make some images followed the getting_started guide, 'bitbake nano', 'bitbake console-image' all succeeded, but soon I encountered problem when doing 'bitbake opie-image'.

Do you have any idea about this issue?

This is due to libopkg's C headers having changed recently. Not only has the API changed, but the headers are now uncompilable within a C++ program. I am in the process of fixing this, hopefully I will have some patches done this evening.

Cheers,
Paul

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw

Hi Jaison,

If you update your git tree, opie-packagemanager should now build correctly. I didn't have a chance to test if it actually worked at runtime though, please let me know (privately) if it does or doesn't.

Cheers,
Paul

#4 lore raw
Quoted 5 lines · Paul Eggleton

Hi Jaison,

If you update your git tree, opie-packagemanager should now build correctly. I didn't have a chance to test if it actually worked at runtime though, please let me know (privately) if it does or doesn't.

Thanks for the update :)

best regards
Bernhard Guillon

author
#5 lore raw
In reply to Paul Eggleton

Hi Paul,

I bitbaked opie-image again,
and it worked like a charm! :DD

Now I'm trying to make our touchscreen work with opie. ;)

Thanks for the effort! :)

Thank you!
jiason
20100323

2010/3/18 Paul Eggleton <[email protected]>:

Quoted 9 lines

Hi Jaison,

If you update your git tree, opie-packagemanager should now build correctly. I didn't have a chance to test if it actually worked at runtime though, please let me know (privately) if it does or doesn't.

Cheers,
Paul