Reply
Thread Tools
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#1
I'm having problems putting my latest version of code into maemo Extras, it is failing due to a multiple target pattern error, apparently in make file line 105. I am using the makefile generated by QtCreator, although Ive been told that autobuilder should be generating and using it's own make file anyway. I don't understand very much about packaging, can anyone explain reasonably simply what the error is and how I can go about troubleshooting it?

Code:
TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package mfakecaller
dpkg-buildpackage: source version 0.2.0
dpkg-buildpackage: host architecture armel
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/builder3/maemo-fremantle-armel-extras-devel/work/mfakecaller-0.2.0'
Makefile:105: *** multiple target patterns.  Stop.
make[1]: Leaving directory `/home/builder3/maemo-fremantle-armel-extras-devel/work/mfakecaller-0.2.0'
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
Ive attached the contents of the makefile that QtCreator generates on my machine during testing, just in case it gives any clues

Thanks for your help
Attached Files
File Type: txt Makefile.txt (19.4 KB, 148 views)
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#2
Bump.. anyone? Even a clue? I'm sure this issue must have occurred to someone before, and I'm sure it something simple and because of my inexperience. So again.. pls.. if you can help...
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2011-02-15 at 21:33.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#3
Hi kojacker,

I don't know what exactly is the cause of this problem.
But this should help:

1. remove the "$(MAKE) clean" line from the debian/rules file,
because at this point the Makefile isn't recreated, instead,
it uses your Makefile which only works in your windows environment.

2. add a "qmake" in your debian/rules file after the line
# Add here commands to compile the package.
qmake

So, the Makefile will be recreated.

Hope this helps

Nicolai
 

The Following 6 Users Say Thank You to nicolai For This Useful Post:
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#4
Originally Posted by nicolai View Post
Hi kojacker,

I don't know what exactly is the cause of this problem.
But this should help:

1. remove the "$(MAKE) clean" line from the debian/rules file,
because at this point the Makefile isn't recreated, instead,
it uses your Makefile which only works in your windows environment.

2. add a "qmake" in your debian/rules file after the line
# Add here commands to compile the package.
qmake

So, the Makefile will be recreated.

Hope this helps

Nicolai
Hi Nicolai, thanks very much for your reply. I made the changes you mentioned but now the project doesnt build anymore and Im getting an error in the debian rules file

Code:
c:\QtProjects\mfakecaller\debian\rules:30: *** missing separator.  Stop.
dpkg-buildpackage: failure: debian/rules clean gave error exit status 2
The process "C:\NokiaQtSDK\Maemo\4.6.2\madbin\mad.cmd" exited with code 11.
Error while building project mfakecaller (target: Maemo)
When executing build step 'Custom Process Step'
Here's the contents of my rules file now after adding the qmake and removing the "$(MAKE) clean" line

*snip*

Edit: I changed spaces to a tab when entering "qmake" and I can get past this error - now to wrestle with autobuilder
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2011-02-15 at 22:56.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#5
c:\QtProjects\mfakecaller\debian\rules:30: *** missing separator.
This means, you use spaces instead of TABs in your rules file.

qmake
^^^^
Make sure to use TABs here.
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#6
Thank you again nicolai, I don't know why it all worked but it did work! I got uploaded to extras dev
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 

The Following User Says Thank You to kojacker For This Useful Post:
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#7
Hi,

I'm getting this error as well as shown in code below, but even following the steps nicolaj suggested, the problems still persist.
Can anyone help me out?
I've added the generated Makefile and the qtc_packaging directory with its contents like the rules file.

I've also followed the steps described here:
http://raeda.blog.com/2011/02/19/upl...-from-windows/

Code:
TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package easylist
dpkg-buildpackage: source version 0.3.21
dpkg-buildpackage: host architecture armel
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
dpkg-checkbuilddeps: Dependency provided by Scratchbox: autotools-dev
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
# /scratchbox/tools/bin/make clean
dh_clean 
 dpkg-source -b easylist-0.3.21
dpkg-source: info: using source format `1.0'
dpkg-source: info: building easylist in easylist_0.3.21.tar.gz
dpkg-source: info: building easylist in easylist_0.3.21.dsc
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
qmake
/scratchbox/tools/bin/make
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/easylist-0.3.21'
cd src/ && /scratchbox/tools/bin/make -f Makefile 
make[2]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/easylist-0.3.21/src'
Makefile:130: *** multiple target patterns.  Stop.
make[2]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/easylist-0.3.21/src'
make[1]: *** [sub-src-make_default] Error 2
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/easylist-0.3.21'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Attached Files
File Type: zip Makefile.zip (1.2 KB, 94 views)
File Type: zip qtc_packaging.zip (8.2 KB, 98 views)
__________________
Please give or donate your 2 cents to help me keep on going.
 
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#8
It seems that it can't handle sources in subdirectories. I've now put all the source files in the top directory and the error is gone.
__________________
Please give or donate your 2 cents to help me keep on going.
 
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#9
But now I'm running into the following problem. I can't figure out why the Fremantle Extras-devel free i386 build is failing while the armel build is OK.
Below is the report by the autobuilder. Can anyone shine a light on this issue?

Many thanks!

Code:
TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package easylist
dpkg-buildpackage: source version 0.3.22
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
dpkg-checkbuilddeps: Dependency provided by Scratchbox: autotools-dev
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
dh_clean 
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
qmake
/scratchbox/tools/bin/make
make[1]: Entering directory `/home/builder1/maemo-fremantle-i386-extras-devel/work/easylist-0.3.22'
g++ -Wl,-O1 -o ../easylist main.o mycheckbox.o mainform.o mycheckboxcontainer.o systemsettings.o listform.o editform.o slidewidget.o chooselistform.o moc_mycheckbox.o moc_mainform.o moc_mycheckboxcontainer.o moc_systemsettings.o moc_listform.o moc_editform.o moc_slidewidget.o moc_chooselistform.o    -L/usr/lib -lQtMaemo5 -L/usr/lib -L/usr/X11R6/lib -lQtGui -lQtDBus -lQtXml -lQtCore -lpthread 
/scratchbox/compilers/cs2007q3-glibc2.5-i486/bin/../lib/gcc/i486-pc-linux-gnu/4.2.1/../../../../i486-pc-linux-gnu/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/scratchbox/compilers/cs2007q3-glibc2.5-i486/bin/../lib/gcc/i486-pc-linux-gnu/4.2.1/../../../../i486-pc-linux-gnu/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/scratchbox/compilers/cs2007q3-glibc2.5-i486/bin/../lib/gcc/i486-pc-linux-gnu/4.2.1/../../../../i486-pc-linux-gnu/bin/ld: main.o: Relocations in generic ELF (EM: 40)
main.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [../easylist] Error 1
make[1]: Leaving directory `/home/builder1/maemo-fremantle-i386-extras-devel/work/easylist-0.3.22'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
__________________
Please give or donate your 2 cents to help me keep on going.
 
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#10
It seems that my DESTDIR in my .pro file was pointed to one directory level up. That caused the previous error.
__________________
Please give or donate your 2 cents to help me keep on going.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:57.