[solved]How to compile a software with debug symbol from aur?

How does auch developers compile their project? Seems that archlinux user always trying to avoid build software from git/svn directly. But after searching a lot  I sill haven't found how to compile with debug symbol while using PKGBUILD.
Anyone help?
Last edited by ranjiao (2009-08-27 14:28:09)

ranjiao wrote:PKGBUILD calls autogen.sh before calling make, and gnome-autogen.sh is called in autogen.sh
I have tried to add --enable-debug while calling autogen.sh and gnome-autogen.sh, but it doesn't work.
Isn't PKGBUILD just a script? It calls what you make it calls by adding commands...

Similar Messages

  • [Solved] Recompile Software with debugging symbols?

    Has anyone an idea how to compile darktable with debugging symbols? I've grabbed the sources from the arch package and added the strings
    export CFLAGS="$CFLAGS -O0 -fbuiltin -g"
    export CXXFLAGS="$CXXFLAGS -O0 -fbuiltin -g"
    to the PKGBUILD as the arch wiki described in the "Step by step debugging guide", but it don't seems to work proberly. I can't obtain a proper backtrace.
    "gdb darktable" only gives me the message:
    Reading symbols from /usr/bin/darktable...(no debugging symbols found)
    What's my fault?
    Last edited by Thorsten Reinbold (2013-12-29 14:40:22)

    Sorry, that was really stupid. Thanks for the hints, I was able to compile now. But the next problem is knocking on the door: when I try to get a backtrace, I get a "No stack."-message from gdb. Google wasn't helpful with this and those are my first steps in debugging. Maybe some has an Idea? I only need a full backtrace for an upstream bugreport.
    Edit: got it. There was a gdb Zombie in the background.
    Solved!
    Last edited by Thorsten Reinbold (2013-12-29 14:40:04)

  • Cannot compile code with debug symbols

    I have a source code file that will not compile with debug symbols. I get an assertion failed in file ../src/regman/regman_local.cc at line 5224. The compile command and output are below.
    /opt/SUNWspro/bin/cc -g -xarch=v9b -xopenmp=noopt -xc99=all -c -o output/spirecon.o spirecon.c
    cg: assertion failed in file ../src/regman/regman_local.cc at line 5224
    cg: Out of range
    cg: 1 errors
    cc: cg failed for spirecon.c
    However without the debug options and using the default -fast switch, i.e.
    /opt/SUNWspro/bin/cc -fast -xarch=v9b -xopenmp=noopt -xc99=all -c -o output/spirecon.o spirecon.c
    it compiles without any problems.
    I was hoping someone might have a suggestion as to how what might cause this type of error.

    I have been told this is bugid: 4420630
    It only happens when you try to use the optimizing
    backend code generator without any optimization.
    (That's what -xopenmp=noopt does)
    If you add an -xO1 flag the assertion should go away, but you
    will also lose some (but not all) of your debuggability.
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to compile DNG SDK with GCC?

    I tried to compile DNG SDK with GCC, but I got stuck to the following error message:
    ... dng_flags.h:33:28: error: RawEnvironment.h: No such file or directory ...
    In other words, it seems that file 'RawEnvironment.h' is missing. I cannot find this file from DNG SDK or XMP SDK. Do you know where I could find this file or do you know how to compile DNG SDK with GCC?
    Regards Sami

    Please define either qMacOS or qWinOS (i.e., in your list of preprocessor defines). As you can see in line 32 of dng_flags.h this is required.

  • How to connect Desktop Software with BES ?

    Hi,
     I have installed latest BB Desktop Software on a system other than BES (4.1.6). Also installed BB simulator 4.2.2 (8830) on same system. I connected the Simulator to Desktop software successfully using USB, but can't connect it with BES server (installed on separate system) .
    Please tell me how to connect Desktop software with BES ? 
    regards,
    Laeeq 
    Message Edited by laeeq on 02-11-2009 06:37 PM
    Regards,
    Laeeq Qazi
    Team Lead (Exchange+BES) www.HostingController.com

    Hi William,
    Please make sure that Forward printing devices is checked. This allows you to use the local printer connects to your Mac in a remote desktop session.
    Getting Started with Remote Desktop Client on Mac
    http://technet.microsoft.com/library/dn473012
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Trying, failing to build qt5 with debugging symbols

    As per this article, I modified my PKGBUILD like so (-developer-build):
    build() {
    cd ${_pkgfqn}
    export QTDIR="${srcdir}"/${_pkgfqn}
    export LD_LIBRARY_PATH="${QTDIR}"/qtbase/lib:"${QTDIR}"/qttools/lib:"${LD_LIBRARY_PATH}"
    export QT_PLUGIN_PATH="${QTDIR}"/qtbase/plugins
    export PATH="${srcdir}/python2-path:$PATH"
    [[ "${CARCH}" = "i686" ]] && SSE2="-no-sse2"
    PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource -developer-build \
    Don't know if I put the option in the wrong place, though, or if that information is outdated for qt5 - but it's not building for me. Here's where makepkg stops:
    ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so
    ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so.5
    ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so.5.4
    rm -f ../../lib/libQt5Widgets.so.5.4.0
    mv -f libQt5Widgets.so.5.4.0 ../../lib/
    rm -f ../../lib/libQt5Widgets.so
    rm -f ../../lib/libQt5Widgets.so.5
    rm -f ../../lib/libQt5Widgets.so.5.4
    mv -f libQt5Widgets.so ../../lib/
    mv -f libQt5Widgets.so.5 ../../lib/
    mv -f libQt5Widgets.so.5.4 ../../lib/
    make[3]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase/src/widgets'
    make[2]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase'
    Makefile:70: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    Not sure what happened. How do I get more information?
    I need qt5-base with debugging symbols so I can get helpful traces for plasma-desktop crashes. So I should also ask: is it possible to modify the PKGBUILD to just compile qt5-base (and perhaps qt5-webkit and qt5-webengine)? qt5 is huge...
    EDIT: and yes I had qtwebkit uninstalled at the time
    Last edited by YAOMTC (2015-01-03 06:12:49)

    I hate it when the only result for a problem is an unanswered question...
    Anyway, invoking make manually uncovers what is the problem - there's a bunch of errors similar to this:
    ../gui/text/qfontengine_ft.cpp:1146:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    for (int x = 0; x < slot->bitmap.width; x++) {
    ^
    cc1plus: all warnings being treated as errors
    So the -Werror is the culprit. Looking at the ./configure -help output it turns out that the -developer-build enables -Werror. But there's -no-warnings-are-errors. So yeah, passing -no-warnings-are-errors in addition to -developer-build should fix the compilation.
    I have updated the wiki accordingly.
    EDIT: the compilation gets a bit further, but it now fails because of tests.
    EDIT2: it pays off to read configure rather than rely on some random suggestion from the wiki. There's a "-debug" option, which should just enable debugging. It hasn't finished compiling here yet, but it got a lot further than before.
    Last edited by 6xx (2015-02-03 21:13:49)

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to send a mail with HTML body from Oracle

    Hi Team,
    Can somebody guide me how to send a mail with HTML body from oracle.
    Here is the piece of code i am trying to send a mail.
    procedure SEND_MAIL is
    cursor c_1 is select * from table_name;
    l_mail_id varchar2(40);
    -- ls_mailhost VARCHAR2(64) := Mailhost;
    ls_from VARCHAR2(64) := ‘[email protected]
    ls_subject VARCHAR2(200);
    ls_to VARCHAR2(64);
    l_mail_conn UTL_SMTP.connection;
    ls_left_menu_name VARCHAR2(64);
    ll_emp_num number(8);
    begin
    for i in c_1 loop
    begin
    l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
    UTL_SMTP.HELO(l_mail_conn, 'IP');
    UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
    UTL_SMTP.RCPT(L_mail_conn, LS_TO);
    UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
    'To: ' ||ls_to || utl_tcp.crlf ||
    'Subject: ' ||ls_subject|| utl_tcp.crlf);
    UTL_SMTP.QUIT(l_mail_conn);
    exception
    when no_data_found then
    null;
    when others then
    RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
    end;
    end loop;
    end;
    Thnx

    Hi Nicolas!
    Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
    If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
    SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
    Hope this helps!
    Regards
    Geir

  • How do I transfer Fish with attitude game from IPad 2 to Ipad Air

    How do I transfer Fish with /attitude game from IPad 2 to Ipad Air

    Assuming you own both iPads (and are using the same Apple ID on both), simply sync your iPad 2 using iTunes, then sync your iPad Air using the same iTunes on your computer.

  • How do i send emails with outlook express from firefox

    how do i send emails with outlook express from firefox

    You can add a button by using the [http://webdesigns.ms11.net/getmail.html Get Mail] add-on.

  • Makepkg hangs at "Stripping debugging symbols from binaries [...]"

    Hi,
    I made a PKGBUILD for the io (programming language) virtual machine but makepkg hangs at:
    ==> Tidying install...
    -> Removing info/doc files...
    -> Compressing man pages...
    -> Stripping debugging symbols from binaries and libraries...
    The PKGBUILD:
    # Contributor:
    pkgname=io
    pkgver=2008.03.30
    pkgrel=1
    pkgdesc="Virtual machine for Io, a small, prototype-based programming language"
    url="http://www.iolanguage.com/"
    arch=(i686)
    license=()
    depends=()
    makedepends=()
    options=()
    conflicts=()
    source=(http://github.com/tarballs/stevedekorte-io-4debb4b25740b8dd46ad16f43f04f0fc5b4a23e1.tar.gz)
    md5sums=('')
    build() {
    mv $startdir/src/stevedekorte-io-4debb4b25740b8dd46ad16f43f04f0fc5b4a23e1 $startdir/src/$pkgname-$pkgver
    cd $startdir/src/$pkgname-$pkgver
    make vm || return 1
    make INSTALL_PREFIX=${startdir}/pkg/usr install
    rm -rf ${startdir}/src/io-2008.03.30/_build
    has anyone a hint where to start searching for a solution? Or can anyone explain to me what "Stripping debugging symbols from binaries and libraries ..." in this context means?
    Thanks,
    hightower

    Ok,
    First of all thanks to shining.
    I found the reason. The responsible piece of code:
    for file in $(find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f 2> /dev/null || true); do
    case "$(file -biz "$file")" in
    *application/x-sharedlib*) # Libraries
    /usr/bin/strip --strip-debug "$file";;
    *application/x-executable*) # Binaries
    /usr/bin/strip "$file";;
    esac
    done
    As some filenames contain spaces they are split in the wrong way so the "filename storage" contains wrong file names. As several files contain " - " the script tries to read from stdin which causes the hang (I suppose). I'll file a bug report.
    hightower
    Last edited by hightower (2008-04-26 21:54:48)

  • How to use the software with BSD License, such as substance!

    Hi everyone, any idea use the software with BSD License, such as substance?

    Welcome to the forum
    First of all let's be quite clear that whatever output you
    generate, you do not need RoboHelp loaded on the end users PC.
    You don't say whether you are planning to use RH HTML or RH
    for Word. The latter has the advantage that you are working with a
    tool that you understand but in my book there it ends. You want to
    generate HTML topics for an intranet and that is best done using RH
    HTML. It's much easier to make the output take on the appearance
    you want.
    Your software would open the help you create either at a
    default topic or a specific topic. That is controlled by how your
    developers call the help. No need to go into detail on that just
    yet. There are a couple of topics on my site about that.
    The next step depends on how you design things. Are you going
    to create a page that describes a particular document that links to
    the document or are you going to convert the document to a topic in
    its own right?
    - If you are planning to link to the Word document, then you
    need to consider how a Word document would open from an intranet
    link. See Snippets on my site. Perhaps another option would be to
    create PDFs of the documents.
    - If you are planning to import the documents and recreate
    them as HTML topics, I suggest you have some aspirin handy.
    Importing is a notorious problem area as you can see from topics on
    my site. That said, those topics explain how to avoid the worst
    problems. The fly in the ointment is that you are using Information
    Mapping and those indents and tables will give you real fun!
    You can create printed documentation but most of your site
    will be stuff that you already have in Word format so you need to
    include that in your design thinking.
    As to books there really isn't that much around. There are
    some links on the Useful Links page of my site but I don't think
    they will help you much on this one. You could read this forum from
    cover to cover!
    Hope that helps a bit. Come back if you have some follow up
    questions.

  • How do we "demo" software with the app store?

    usually there's a demo to try an app before you buy - how do we do this with the app store?

    Use the developers site for any software demo/download/purchase that is of a substancial cost amount to you.
    You DON'T want to deal with Apple's semi-English speaking India call center if you have a issue. TRUST ME! 

  • How to compile a package with classess

    Hi,
    Can any one tell me , how to compile a package ?
    Actually, i have three classes under the package named as linklist.
    i am unable to compile the classes under this package ? its always raising errors. saying that the package does not exist.
    Can any one tell me, why it is like this ?
    thanks in advance

    Hi,
    Can any one tell me , how to compile a package ?I'll try.
    Actually, i have three classes under the package named
    as linklist. Okay, so you have the package statement at the top of each class, right?
    And the 3 classes reside in a folder named linklist?
    Okay, if you do, while in the folder above linklist, do:
    javac linklist/*.java (using the appropriate slash)
    Did it work?

  • How to compile kernel-eeepc with squash support?

    What i have to change to this package from aur (kernel-eeepc - http://aur.archlinux.org/packages.php?ID=26392) for having aufs/squashfs support?

    sl1pkn07 wrote:why this downgrade
    Because there's lotsa compilation fails caused by the giflib API changing.

Maybe you are looking for