Compiling libtorrent & rtorrent for arch64

rtorrent is a pretty nice Ncurses BitTorrent client based on libTorrent.
3 weeks ago, I built lib+rtorrent-0.6.3 from default aur PKGBUILD under arch64 and it is working fine.
New version 0.6.4 PKGBUILD differs from previous as it gives specific CXXFLAGS options.
Is there any need/interest to switch from "old" (below) to "new" CXXFLAGS style?
build() {
cd $startdir/src/$pkgname-$pkgver
patch -p1 < ../rtorrent.patch
CXXFLAGS="${CXXFLAGS} -fno-strength-reduce -fno-thread-jumps -fno-inline -fforce-addr"
./configure --prefix=/usr --disable-debug
make || return 1
make DESTDIR=$startdir/pkg install
Or switch to new one which I think would be:
if [ "$CARCH" == "x86_64" ]; then
CXXFLAGS="-march=x86_64 -Os -pipe -fno-strength-reduce -fno-thread-jumps -fno-inline -fforce-addr"
./configure --prefix=/usr --disable-debug
else
CXXFLAGS="-march=i686 -Os -pipe -fno-strength-reduce -fno-thread-jumps -fno-inline -fforce-addr"
./configure --prefix=/usr --disable-debug
fi

Cerebral wrote:As for the arch= question, not a lot of package submitters/maintainers in the AUR have an x86_64 system, so they don't know whether or not it compiles on Arch64 - they can't put arch=(x86_64) unless they can verify it in some way.  Also, the arch= tag is fairly new, so I'd imagine some people don't even know it exists - in general they should be using it though.
Oh that makes sense
Haven't had any issue while running rtorrent's built with Arch64's makepkg.conf defaults flags (ok, with 'march=athlon64') as I still use ${CXXFLAGS} even on the latest 0.6.4 release. Maybe I'm lucky.
In fact rtorrent on arch64 is slower to be responsive after it started than on arch i686 (where I use the community package i guess).
Then after a minute it's fully functionnal, and's doing an amazing job here I dunno how to recognize "out-of-memory errors" unless they print something on the console.
codemac : strange. I wouldn't worry if I was you. Some others linuxtracker registered users also use lib/rtorrent. But never one has had version up-to-date to Arch's
:?  pliz excuse my poor English; it's getting pretty late here

Similar Messages

  • [SOLVED] Problems building libtorrent+rtorrent

    I used this guide to easily build libtorrent+rtorrent on my ubuntu box and want to do the same on my archlinux laptop. However, when doing ./configure for rtorrent I get this message:
    checking pkg-config is at least version 0.9.0... yes
    checking for STUFF... configure: error: Package requirements (sigc++-2.0 libcurl >= 7.12.0 libtorrent >= 0.11.8) were not met:
    No package 'libtorrent' found
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    Alternatively, you may set the environment variables STUFF_CFLAGS
    and STUFF_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    libtorrent installed successfully in /usr/local/lib and I have included /usr/local/lib in my /etc/ld.so.conf.
    Why is libtorrent then not found??
    Last edited by alphahsk (2008-01-09 17:04:13)

    Any particular reason for trying to build the latest trunk version yourself instead of using the nice packages in community?
    Yes I know I could just Pacman -S the whole thing, but I though I could just build it straight from his svn trunk for once, and if anything learn a thing or two about compiling stuff in the process.
    If anyone has done this on Arch I'd be interested in the tweaks necessary to get it done.

  • How to compile a dll for JNI in the CMD correctly

    Now I find alot of old threads on using the mno command in cygwin to created dlls to use as an interface between c and Java, however I know this command is no longer available in cygwin and so I took the advid of downloading minGW and using this in the CMD instead.
    However every example I try to compile and run this way throws the unsatified link error when the native function is to be called by the Java program. I believe it must be a compiling error creating a mismatch between the native function and the function to be called.
    Here is the method I'm using to comile dlls for JNI, it is from the FAQ section of the minGw website:
    gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at
    -Ic:/j2sdk1.4.1_02/include -Ic:/j2sdk1.4.1_02/include/win32
    -shared someJavaImp.c -o JavaImp.dll
    Is this how dll should be compiled? If not any suggestions?

    sudsey wrote:
    I know how to program well in C and Java, I just need to know the proper way to compile a dll for JNI.1. Get the MS IDE
    2. Create a dll project - it must NOT be a managed dll
    3. All done.

  • Compiling c++ files for windows

    I have a c++ program that I would like to compile windows binaries for. I have tried installing mingw32-gcc, and using g++, but when I run the binaries (in wine or from windows), I get errors that certain .dll files are not found. Is there additional configuration needed to set up mingw32? Or should I be using a completely separate compiler. Thanks in advance!

    ewaller@odin:~/test[1] 1040 %locate libgcc_s_sjlj-1.dll
    /home/ewaller/Dropbox/libgcc_s_sjlj-1.dll
    /home/ewaller/Dropbox/wxwidgetsprojects/spacewar/src/libgcc_s_sjlj-1.dll
    /home/ewaller/devel/wxwidgetsprojects/spacewar/src/libgcc_s_sjlj-1.dll
    /usr/i486-mingw32/bin/libgcc_s_sjlj-1.dll
    /usr/i486-mingw32/lib/libgcc_s_sjlj-1.dll
    ewaller@odin:~/test 1041 %pacman -Qo /usr/i486-mingw32/bin/libgcc_s_sjlj-1.dll
    /usr/i486-mingw32/bin/libgcc_s_sjlj-1.dll is owned by mingw32-gcc 4.6.2-1
    ewaller@odin:~/test 1042 %pacman -Qo /usr/i486-mingw32/lib/libgcc_s_sjlj-1.dll
    /usr/i486-mingw32/lib/libgcc_s_sjlj-1.dll is owned by mingw32-gcc 4.6.2-1
    ewaller@odin:~/test 1043 %
    ewaller@odin:~/test 1054 %locate libstdc++-6.dll
    /home/ewaller/Dropbox/libstdc++-6.dll
    /home/ewaller/Dropbox/wxwidgetsprojects/spacewar/src/libstdc++-6.dll
    /home/ewaller/devel/wxwidgetsprojects/spacewar/src/libstdc++-6.dll
    /usr/i486-mingw32/bin/libstdc++-6.dll
    /usr/i486-mingw32/lib/libstdc++-6.dll
    ewaller@odin:~/test 1055 %pacman -Qo /usr/i486-mingw32/bin/libstdc++-6.dll
    /usr/i486-mingw32/bin/libstdc++-6.dll is owned by mingw32-gcc 4.6.2-1
    ewaller@odin:~/test 1056 %pacman -Qo /usr/i486-mingw32/lib/libstdc++-6.dll
    /usr/i486-mingw32/lib/libstdc++-6.dll is owned by mingw32-gcc 4.6.2-1
    ewaller@odin:~/test 1057 %
    waller@odin:~/test 1047 %locate pdcurses.dll
    ewaller@odin:~/test[1] 1048 %
    Edit: Okay, I botched that post.. I'm fixing it.... There, that is better
    Edit: The plot thickens...
    ewaller@odin:~/test 1070 %pkgfile pdcurses.dll
    ewaller@odin:~/test 1071 %
    Last edited by ewaller (2012-03-23 04:35:19)

  • What are the compiler generated codes for objective-c?

    After the compilation, the code for c/c++ is known as "object code" i.e. ".obj" file, and the binary executable file is ".exe" .
    Similarly for java the compiled code is known as ".class" file.
    In case of Objective-c what is the output of Compiler and what is the Executable file?

    Strictly speaking, .obj and .exe refer only to the output of the compiler and linker for a Windows system (or cross compiler).  For *nix compliant systems the output of the compiler is usually given a .o suffix and the executable produced after linking is named whatever you choose; but usually with no suffix at all.
    Also, technically speaking, Java .class fiels don't fit neatly into this paradigm.  The output of a Java compiler isn't object code, per se; it's optimized byte-code that can be run by the JRE.

  • Delphi doesn't compile the examples for DIO32HS

    Delphi doesn't compile the examples for DIO32HS
    Some libraries appear to be required,
    but there are none supplied
    According to the manual, one ActiveX should be sufficient.
    What version is the source provided ?

    The NI CD is Version 6.9.2
    There are examples : \National Instruments\NI-DAQ\Examples\Delphi
    There is no mention which Version of Delphi,
    I have 3,5 and 6. However there should be components
    to be installed into Delphi as DigitalWaveformContinous
    requires TCWNumEdit, TCWDI and so on.
    It also requires the units CWUIControlsLib_TLB,
    CWAnalysisControlsLib_TLB, CWDAQControlsLib_TLB which are not part of Delphi istself but have to be provided
    by NI.
    Today I'm going to try Borland C++Builder, of which
    I have version 4 and 5. This will also require some
    components to be installed in BCB, I couldn't find them
    yet.
    \National Instruments\NI-DAQ\Examples\BorlandC
    BTW: this ActiveX that was talked about couldn't be
    found on the drive either. no *.ocx
    It cannot be that hard. I just want a procedure
    to setup the PCI-DIO-32HS, in terms of what is input
    and output, how the handshaking is done and then
    read/write to the port.
    Rene

  • Can I compile an App for iOS from Dreamweaver CS5.5 from a PC running Windows (7)?

    Can I compile an App for iOS from Dreamweaver CS5.5 from a PC running Windows (7)?

    No, you need XCode to compile the app and you need a Developers license to be able to publish.

  • Compile jsp file for long time

    Hi All,
    I'm applying patch on EBS 11.5.9, now it's compiling jsp file for about 1hours.
    Below is the log file,
    enumerating jsps...13577
    updating dependency...13
    parsing jsp...13
    writing deplist...13577
    initializing compilation:
    eliminating children...10257 (-3320)
    searching uncompiled...13 (10 were stale)
    translating and compiling:
    searching untranslated...13
    translating jsps...
    Please advise.
    Thanks,
    Kevin

    I'm applying patch on EBS 11.5.9, now it's compiling jsp file for about 1hours.
    Below is the log file,What is the command you use to compile JSP file?
    It is normal for compiling JSP files to run for more than 1 hour, which depends on the hardware resources you have. So, I would suggest you wait and see if the job completes successfully.
    Thanks,
    Hussein

  • Compile Add-On for SBO 2005 and 2007

    Hi All,
    I am looking for a document that I downloaded a while ago on steps how to compile add-ons for SBO version 2005 and 2007 on the same machine. I don't want to run both versions (I can be running either) just want to be able to compile add-ons on both version 2005 and version 2007 on my local machine. I also don't want to use virtual machine or something like that.
    Thanks for the help,
    Adele

    Hi Adele,
    usually it is enough to change the .dll reference in your code and recompile it.
    you can also decide which diapi connection you use
    when creating the company object
    //The object OComp is defined as company object of the selected version
    Dim OComp As SAPbobsCOM.Company
    Set OComp = New SAPbobsCOM.Company
    or
    //The object OComp is defined as company object of version 2005
    Dim OComp As SAPbobsCOM.Company
    Set OComp = CreateObject("SAPbobsCOM.Company.6.8")
    // for 2007 it should be
    Dim OComp As SAPbobsCOM.Company
    Set OComp = CreateObject("SAPbobsCOM.Company.8")

  • Can anybody compile CIFS modules for IdeaPhone P780

    Can anybody be so kind to compile cifs modules for Lenovo IdeaPhone P780? It'll help us to connect network shares to use as local resources.
    Kernel source for P780 I found here: http://mobilesupport.lenovo.com/us/en/products/pho​nes/p-series/p780-smartphone
    Thanks in advance

    kleptophobiac wrote:Thanks a ton! Now what about madwifi?
    uudecode ./../hal/linux/i386-elf.hal.o.uu
    make[1]: uudecode: Command not found
    make[1]: *** [hal.o] Error 127
    You haven't got uudecode installed.  It's part of the sharutils package, so install that.
    - olly

  • Compile-time checking for Serializable

    Hi,
    For an object to be Serialized it must implement the Serializable interface. If any of the objects it stores as instance variables do not implement this interface then run-time exceptions will be thrown. Why can't there be a compile-time check for this? It seems fairly simple to me... Also, why don't the writeObject methods only accept objects that are Serializable? Just changing the method signature to public void writeObject(Serializable obj) throws... should be enough if compile-time checking were available.
    Am I being really stupid or are Sun?
    Dan.

    It would be impossible to reasonably check at compile time, because what if you had a variable of type Object? At runtime it might work because anything could be in there, but if you check at compile time, it would have to fail, because the compiler can't gurantee that the value will be serializable. Also, a non-serializable field wouldn't cause a problem at runtime if it's null, which is another condition the compiler cannot check.

  • I have compiled a program for a target after I added a new vi from NI_AALPro.lvlib. The addition worked fine on my development computer but gave me errors when run on the target.

    I have compiled a program for a target after I added a new vi from NI_AALPro.lvlib. The addition worked fine on my development computer but gave me errors when run on the target.
    The box displayed:
    Missing subVI NI_AALBase.lvlib:1D Linear Evaluation.vi in VI NI_PtbyPt.lvlib:Linear Fit PtbyPt.vi
    Missing subVI NI_AALPro.lvlib:MSE.vi in VI NIPtbtPt.lvlib:Linear Fit PtbyPt.vi
    What do I need to do to bring the correct library into the transportable code?

    Hello,
    I was unable to reproduce the behavior that you saw.  I was able to deploy my application with the Linear Fit PtByPt without issues.
    Could you attach the smallest piece of code that reproduces this behavior so that I can test it as well?
    Justin Parker
    National Instruments
    Product Support Engineer

  • How to cross compile 32bit packages on Arch64 via distcc?

    Is there a way to cross compile 32 bit packages on Arch64 via distcc?
    Use 32bit chroot on Arch64, maybe?
    If anyone has done such things, please tell me how.
    Thank you very much!

    Themaister wrote:http://wiki.archlinux.org/index.php/Arc … bit_system <--- good place to start
    That's exactly what I followed to make a 32bit chroot on a 64bit machine. Then just use pacman inside the chroot to install the base-devel group, and you can start compiling packages from AUR, exactly the same way as you usually do. That's what I do (I have eee laptop on which it's pain to compile, so I use my 64bit machine for compiling). Then just transfer the newly created packages to the 32bit machine and install...
    I don't use distcc for that, so can't help you with this, sorry.

  • Compiling MPlayer-SVN on Arch64

    Has anyone successfully built the Subversion package on Arch64?

    Thanks. I hadn't started to dig into the problem yet, but the compile error was blah..blah..blah.. libtool.... ccache...
    This is great. I'm itching to try out MPlayer-cvs.
    ------->>>EDIT
    It worked. A minute or so later, Subversion compiles. A minute after that, MPlayer-svn didn't. I guess that's a talk for this new and improved thread!
    It seems that the compiler is not finding avutil.h (possibly from the ffmpeg library [/libavcodec/avcodec.h]).

  • [SOLVED] Error compiling systray patch for dwm 6.0

    Hello folks.
    This is makepkg's output.
    ┌─[parazyd][archbox][~/dwm]
    └──╼ makepkg -ef
    ==> Making package: dwm 6.0-1 (Wed Nov 19 17:33:05 CET 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:329:0:
    config.h:67:1: warning: initialization from incompatible pointer type
    static const char *scratchpadcmd[] = { termcmd, "-title", scratchpadname, "-geometry", "150x40", NULL };
    ^
    config.h:67:1: warning: (near initialization for ‘scratchpadcmd[0]’)
    dwm.c: In function ‘cleanup’:
    dwm.c:551:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray) {
    ^
    dwm.c:551:5: note: each undeclared identifier is reported only once for each function it appears in
    dwm.c: In function ‘clientmessage’:
    dwm.c:593:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && cme->window == systray->win && cme->message_type == netatom[NetSystemTrayOP]) {
    ^
    dwm.c: In function ‘drawbar’:
    dwm.c:866:6: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && m == selmon)
    ^
    dwm.c: In function ‘getsystraywidth’:
    dwm.c:1124:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray)
    ^
    dwm.c:1125:42: error: ‘systrayspacing’ undeclared (first use in this function)
    for(i = systray->icons; i; w += i->w + systrayspacing, i = i->next);
    ^
    dwm.c:1125:56: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    for(i = systray->icons; i; w += i->w + systrayspacing, i = i->next);
    ^
    dwm.c: In function ‘keypress’:
    dwm.c:1252:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    dwm.c: In function ‘removesystrayicon’:
    dwm.c:1541:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray || !i)
    ^
    dwm.c: In function ‘resizebarwin’:
    dwm.c:1560:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && m == selmon)
    ^
    dwm.c: In function ‘togglebar’:
    dwm.c:1996:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray) {
    ^
    dwm.c: In function ‘updatebars’:
    dwm.c:2130:6: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && m == selmon)
    ^
    dwm.c: In function ‘updatesystrayiconstate’:
    dwm.c:2343:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray || !i || ev->atom != xatom[XembedInfo] ||
    ^
    dwm.c: In function ‘updatesystray’:
    dwm.c:2372:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray)
    ^
    dwm.c:2378:79: error: ‘DC’ has no member named ‘sel’
    systray->win = XCreateSimpleWindow(dpy, root, x, selmon->by, w, bh, 0, 0, dc.sel[ColBG]);
    ^
    dwm.c:2382:28: error: ‘DC’ has no member named ‘norm’
    wa.background_pixel = dc.norm[ColBG];
    ^
    dwm.c:2402:8: error: ‘systrayspacing’ undeclared (first use in this function)
    w += systrayspacing;
    ^
    dwm.c: In function ‘wintosystrayicon’:
    dwm.c:2509:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray || !w)
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    I'm trying to apply systray to my dwm-6.0, but I get errors when compiling and I'm not exactly sure what's the problem. Could anyone help?
    Here's the dwm.c after applying the patch: http://pastebin.com/Aie3Uw0n
    This is my dwm.c prior to patching (this one works): http://pastebin.com/ra0NhGnV
    And here's Unia's patch I'm trying to use: https://github.com/Unia/dwm-patches/blo … stray.diff
    Any help would be kindly appreciated.
    -- mod note: split from https://bbs.archlinux.org/viewtopic.php?id=92895&p=28 - Trilby --
    Last edited by parazyd (2014-11-19 17:03:03)

    Thanks a lot for that. Now I seem to be stuck on another thing :-/
    I have no idea what to do...
    ==> Making package: dwm 6.0-1 (Wed Nov 19 17:39:04 CET 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:329:0:
    config.h:25:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
    tatic const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
    ^
    In file included from dwm.c:329:0:
    config.h:71:1: warning: initialization from incompatible pointer type
    static const char *scratchpadcmd[] = { termcmd, "-title", scratchpadname, "-geometry", "150x40", NULL };
    ^
    config.h:71:1: warning: (near initialization for ‘scratchpadcmd[0]’)
    dwm.c: In function ‘keypress’:
    dwm.c:1252:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    dwm.c: In function ‘updatesystray’:
    dwm.c:2378:79: error: ‘DC’ has no member named ‘sel’
    systray->win = XCreateSimpleWindow(dpy, root, x, selmon->by, w, bh, 0, 0, dc.sel[ColBG]);
    ^
    dwm.c:2382:28: error: ‘DC’ has no member named ‘norm’
    wa.background_pixel = dc.norm[ColBG];
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...

Maybe you are looking for

  • Issues with OCI connection..

    I've been working on this for over a day, with infinite variations on the theme; but I cannot get a basic query to give back data. I've got the following code: <? $orcl = <<<OUT (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT

  • Ipod is not recognized in Windows or itunes...Need some help here!

    I have the ipod connected via the USB cable. I have the newest updated program and itunes installed. For some reason the iupod is not being recognized. anyone know what i can do??

  • HT1212 iTunes wont work to restore my perm. disabled ipad 2 ios 7. HELP

    Recently, for christmas I recieved an iPad 2. I got it set up, working fine, entered my password. I got Clash of Clans, and Boom Beach on it (probably doesn't matter...) and turned it off to go do something else. Once I picked it up again, I entered

  • Informix conversion issue

    When using the Migration Workbench, I walk through all of the wizard screens till I get to the finish screen. Hit finish, it starts to execute then returns the following error: Failed to Load Source Model. Cannot reference an external database withou

  • Essbase Excel Add-in in 11.1.2.1

    Hi All, We have Essbase 9.3.1 in our current configuration with Excel Add-In. We want to migrate to Essbase 11.1.2.1 but we still want to use Excel Add-In, as we have VBA Macros. Please help me regarding this. Thanks Satya