Bitcoin Forum
November 10, 2024, 09:05:01 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need Help Compiling Reaper in Ubuntu  (Read 4500 times)
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 04, 2012, 06:59:15 PM
 #1

I recently installed Ubuntu linux and I need help compiling reaper. I am following the readme directions exactly and I am stuck here:

Code:
c4n10@ubuntu:~/Miners/reaperv13beta4_src/build$ cmake -D CMAKE_BUILD_TYPE=Release ..
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Warning (dev) at CMakeLists.txt:100 (link_directories):
  This command specifies the relative path

    CURL_LIBRARY-NOTFOUND

  as a link directory.

  Policy CMP0015 is not set: link_directories() treats paths relative to the
  source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CURL_INCLUDE_DIR
   used as include directory in directory /home/c4n10/Miners/reaperv13beta4_src
CURL_LIBRARY
    linked by target "reaper" in directory /home/c4n10/Miners/reaperv13beta4_src
OPENCL_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/c4n10/Miners/reaperv13beta4_src

-- Configuring incomplete, errors occurred!

I have installed CCC and SDK 2.7 as best I can tell via their readme instructions and I have no idea what to do from here. Any help is greatly appreciated!
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 04, 2012, 07:43:12 PM
 #2

Have you installed build-essential and so on?
Something like this:

Code:
sudo apt-get install make automake build-essential libcurl4-openssl-dev


 
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 04, 2012, 08:20:43 PM
Last edit: October 04, 2012, 08:46:06 PM by c4n10
 #3

Have you installed build-essential and so on?
Something like this:

Code:
sudo apt-get install make automake build-essential libcurl4-openssl-dev

Thank you for that!

Ok, I have gotten it compiled and built but now when I run the reaper binary I get "reaper: command not found" even though the "reaper" and "reaper.conf" files are in the same directory as all the .cl files.
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 04, 2012, 09:01:10 PM
 #4

If you just type reaper it will search for that in the directories contained in the $PATH variable,
the current directory is probably not, so you need to call it like this

Code:
./reaper


also the file has to be executable, if it is not you need to run chmod +x on it.

c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 04, 2012, 09:06:37 PM
 #5

If you just type reaper it will search for that in the directories contained in the $PATH variable,
the current directory is probably not, so you need to call it like this

Code:
./reaper


also the file has to be executable, if it is not you need to run chmod +x on it.



Alright, one step closer! Thank you!

Now it starts, but I receive: "Error getting OpenCL platforms"
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 05, 2012, 06:55:53 PM
 #6

Now it starts, but I receive: "Error getting OpenCL platforms"

Hmm, I've never used reaper to mine litecoins, have you told it which device id to use (it seems there must be a config file)
So we are at step one now again, is opencl working  Grin

Try to run clinfo and see if it lists your gpus:
Code:
clinfo | grep "Device Type"

should show something like this ( I only have one gpu, so it lists my GPU and CPU ):
Quote
Device Type:                                   CL_DEVICE_TYPE_GPU
Device Type:                                   CL_DEVICE_TYPE_CPU

If this does not work, then something is wrong again with opencl...

c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 05, 2012, 07:05:34 PM
 #7

Now it starts, but I receive: "Error getting OpenCL platforms"

Hmm, I've never used reaper to mine litecoins, have you told it which device id to use (it seems there must be a config file)
So we are at step one now again, is opencl working  Grin

Try to run clinfo and see if it lists your gpus:
Code:
clinfo | grep "Device Type"

should show something like this ( I only have one gpu, so it lists my GPU and CPU ):
Quote
Device Type:                                   CL_DEVICE_TYPE_GPU
Device Type:                                   CL_DEVICE_TYPE_CPU

If this does not work, then something is wrong again with opencl...

My reaper config is set to use device 0.

The clinfo command didn't work, "command not found". I apparently installed the sdk incorrectly even though I followed the instructions provided in the AMD-APP readme...

*sigh* I love linux, but sometimes it can be such a pain in the ass, lol...
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 05, 2012, 08:43:37 PM
 #8

Hm, on my system catalyst installs a clinfo into /usr/bin so it works just like that here.
Ok then we have to try harder lol  Cheesy, the amd app sdk should also contain a clinfo binary.

In my case it is: /opt/amd-app-sdk/bin/x86_64/clinfo
Then try to run this one, the location depends where you installed the sdk.
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 06, 2012, 05:13:33 AM
 #9

Hm, on my system catalyst installs a clinfo into /usr/bin so it works just like that here.
Ok then we have to try harder lol  Cheesy, the amd app sdk should also contain a clinfo binary.

In my case it is: /opt/amd-app-sdk/bin/x86_64/clinfo
Then try to run this one, the location depends where you installed the sdk.


Ok, my file is in /opt/amd-app-sdk-v2.7-RC-lnx32/bin/x86/clinfo and when I run clinfo from inside the directory I get "./clinfo: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 06, 2012, 08:13:21 PM
 #10

Hello,

Ok, my file is in /opt/amd-app-sdk-v2.7-RC-lnx32/bin/x86/clinfo and when I run clinfo from inside the directory I get "./clinfo: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"

see if libstdc++ is installed:
Code:
sudo apt-get install libstdc++6

If it says already newest version, then it could be that you have downloaded the wrong sdk (32bit vs 64bit)

You can check what your system is with:
Code:
uname -m

If it says x86_64 then you need to download the 64bit sdk.  Wink


c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 08, 2012, 10:16:30 AM
 #11

Hello,

Ok, my file is in /opt/amd-app-sdk-v2.7-RC-lnx32/bin/x86/clinfo and when I run clinfo from inside the directory I get "./clinfo: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"

see if libstdc++ is installed:
Code:
sudo apt-get install libstdc++6

If it says already newest version, then it could be that you have downloaded the wrong sdk (32bit vs 64bit)

You can check what your system is with:
Code:
uname -m

If it says x86_64 then you need to download the 64bit sdk.  Wink




Ok, so it turns out I was using the 32-bit sdk with 64-bit ubuntu, lol...

I've startd back from the beginning with all 64-bit stuff now while trying to compile reaper when I do the CMAKE portion I get this for a response:

Code:
c4n10@ubuntu:~/Miners/reaperv13beta4_src/build$ cmake -D CMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Warning (dev) at CMakeLists.txt:100 (link_directories):
  This command specifies the relative path

    CURL_LIBRARY-NOTFOUND

  as a link directory.

  Policy CMP0015 is not set: link_directories() treats paths relative to the
  source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CURL_INCLUDE_DIR
   used as include directory in directory /home/c4n10/Miners/reaperv13beta4_src
CURL_LIBRARY
    linked by target "reaper" in directory /home/c4n10/Miners/reaperv13beta4_src

-- Configuring incomplete, errors occurred!
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 09, 2012, 02:01:42 AM
 #12

Ok, so it turns out I was using the 32-bit sdk with 64-bit ubuntu, lol...

I've startd back from the beginning with all 64-bit stuff now while trying to compile reaper when I do the CMAKE portion I get this for a response:

That is weird, didn't it compile ok earlier? Looks almost like the error you got at the beginning. Does clinfo work now?
Maybe try this again:

Code:
sudo apt-get install make automake build-essential libcurl4-openssl-dev

maybe also

Code:
sudo apt-get install g++
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 09, 2012, 05:26:58 PM
 #13

Ok, so it turns out I was using the 32-bit sdk with 64-bit ubuntu, lol...

I've startd back from the beginning with all 64-bit stuff now while trying to compile reaper when I do the CMAKE portion I get this for a response:

That is weird, didn't it compile ok earlier? Looks almost like the error you got at the beginning. Does clinfo work now?
Maybe try this again:

Code:
sudo apt-get install make automake build-essential libcurl4-openssl-dev

maybe also

Code:
sudo apt-get install g++


Alright, my clinfo works now and outputs:

Code:
Number of platforms:				 1
  Platform Profile: FULL_PROFILE
  Platform Version: OpenCL 1.2 AMD-APP (923.1)
  Platform Name: AMD Accelerated Parallel Processing
  Platform Vendor: Advanced Micro Devices, Inc.
  Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name: AMD Accelerated Parallel Processing
Number of devices: 2
  Device Type: CL_DEVICE_TYPE_GPU
  Device ID: 4098
  Board name: ATI Radeon HD 5800 Series
  Device Topology: PCI[ B#2, D#0, F#0 ]
  Max compute units: 20
  Max work items dimensions: 3
    Max work items[0]: 256
    Max work items[1]: 256
    Max work items[2]: 256
  Max work group size: 256
  Preferred vector width char: 16
  Preferred vector width short: 8
  Preferred vector width int: 4
  Preferred vector width long: 2
  Preferred vector width float: 4
  Preferred vector width double: 2
  Native vector width char: 16
  Native vector width short: 8
  Native vector width int: 4
  Native vector width long: 2
  Native vector width float: 4
  Native vector width double: 2
  Max clock frequency: 950Mhz
  Address bits: 32
  Max memory allocation: 134217728
  Image support: Yes
  Max number of images read arguments: 128
  Max number of images write arguments: 8
  Max image 2D width: 8192
  Max image 2D height: 8192
  Max image 3D width: 2048
  Max image 3D height: 2048
  Max image 3D depth: 2048
  Max samplers within kernel: 16
  Max size of kernel argument: 1024
  Alignment (bits) of base address: 2048
  Minimum alignment (bytes) for any datatype: 128
  Single precision floating point capability
    Denorms: No
    Quiet NaNs: Yes
    Round to nearest even: Yes
    Round to zero: Yes
    Round to +ve and infinity: Yes
    IEEE754-2008 fused multiply-add: Yes
  Cache type: None
  Cache line size: 0
  Cache size: 0
  Global memory size: 536870912
  Constant buffer size: 65536
  Max number of constant args: 8
  Local memory type: Scratchpad
  Local memory size: 32768
  Kernel Preferred work group size multiple: 64
  Error correction support: 0
  Unified memory for Host and Device: 0
  Profiling timer resolution: 1
  Device endianess: Little
  Available: Yes
  Compiler available: Yes
  Execution capabilities:
    Execute OpenCL kernels: Yes
    Execute native function: No
  Queue properties:
    Out-of-Order: No
    Profiling : Yes
  Platform ID: 0x7fb046d34140
  Name: Cypress
  Vendor: Advanced Micro Devices, Inc.
  Device OpenCL C version: OpenCL C 1.2
  Driver version: CAL 1.4.1720
  Profile: FULL_PROFILE
  Version: OpenCL 1.2 AMD-APP (923.1)
  Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_popcnt


  Device Type: CL_DEVICE_TYPE_CPU
  Device ID: 4098
  Board name:
  Max compute units: 2
  Max work items dimensions: 3
    Max work items[0]: 1024
    Max work items[1]: 1024
    Max work items[2]: 1024
  Max work group size: 1024
  Preferred vector width char: 16
  Preferred vector width short: 8
  Preferred vector width int: 4
  Preferred vector width long: 2
  Preferred vector width float: 4
  Preferred vector width double: 0
  Native vector width char: 16
  Native vector width short: 8
  Native vector width int: 4
  Native vector width long: 2
  Native vector width float: 4
  Native vector width double: 0
  Max clock frequency: 2400Mhz
  Address bits: 64
  Max memory allocation: 2099740672
  Image support: Yes
  Max number of images read arguments: 128
  Max number of images write arguments: 8
  Max image 2D width: 8192
  Max image 2D height: 8192
  Max image 3D width: 2048
  Max image 3D height: 2048
  Max image 3D depth: 2048
  Max samplers within kernel: 16
  Max size of kernel argument: 4096
  Alignment (bits) of base address: 1024
  Minimum alignment (bytes) for any datatype: 128
  Single precision floating point capability
    Denorms: Yes
    Quiet NaNs: Yes
    Round to nearest even: Yes
    Round to zero: Yes
    Round to +ve and infinity: Yes
    IEEE754-2008 fused multiply-add: Yes
  Cache type: Read/Write
  Cache line size: 64
  Cache size: 65536
  Global memory size: 2099740672
  Constant buffer size: 65536
  Max number of constant args: 8
  Local memory type: Global
  Local memory size: 32768
  Kernel Preferred work group size multiple: 1
  Error correction support: 0
  Unified memory for Host and Device: 1
  Profiling timer resolution: 1
  Device endianess: Little
  Available: Yes
  Compiler available: Yes
  Execution capabilities:
    Execute OpenCL kernels: Yes
    Execute native function: Yes
  Queue properties:
    Out-of-Order: No
    Profiling : Yes
  Platform ID: 0x7fb046d34140
  Name: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
  Vendor: AuthenticAMD
  Device OpenCL C version: OpenCL C 1.2
  Driver version: 2.0 (sse2)
  Profile: FULL_PROFILE
  Version: OpenCL 1.2 AMD-APP (923.1)
  Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_popcnt

I'm going to try those two install lines now...

Ok, the second install package was part of the first install package, both are now installed and reaper is working!!!

Awesome! Thank you VERY much, I will send you some LTC once I mine some up!!!
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
October 10, 2012, 02:52:05 AM
 #14

Ok, the second install package was part of the first install package, both are now installed and reaper is working!!!

Awesome! Thank you VERY much, I will send you some LTC once I mine some up!!!

Good to see that it works now! Have fun mining Grin
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 14, 2012, 02:56:44 AM
 #15

Ok, I had a problem with my Ubuntu installation and had to re-install and now I am having issues again. I tried repeating what i did before but somehow I am stuck with this CMAKE error when trying to re-compile reaper:

Code:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENCL_INCLUDE_DIR (ADVANCED)

I have no idea what I'm doing wrong, any suggestions?
BitcoinOxygen
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile WWW
October 20, 2012, 04:52:47 PM
 #16

why don't you just use windows?

BTCOxygen PPS Mining Pool 2% Fee  <<<  Join Now
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 20, 2012, 06:09:42 PM
 #17

why don't you just use windows?

That's what I ended up doing, I upgraded to Win 7
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!