Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mitman

Pages: [1]
1

well that worked but now i'm getting a different error.

yasm -f elf64 -o obj/sha512_avx.o intel/sha512_avx.asm
make: yasm: No such file or directory
make: *** [obj/sha512_avx.o] Error 1

I think it means that I have to install Yasm but I'm not exactly sure how to do that so if you could point me in the right direction or give me some tips on doing that it would be appreciated. thanks.
'sudo port install yasm' should do the trick

Well after doing all that I'm getting this really confusing error message that I have no idea what it means.

Code: [Select]
yasm -f elf64 -o obj/sha512_avx.o intel/sha512_avx.asm
yasm -f elf64 -o obj/sha512_sse4.o intel/sha512_sse4.asm
llvm-g++ -c -O2  -fpermissive -o obj/sha512.o sha512.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: argument unused during compilation: '-fpermissive'
llvm-g++ -c -O1  -fpermissive -o obj/sph_sha2.o sph_sha2.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: argument unused during compilation: '-fpermissive'
sph_sha2.c:33:32: warning: pragma diagnostic expected option name
      (e.g. "-Wundef") [-Wunknown-pragmas]
#pragma GCC diagnostic ignored "-fpermissive"
                               ^
sph_sha2.c:628:5: error: assigning to 'sph_sha224_context *' from incompatible
      type 'void *'
        sc = cc;
           ^ ~~
sph_sha2.c:643:5: error: assigning to 'sph_sha256_context *' (aka
      'sph_sha224_context *') from incompatible type 'void *'
        sc = cc;
           ^ ~~
In file included from sph_sha2.c:655:
./sph_md_helper.c:79:32: warning: pragma diagnostic expected option name
      (e.g. "-Wundef") [-Wunknown-pragmas]
#pragma GCC diagnostic ignored "-fpermissive"
                               ^
./sph_md_helper.c:136:5: error: assigning to 'sph_sha224_context *' from
      incompatible type 'void *'
        sc = cc;
           ^ ~~
./sph_md_helper.c:186:5: error: assigning to 'sph_sha224_context *' from
      incompatible type 'void *'
        sc = cc;
           ^ ~~
./sph_md_helper.c:208:3: error: no matching function for call to 'sha2_round'
                RFUN(data, SPH_VAL);
                ^~~~
sph_sha2.c:652:16: note: expanded from macro 'RFUN'
#define RFUN   sha2_round
               ^~~~~~~~~~
sph_sha2.c:615:1: note: candidate function not viable: cannot convert argument
      of incomplete type 'const void *' to 'const unsigned char *'
sha2_round(const unsigned char *data, sph_u32 r[8])
^
In file included from sph_sha2.c:655:
./sph_md_helper.c:250:5: error: assigning to 'sph_sha224_context *' from
      incompatible type 'void *'
        sc = cc;
           ^ ~~
2 warnings and 6 errors generated.
make: *** [obj/sph_sha2.o] Error 1

2
if anyone else is having issues building for osx, here is what I had to do to get it to build.

1)   cd /tmp
2)   xcode-select –install
3)   sudo xcodebuild -license
4)   curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.2.1.tar.bz2
5)   tar xf MacPorts-2.2.1.tar.bz2
6)   cd MacPorts-2.2.1/
7)   ./configure
8)   make
9)   sudo make install
10)   sudo port selfupdate
11)   sudo port install boost db48@+no_java openssl miniupnpc   (this takes awhile, almost an hour)
12)   git clone https://github.com/thbaumbach/ptsminer
13)   cd ptsminer/src
14)   make –f makefile.osx

Edit: one of my co-workers needed to download the command line tool for Xcode. So if step 2 doesn't work, that maybe why.

I got all the way to step 14 but then when I run that command I get the error "make: *** No rule to make target `–f'.  Stop." I have no idea what the problem is and I have Googled everywhere but I cannot find the answer. Can someone please help me? I'm willing to pay in protoshares when I can get this to work. Thanks!
You have a long dash in '-f'. Type the minus on your keyboard instead of it.

well that worked but now i'm getting a different error.

yasm -f elf64 -o obj/sha512_avx.o intel/sha512_avx.asm
make: yasm: No such file or directory
make: *** [obj/sha512_avx.o] Error 1

I think it means that I have to install Yasm but I'm not exactly sure how to do that so if you could point me in the right direction or give me some tips on doing that it would be appreciated. thanks.

3
if anyone else is having issues building for osx, here is what I had to do to get it to build.

1)   cd /tmp
2)   xcode-select –install
3)   sudo xcodebuild -license
4)   curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.2.1.tar.bz2
5)   tar xf MacPorts-2.2.1.tar.bz2
6)   cd MacPorts-2.2.1/
7)   ./configure
8)   make
9)   sudo make install
10)   sudo port selfupdate
11)   sudo port install boost db48@+no_java openssl miniupnpc   (this takes awhile, almost an hour)
12)   git clone https://github.com/thbaumbach/ptsminer
13)   cd ptsminer/src
14)   make –f makefile.osx

Edit: one of my co-workers needed to download the command line tool for Xcode. So if step 2 doesn't work, that maybe why.

I got all the way to step 14 but then when I run that command I get the error "make: *** No rule to make target `–f'.  Stop." I have no idea what the problem is and I have Googled everywhere but I cannot find the answer. Can someone please help me? I'm willing to pay in protoshares when I can get this to work. Thanks!

Pages: [1]