maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder (https://talk.maemo.org/showthread.php?t=69867)

kojacker 2011-02-14 22:11

Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
1 Attachment(s)
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

kojacker 2011-02-15 21:00

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
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...

nicolai 2011-02-15 22:14

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
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

kojacker 2011-02-15 22:49

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
Quote:

Originally Posted by nicolai (Post 947483)
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 :o

nicolai 2011-02-15 22:53

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
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.

kojacker 2011-02-16 01:05

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
Thank you again nicolai, I don't know why it all worked but it did work! I got uploaded to extras dev :)

Willem Liu 2011-04-26 20:25

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
2 Attachment(s)
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


Willem Liu 2011-04-26 21:13

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
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.

Willem Liu 2011-04-26 21:40

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
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


Willem Liu 2011-04-26 21:49

Re: Multiple Target Patterns error failure trying to upload to Maemo Extras via Autobuilder
 
It seems that my DESTDIR in my .pro file was pointed to one directory level up. That caused the previous error.


All times are GMT. The time now is 04:06.

vBulletin® Version 3.8.8