Problem compiling a package

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?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 18:38, 2 users, load average: 0.24, 0.28, 0.37
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

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
Have you been working on it in a windows environment? If so it may need
running though dos2unix, or use wordpad not notepad.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 21:29, 2 users, load average: 0.12, 0.20, 0.16
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

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 :frowning: If you
login to the OBS and have a look here;
mypaint
OBS


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 1 day 16:46, 2 users, load average: 2.40, 2.56, 2.81
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

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 :frowning:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 1 day 18:35, 2 users, load average: 0.11, 0.52, 1.23
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Hi again,
Stupid beginners question: how did you create the spec file?
I did mine old-school: by hand… :slight_smile:

Hi
Same here :wink: 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.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 1 day 21:04, 2 users, load average: 0.17, 0.20, 0.18
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

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 :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 1 day 23:10, 2 users, load average: 0.14, 0.37, 0.44
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Thanks a lot! :slight_smile:
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.

Hi
For sure, that’s what the GPL is all about :slight_smile: I will turn it off and
delete from my repo.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 2 days 1:47, 2 users, load average: 0.17, 0.08, 0.07
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Just installed on this system and missed a Requires…


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 2 days 2:02, 2 users, load average: 0.02, 0.11, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Hi,
I’ve copyed it to my home project.
I’ll have a look and try to correct the problems.
Thanks for the push :wink: