Hi,
I was trying to create a package for MyPaint 0.7.1 and I’m having problems with gcc.
The build starts fine but then some of the parameters get extra spaces in them and the build fails.
Can anybody give a little help?
Thanks in advance.
Sample build log:
scons
scons: Reading SConscript files …
/usr/lib64/python2.6/site-packages/SCons/Platform/posix.py:38: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
/usr/lib64/python2.6/site-packages/SCons/Tool/msvs.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Building for python2.6
swig -o mypaintlib_wrap.cpp -python -c++ mypaintlib.i
python generate.py
Writing brushsettings.hpp
scons: done reading SConscript files.
scons: Building targets …
g++ -o lib/mypaintlib_wrap.os -c **" " - W a l l " " - W n o - s i g n - c o m p a r e " " - W n o - w r i t e - s t r i n g s **-fno-strict-aliasing -fmessage-length=0 -O2 -Wall -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 lib/mypaintlib_wrap.cpp
g++: : No such file or directory
g++: W: No such file or directory
g++: a: No such file or directory
g++: l: No such file or directory
g++: l: No such file or directory
g++: : No such file or directory
g++: W: No such file or directory
g++: n: No such file or directory
g++: o: No such file or directory
g++: s: No such file or directory
g++: i: No such file or directory
g++: g: No such file or directory
g++: n: No such file or directory
g++: c: No such file or directory
g++: o: No such file or directory
g++: m: No such file or directory
g++: p: No such file or directory
g++: a: No such file or directory
g++: r: No such file or directory
g++: e: No such file or directory
g++: : No such file or directory
g++: W: No such file or directory
g++: n: No such file or directory
g++: o: No such file or directory
g++: w: No such file or directory
g++: r: No such file or directory
g++: i: No such file or directory
g++: t: No such file or directory
g++: e: No such file or directory
g++: s: No such file or directory
g++: t: No such file or directory
g++: r: No such file or directory
g++: i: No such file or directory
g++: n: No such file or directory
g++: g: No such file or directory
g++: s: No such file or directory
Hi
Just tried it here on a test virtual machine and it compiles fine and
runs. Did you check the md5sum of your source file, I wonder if it got
corrupt somehow?
Hi, I tried uploading the package but I still get the same error.
The bolded text in my first post keeps appearing (the g++ parameters have spaces in them).
Hi,
No, I got directly from the application’s site.
I tried the exact same procedure on my machine (openSUSE 11.1) and it worked perfectly. I also suspect there is something wrong with the charset since it seems that part of the parameters are being outputted in UTF-16.
Is there anyawy I can further debug this?
These parameters are generated by scons, can it be related to some environment variable?
Thanks.
Hi
Yes it is the env variable, have build a i586 version on the OBS, 64bit
has some further issues, plus have never used scons before If you
login to the OBS and have a look here; mypaint
OBS
Hi Again
Ugh, also noted whilst it builds I had some leftovers in the
mypaint/desktop dir so it worked, but the built rpm on OBS won’t there
still needs some tweaking in the SConstruct file
Hi
Same here I use medit (see my repo) as it has a shell terminal as
well.
Also make sure you install suse-brp-check on your build system as it
will highlight errors before placing on the OBS.
Hi
Have a look now, it’s all built, but there are some warnings on the
64bit version, but both appear to run ok. It needs further
investigation for sure
Thanks a lot!
Can I copy the stuff you did into my home project? I’ll try to maintain the package. Seems like a good place to start learning how the build service works.