Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Gazelle (http://www.bvlist.com/forumdisplay.php?f=40)
-   -   Problem when i build ocelot (http://www.bvlist.com/showthread.php?t=10392)

Killermix 10th June 2015 17:47

Problem when i build ocelot
 
Hello all!

I have a problem when i'm trying to build Ocelot.

First I have modified config.cpp

Then I have ran this command :

Code:

./configure --with-mysql-lib=/usr/lib/x86_64-linux-gnu/ --with-ev-lib=/usr/lib/x86_64-linux-gnu/
All seemed to be ok so then I ran "make" command then i got this error :

Code:

g++ -DPACKAGE_NAME=\"ocelot\" -DPACKAGE_TARNAME=\"ocelot\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"ocelot\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_IOSTREAMS=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBTCMALLOC=1 -I.  -I/usr/include -I/usr/include/mysql -I/usr/include/mysql++ -std=c++11 -march=native -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fno-ident -Wall -Wfatal-errors -pthread -I/usr/local/include -g -O2 -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.cpp
config.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
 #include
 ^
compilation terminated due to -Wfatal-errors.
make: *** [config.o] Error 1


I dont know what to do, I have previously built ocelot on another server, and all went fine, but on this server that won't.

Thanks in advance, and sorry for my poor english

DND 10th June 2015 19:40

you cant use x64 settings because you dont have a CPU with x64 arhitecture.
That means you have x86 CPU that is a damn single core and a i386 OS.. because i can't believe you've installed x64 OS on a i386 machine.

Killermix 10th June 2015 19:51

Nope it's a 64bits cpu, look at the lscpu cmd :

Code:

root@localhost:~# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:  0-3
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):            4
NUMA node(s):          1
Vendor ID:            GenuineIntel
CPU family:            6
Model:                13
Stepping:              3
CPU MHz:              1999.999
BogoMIPS:              3999.99
Hypervisor vendor:    KVM
Virtualization type:  full
L1d cache:            32K
L1i cache:            32K
L2 cache:              4096K
NUMA node0 CPU(s):    0-3


DND 10th June 2015 22:02

and the OS arhitecture ?

Killermix 10th June 2015 23:36

My OS is Ubuntu 14.04 LTS 64bits.

"uname -a" returns :

Code:

Linux localhost 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
and if it can help "cat /proc/cpuinfo" returns :

Code:

processor      : 0
vendor_id      : GenuineIntel
cpu family      : 6
model          : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode      : 0x1
cpu MHz        : 1999.999
cache size      : 4096 KB
physical id    : 0
siblings        : 1
core id        : 0
cpu cores      : 1
apicid          : 0
initial apicid  : 0
fpu            : yes
fpu_exception  : yes
cpuid level    : 4
wp              : yes
flags          : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca  cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16  hypervisor lahf_lm
bogomips        : 3999.99
clflush size    : 64
cache_alignment : 64
address sizes  : 46 bits physical, 48 bits virtual
power management:

processor      : 1
vendor_id      : GenuineIntel
cpu family      : 6
model          : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode      : 0x1
cpu MHz        : 1999.999
cache size      : 4096 KB
physical id    : 1
siblings        : 1
core id        : 0
cpu cores      : 1
apicid          : 1
initial apicid  : 1
fpu            : yes
fpu_exception  : yes
cpuid level    : 4
wp              : yes
flags          : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca  cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16  hypervisor lahf_lm
bogomips        : 3999.99
clflush size    : 64
cache_alignment : 64
address sizes  : 46 bits physical, 48 bits virtual
power management:

processor      : 2
vendor_id      : GenuineIntel
cpu family      : 6
model          : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode      : 0x1
cpu MHz        : 1999.999
cache size      : 4096 KB
physical id    : 2
siblings        : 1
core id        : 0
cpu cores      : 1
apicid          : 2
initial apicid  : 2
fpu            : yes
fpu_exception  : yes
cpuid level    : 4
wp              : yes
flags          : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca  cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16  hypervisor lahf_lm
bogomips        : 3999.99
clflush size    : 64
cache_alignment : 64
address sizes  : 46 bits physical, 48 bits virtual
power management:

processor      : 3
vendor_id      : GenuineIntel
cpu family      : 6
model          : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode      : 0x1
cpu MHz        : 1999.999
cache size      : 4096 KB
physical id    : 3
siblings        : 1
core id        : 0
cpu cores      : 1
apicid          : 3
initial apicid  : 3
fpu            : yes
fpu_exception  : yes
cpuid level    : 4
wp              : yes
flags          : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca  cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16  hypervisor lahf_lm
bogomips        : 3999.99
clflush size    : 64
cache_alignment : 64
address sizes  : 46 bits physical, 48 bits virtual
power management:

Bump: It's OK !
Solution found :
It need to modify -march flag in the Makefile, from "native" to "x86-64"

Zsolti88 20th July 2015 19:14

ocelot
 
hello After the ocelot launching such a thing ir debug.log the file and then automatically restarts


Error message:


Began worker :: do_reap_peers () Completed worker :: do_reap_peers () Began worker :: do_reap_peers () Completed worker :: do_reap_peers () I can not figure out what could be the problem?

DND 21st July 2015 16:46

do it again...

firefly007 1st September 2015 14:14

Ocelot configure for a 86bit CPU
 
Quote:

Originally Posted by Killermix (Post 47114)
Hello all!

I have a problem when i'm trying to build Ocelot.

First I have modified config.cpp

Then I have ran this command :

Code:

./configure --with-mysql-lib=/usr/lib/x86_64-linux-gnu/ --with-ev-lib=/usr/lib/x86_64-linux-gnu/
All seemed to be ok so then I ran "make" command then i got this error :

Code:

g++ -DPACKAGE_NAME=\"ocelot\" -DPACKAGE_TARNAME=\"ocelot\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"ocelot\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_IOSTREAMS=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBTCMALLOC=1 -I.  -I/usr/include -I/usr/include/mysql -I/usr/include/mysql++ -std=c++11 -march=native -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fno-ident -Wall -Wfatal-errors -pthread -I/usr/local/include -g -O2 -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.cpp
config.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
 #include
 ^
compilation terminated due to -Wfatal-errors.
make: *** [config.o] Error 1

I dont know what to do, I have previously built ocelot on another server, and all went fine, but on this server that won't.

Thanks in advance, and sorry for my poor english

Once you are in Ocelot's directory and if you are using 86 bit Kernel meaning 86/32 bit CPU then configure using this command

Configure

Code:

./configure --with-mysql-lib=/usr/lib/i386-linux-gnu
Then Make

Code:

make
And then install

Code:

sudo make install

Zsolti88 29th October 2015 13:41

duplicate peer
 
Unfortunately, the problem persists esettleg could someone help me?
Image:
http://www.kephost.com/images/2015/10/27/ggggg.png




db.cpp


Code:



void mysql::flush_peers() {
    std::string sql;
    boost::mutex::scoped_lock lock(peer_buffer_lock);
    // because xfu inserts are slow and ram is not infinite we need to
    // limit this queue's size
    if (peer_queue.size() >= 1000) {
        peer_queue.pop();
    }
    if (update_peer_buffer == "") {
        return;
    }
   
    if (peer_queue.size() == 0) {
        sql = "SET session sql_log_bin = 0";
        peer_queue.push(sql);
        sql.clear();
    }
   
    // Added port below to record it into the DB. //Mobbo
    sql = "INSERT INTO xbt_files_users (uid,fid,active,uploaded,downloaded,upspeed,downspeed,remaining," +
        std::string("timespent,announced,ip,port,peer_id,useragent,mtime) VALUES ") + update_peer_buffer +
                " ON DUPLICATE KEY UPDATE active=VALUES(active), uploaded=VALUES(uploaded), " +
                "downloaded=VALUES(downloaded), upspeed=VALUES(upspeed), " +
                "downspeed=VALUES(downspeed), remaining=VALUES(remaining), " +
                "timespent=VALUES(timespent), announced=VALUES(announced), " +
                "mtime=VALUES(mtime), port=VALUES(port)";
    peer_queue.push(sql);
    update_peer_buffer.clear();
    if (peer_queue.size() == 2 && p_active == false) {
        boost::thread thread(&mysql::do_flush_peers, this);
    }
}


firefly007 9th November 2015 12:58

I'm not sure if you told us what OS your server is, the reason I ask is.. Did you check if you got any errors when installing lib's, this in most cases what causes most of the errors.

Also you need to make sure that you are using a newer OS because in a lot of cases the older Linux distros will not have some of the pre installed lib's.
But this can easily be avoided if you follow the instructions given on GitHub.


All times are GMT +2. The time now is 18:30.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.