Hi Junchun,
Here's an update. My Tizen source folder is at:
/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project
my .gbs.conf is at:
~/.gbs.conf or /home/mjohnson/.gbs.conf
I also have a ~/,git folder.
My .gbs.conf is:
[general]
tmpdir=/var/tmp/
profile = profile.tizen3.0_ivi
work_dir=/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project/
fallback_to_native=true
#path=/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project/
[repo.tizen3.0_x86]
url=${work_dir}/pre-built/toolchain-x86/
[repo.tizen3.0_arm]
url=${work_dir}/pre-built/toolchain-arm/
[repo.tizen3.0_x86_64]
url=${work_dir}/pre-built/toolchain-x86_64/
[profile.tizen3.0_ivi]
repos=repo.tizen3.0_x86,repo.tizen3.0_arm,repo.tizen3.0_x86_64
buildconf=${work_dir}/scm/meta/build-config/build.conf
exclude_packages=libtool,gettext
My build.log shows the following after using this command:
nohup gbs -d build -A i586 --threads=4 --baselibs >build.log 2>&1 &
nohup: ignoring input
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'rev-parse', '--show-toplevel']
gbs:info: the following packages have been excluded build from gbs config:
libtool
gettext
gbs:info: generate repositories ...
gbs:debug: running command: linux32 depanneur --arch=i586
--repository=/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project/pre-built/toolchain-x86/
--repository=/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project/pre-built/toolchain-arm/
--repository=/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project/pre-built/toolchain-x86_64/
--dist=tizen3.0_ivi --configdir=/var/tmp/mjohnson-gbs --path=/home/mjohnson
--exclude=libtool --exclude=gettext --debug --baselibs --threads=4
--packaging-dir=packaging
info: start building packages from: /home/mjohnson (git)
debug: my_system: date +"%Y-%m-%d %H:%M %z"
2014-11-04 17:03 +0000
debug: my_system: gbs -V
gbs 0.22.3
debug: working on /home/mjohnson
debug: my_system: cd /home/mjohnson; git show HEAD:packaging >/tmp/4v6OjtBpex
2>/dev/null
error: No source package found at /home/mjohnson
gbs:error: Traceback (most recent call last):
File "/usr/bin/gbs", line 602, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/gbs", line 596, in main
return module.main(args)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_build.py", line 376, in
main
raise GbsError('some packages failed to be built')
GbsError: <gbs>some packages failed to be built
[1]+ Exit 1 nohup gbs -d build -A i586 --threads=4 --baselibs
> build.log 2>&1
I believe my problem is the bit in red above. Why is it looking there for the
source, and not in the tizen-project folder?
Bear with me, this is my first time using GIT. If this was SVN I'd have built
the images for all of the architetcures already.
I was trying to point GBS to the .gbs.conf in the tizen source directory, then
maybe it would look in the right place for the sources, but I haven't managed
to do it yet.
Regards
Mike
________________________________
From: Michael Johnson
Sent: 04 November 2014 5:16 AM
To: Guan, JunchunX; VanCutsem, Geoffroy; Ding, Jian-feng
Cc: [email protected]
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
Hi Junchun,
I looked yesterday for any other .gbs.conf outside of the Tizen source folder,
and sure enough, one is generated at ~/ (user root folder). I tried deleting
it, but it gets regenerated. It looks like it's not looking at the .gbs.conf
in the Tizen source root folder. I therefore copied and replaced the contents
of my original .gbs.conf to ~/.gbs.conf, and now it has started syncing, so I'm
expecting it to have finished syncing by now. Once I've gone through the whole
process I'll give you an update.
Thanks for all of your help so far
Mike
________________________________
From: Guan, JunchunX [[email protected]]
Sent: 04 November 2014 2:23 AM
To: VanCutsem, Geoffroy; Michael Johnson; Ding, Jian-feng
Cc: [email protected]
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
/root/.gbs.conf and ~/.gbs.conf are not owned by gbs.
Gbs search configuration file in this order when running gbs.
1, .gbs.conf that has a .repo directory in the same directory
2, .gbs.conf in the current directory
3. ~/.gbs.conf
4, /etc/gbs.conf
If multiple configuration files exist, the first to find has the highest
priority and overwrites values in lower priority conf file.
You can use gbs –c XXX.conf to make the specific conf has the highest priority.
If gbs cannot find anyone, gbs will auto-generated a .gbs.conf file in your
home directory.
So, Michael, please check all gbs.conf in your system and find out which
configuration file gbs uses.
From: VanCutsem, Geoffroy
Sent: Tuesday, November 04, 2014 5:54 AM
To: Michael Johnson; Guan, JunchunX; Ding, Jian-feng
Cc: [email protected]
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
Hi Junchun,
A bit of a side question but still somehow related. I have both a
/root/.gbs.conf and a ~/.gbs.conf file on my system (Fedora 19) but ‘rpm –qf’
tells me neither is owned by any package. Was this part of a previous release
of GBS?
@Michael, what happens if you go back to using your original gbs.conf content
[1] by putting it in a file and using it specifically, i.e.: ‘gbs –c
<your-gbs-conf> build –A i586’
Geoffroy
[1] cat <your-gbs-conf>
[general]
tmpdir=/var/tmp/
profile = profile.tizen3.0_ivi
work_dir=.
fallback_to_native=true
[repo.tizen3.0_x86]
url=${work_dir}/pre-built/toolchain-x86/
[repo.tizen3.0_arm]
url=${work_dir}/pre-built/toolchain-arm/
[repo.tizen3.0_x86_64]
url=${work_dir}/pre-built/toolchain-x86_64/
[profile.tizen3.0_ivi]
repos=repo.tizen3.0_x86,repo.tizen3.0_arm,repo.tizen3.0_x86_64
buildconf=${work_dir}/scm/meta/build-config/build.conf
exclude_packages=libtool,gettext
-----------------------------------------------
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09
From: Dev [mailto:[email protected]] On Behalf Of Michael Johnson
Sent: Monday, November 03, 2014 6:44 AM
To: Guan, JunchunX; Ding, Jian-feng
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Dev] FW: Error: No source package found at <Tizen_Project>
Hi Junchun,
In my earlier posts, I've explained that I have always run repo sync and gbs
build from the tizen source root directory. I've even deleted the .gbs.conf so
that it will be generated at the root of the tizen source directory.
I'll check if there is a .gbs.conf at ~/ user top level directory.
Thanks
________________________________
From: Guan, JunchunX [[email protected]]
Sent: 03 November 2014 3:41 AM
To: Michael Johnson; Ding, Jian-feng
Cc: [email protected]<mailto:[email protected]>
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
There is ~/.gbs.conf by default which use the error repo url:
http://download.tizen.org/releases/daily/trunk/ivi/latest/repodata/repomd.xml
Please check if there’s .gbs.conf in your tizen source tizen top directory.
gbs.conf in tizen source directory have higher priority.
If not, please run repo sync scm/meta/gbs-config and make sure
scm/meta/gbs-config/gbs.conf and .gbs.conf in tizen source top dir is the same.
BTW: please don’t run gbs build outside tizen source directory.
From: Dev [mailto:[email protected]] On Behalf Of Michael Johnson
Sent: Monday, November 03, 2014 8:36 AM
To: Ding, Jian-feng
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Dev] FW: Error: No source package found at <Tizen_Project>
Hi again,
I'm still blocked with this build problem. Can anyone tell me why GBS is
looking at this path:
fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/repodata/repomd.xml
=> /var/tmp/mjohnson-gbs/gbscachePfWA4a/repomd.xml
How do I change it to look at the right path as the above doesn't exist.
Thanks in advance.
________________________________
From: Dev [[email protected]] on behalf of Michael Johnson
[[email protected]]
Sent: 31 October 2014 12:45 PM
To: JF Ding
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Dev] FW: Error: No source package found at <Tizen_Project>
I used this path as suggested
http://download.tizen.org/releases/daily/tizen/ivi/tizen-ivi_20141031.3/, but
GBS is still looking for the trunk folder which doesn't exist, so no progress.
again, see the build.log below:
nohup: ignoring input
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'rev-parse', '--show-toplevel']
gbs:info: generate repositories ...
gbs:debug: fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/repodata/repomd.xml
=> /var/tmp/mjohnson-gbs/gbscachePfWA4a/repomd.xml
gbs:debug: disable HTTP caching
gbs:debug: fetching error:(22, 'The requested URL returned error: 404 Not
Found')
gbs:debug: fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/builddata/build.xml
=> /var/tmp/mjohnson-gbs/gbscachePfWA4a/build.xml
gbs:debug: fetching error:(22, 'The requested URL returned error: 404 Not
Found')
gbs:debug: fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/build.xml =>
/var/tmp/mjohnson-gbs/gbscachePfWA4a/build.xml
gbs:debug: fetching error:(22, 'The requested URL returned error: 404 Not
Found')
gbs:error: Traceback (most recent call last):
File "/usr/bin/gbs", line 602, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/gbs", line 596, in main
return module.main(args)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_build.py", line 330, in
main
cmd += prepare_repos_and_build_conf(args, buildarch, profile)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_build.py", line 149, in
prepare_repos_and_build_conf
'following repos:\n%s' % (arch, '\n'.join(repos)))
GbsError: <gbs>no available repositories found for arch i586 under the
following repos:
http://download.tizen.org/releases/daily/trunk/ivi/latest/
Regards
________________________________
From: JF Ding [[email protected]]
Sent: 31 October 2014 11:29 AM
To: Michael Johnson
Cc: Guan, JunchunX; [email protected]<mailto:[email protected]>; Li,
JinjingX; Lv, RuiX; Huang, Hao H
Subject: Re: [Dev] FW: Error: No source package found at <Tizen_Project>
Maybe wrong URL?
http://download.tizen.org/releases/daily/trunk/ivi/latest<http://download.tizen.org/releases/daily/trunk/ivi/latest/repodata/repomd.xml>
is 404.
You can try
this:http://download.tizen.org/releases/daily/tizen/ivi/tizen-ivi_20141031.3/
instead.
thanks
- jf.ding
On Friday, October 31, 2014 at 7:10 PM, Michael Johnson wrote:
Hi all,
I removed the .git folder and went through the set of commands at the link
below again, and it is now giving me a different error, so thanks Junchun for
that piece of info. My build.log now looks like this:
nohup: ignoring input
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'rev-parse', '--show-toplevel']
gbs:info: generate repositories ...
gbs:debug: fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/repodata/repomd.xml
=> /var/tmp/mjohnson-gbs/gbscacheQ_1QQx/repomd.xml
gbs:debug: disable HTTP caching
gbs:debug: fetching error:(22, 'The requested URL returned error: 404 Not
Found')
gbs:debug: fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/builddata/build.xml
=> /var/tmp/mjohnson-gbs/gbscacheQ_1QQx/build.xml
gbs:debug: fetching error:(22, 'The requested URL returned error: 404 Not
Found')
gbs:debug: fetching
http://download.tizen.org/releases/daily/trunk/ivi/latest/build.xml =>
/var/tmp/mjohnson-gbs/gbscacheQ_1QQx/build.xml
gbs:debug: fetching error:(22, 'The requested URL returned error: 404 Not
Found')
gbs:error: Traceback (most recent call last):
File "/usr/bin/gbs", line 602, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/gbs", line 596, in main
return module.main(args)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_build.py", line 330, in
main
cmd += prepare_repos_and_build_conf(args, buildarch, profile)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_build.py", line 149, in
prepare_repos_and_build_conf
'following repos:\n%s' % (arch, '\n'.join(repos)))
GbsError: <gbs>no available repositories found for arch i586 under the
following repos:
http://download.tizen.org/releases/daily/trunk/ivi/latest/
So now it's looking for the "trunk" folder, which doesn't exist at that path.
In case you're wondering, I'm using 'snapshot' not 'releases', so I'm not sure
why gbs is looking in the releases path. I'm going to try some things, but if
anyone has an idea about what's wrong, don't hesitate to let me know.
Thanks
________________________________
From: Guan, JunchunX [[email protected]<mailto:[email protected]>]
Sent: 31 October 2014 8:49 AM
To: Michael Johnson; Ding, Jian-feng
Cc: [email protected]<mailto:[email protected]>; Li, JinjingX; Lv, RuiX;
Huang, Hao H
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
Use repo init, repo sync to clone tizen source, not git init.
So your tizen source top directory should not contain .git directory.
If your tizen source top directory is a git tree, gbs treats it a single
project and gbs cannot find packaging directory and then build failed.
From: Michael Johnson [mailto:[email protected]]
Sent: Friday, October 31, 2014 2:27 PM
To: Ding, Jian-feng
Cc: [email protected]<mailto:[email protected]>; Li, JinjingX; Lv, RuiX;
Guan, JunchunX; Huang, Hao H
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
Hi Rui,
I've already posted the build.log and the .gbs.conf. Just look at the email
history below. I'm following the instructions on the following page:
https://source.tizen.org/documentation/developer-guide/all-one-instructions/creating-tizen-ivi-images-based-on-specific-snapshot-one-page
Junchun,
I had to do :
git init
in order to clone the source, if I remember correctly. I'll try removing .git
and let you know the outcome.
I'll post the commands I used when following the instructions on the above
link, when I get in office in a few hours time.
Cheers.
________________________________
From: Michael Johnson
Sent: 30 October 2014 3:49 PM
To: JF Ding
Cc: [email protected]<mailto:[email protected]>; Li, JinjingX; Lv, RuiX;
Guan, JunchunX; [email protected]<mailto:[email protected]>
Subject: RE: [Dev] FW: Error: No source package found at <Tizen_Project>
Hi all,
The result of running the following command from withing root tizen-project
folder is:
nohup gbs build -A i586 --threads=4 --baselibs >build.log 2>&1 &
still gives the same error.
ls -la gives:
drwxrwxr-x 12 mjohnson mjohnson 4096 Oct 30 15:36 .
drwxrwxr-x 4 mjohnson mjohnson 4096 Oct 30 15:36 ..
drwxrwxr-x 3 mjohnson mjohnson 4096 Oct 28 20:39 apps
-rw-rw-r-- 1 mjohnson mjohnson 440 Oct 30 15:33 build.log
-r--r--r-- 1 mjohnson mjohnson 460 Oct 30 12:40 .gbs.conf
drwxrwxr-x 7 mjohnson mjohnson 4096 Oct 29 11:48 .git
drwxrwxr-x 6 mjohnson mjohnson 4096 Oct 30 14:20 platform
drwxrwxr-x 5 mjohnson mjohnson 4096 Oct 30 12:39 pre-built
drwxrwxr-x 4 mjohnson mjohnson 4096 Oct 28 20:48 profile
drwxrwxr-x 7 mjohnson mjohnson 4096 Oct 30 14:14 .repo
drwxrwxr-x 3 mjohnson mjohnson 4096 Oct 28 20:50 scm
drwxrwxr-x 3 mjohnson mjohnson 4096 Oct 28 20:50 sdk
drwxrwxr-x 6 mjohnson mjohnson 4096 Oct 28 20:50 test
drwxrwxr-x 5 mjohnson mjohnson 4096 Oct 28 20:50 tools
.gbs.conf is:
[general]
tmpdir=/var/tmp/
profile = profile.tizen3.0_ivi
work_dir=.
fallback_to_native=true
[repo.tizen3.0_x86]
url=${work_dir}/pre-built/toolchain-x86/
[repo.tizen3.0_arm]
url=${work_dir}/pre-built/toolchain-arm/
[repo.tizen3.0_x86_64]
url=${work_dir}/pre-built/toolchain-x86_64/
[profile.tizen3.0_ivi]
repos=repo.tizen3.0_x86,repo.tizen3.0_arm,repo.tizen3.0_x86_64
buildconf=${work_dir}/scm/meta/build-config/build.conf
exclude_packages=libtool,gettext
Here's the build.log:
nohup: ignoring input
info: the following packages have been excluded build from gbs config:
libtool
gettext
info: generate repositories ...
info: start building packages from:
/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project (git)
2014-10-30 15:33 +0000
gbs 0.22.3
error: No source package found at
/home/mjohnson/workspace/tizen/cloneTizen/bin/tizen-project
error: <gbs>some packages failed to be built
[1]+ Exit 1 nohup gbs build -A i586 --threads=4 --baselibs >
build.log 2>&1
Hope this info helps to track down my problem.
Cheers
________________________________
From: JF Ding [[email protected]<mailto:[email protected]>]
Sent: 30 October 2014 2:03 PM
To: Michael Johnson
Cc: [email protected]<mailto:[email protected]>; Li, JinjingX; Lv, RuiX;
Guan, JunchunX; [email protected]<mailto:[email protected]>
Subject: Re: [Dev] FW: Error: No source package found at <Tizen_Project>
Michael,
By following the doc Geoffrey mentioned in another mail, have you tried again
and can it work now?
thanks
- jf.ding
On Thursday, October 30, 2014 at 9:50 PM, Michael Johnson wrote:
Hi,
The version is gbs 0.22.3, and I was trying to build the whole source.
Thanks for your help!
________________________________
From: JF Ding [[email protected]<mailto:[email protected]>]
Sent: 30 October 2014 1:45 PM
To: Michael Johnson
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Dev] FW: Error: No source package found at <Tizen_Project>
Michael,
Would you provide the version of gbs, and the package name that caused the
error message? We will double confirm the status of DEVT-148.
thanks
- jf.ding
On Thursday, October 30, 2014 at 7:41 PM, Michael Johnson wrote:
Hi all,
I'm having problems trying to build the Tizen source. Cloning the source went
fine, but I'm now going through
https://source.tizen.org/documentation/developer-guide/getting-started-guide/building-packages-locally-gbs,
and getting the above error when using the command:
gbs -d build -A i586 --threads=4 --clean-once
--exclude=gcc,cmake,filesystem,aul,libmm-sound,libtool
I'm using the .gbs.conf below that exists after cloning the source.
[general]
tmpdir=/var/tmp/
profile = profile.tizen3.0_ivi
work_dir=.
fallback_to_native=true
[repo.tizen3.0_x86]
url=${work_dir}/pre-built/toolchain-x86/
[repo.tizen3.0_x86_64]
url=${work_dir}/pre-built/toolchain-x86_64/
[profile.tizen3.0_ivi]
repos=repo.tizen3.0_x86,repo.tizen3.0_x86_64
buildconf=${work_dir}/scm/meta/build-config/build.conf
exclude_packages=libtool,gettext
Bug DEVT-148 says "gbs build fails with an error if packaging/ is a symlink",
and it says that it is fixed, so I'm wondering if there is anyone having this
issue, or is there a different way of building the source that is not mentioned
in the documentation?
Any guidance is appreciated.
Thanks
Mike
MICHAEL JOHNSON
Embedded Software Engineer
Symphony Teleca
Sunley House, 46 Jewry Street, Winchester, Hampshire, SO23 8RY
Phone: +441962868866, Fax: +441962868867
[email protected]<mailto:[email protected]>
www.symphonyteleca.com<http://www.symphonyteleca.com>
Teleca Limited, a company registered in England & Wales, registration number
2773878, registered office at Sunley House, 46 Jewry Street, Winchester,
Hampshire SO23 8RY. VAT registration number GB 674 6583 90
Follow what's going on at Symphony Teleca's blog on
www.symphonyteleca.com/blog<http://www.symphonyteleca.com/blog>. Please
consider the environment before you print.
Notice to recipient: This e-mail (including any attachments) is meant for the
intended recipient only, may contain confidential and proprietary information,
and is protected by law. If you received this e-mail in error, please
immediately notify the sender of the error by return e-mail, delete this
communication and any attachments, and shred any printouts. Unauthorized
review, use, dissemination, distribution, copying or taking of any action based
on this communication is strictly prohibited.
_______________________________________________
Dev mailing list
[email protected]<mailto:[email protected]>
https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev