Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Problem compiling a package

  1. #1

    Default 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

  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,932
    Blog Entries
    15

    Default Re: Problem compiling a package

    Quote Originally Posted by marcosgildavid
    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.
    <snip>
    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


  3. #3

    Default Re: Problem compiling a package

    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).

  4. #4
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,932
    Blog Entries
    15

    Default Re: Problem compiling a package

    Quote Originally Posted by marcosgildavid
    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


  5. #5

    Default Re: Problem compiling a package

    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.

  6. #6
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,932
    Blog Entries
    15

    Default Re: Problem compiling a package

    Quote Originally Posted by marcosgildavid
    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


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


  7. #7
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,932
    Blog Entries
    15

    Default Re: Problem compiling a package

    Quote Originally Posted by Malcolm
    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

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


  8. #8

    Default Re: Problem compiling a package

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

  9. #9
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,932
    Blog Entries
    15

    Default Re: Problem compiling a package

    Quote Originally Posted by marcosgildavid
    Hi again,
    Stupid beginners question: how did you create the spec file?
    I did mine old-school: by hand... :-)
    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.

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


  10. #10
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,932
    Blog Entries
    15

    Default Re: Problem compiling a package

    Quote Originally Posted by Malcolm
    Quote Originally Posted by marcosgildavid
    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
    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

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


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •