KlausT / ccminer-cryptonight

Software for mining various cryptocoins, like Monero (pool mining only)
GNU General Public License v3.0
133 stars 30 forks source link

nvcc fatal : 'arch=x86-64': expected a number #20

Open MyerSmith opened 7 years ago

MyerSmith commented 7 years ago

PKGBUILD

pkgname=ccminer
pkgver=2.00 
pkgrel=1
pkgdesc="Coin miner using CUDA for nVidia GPUs."
arch=('x86_64')
url="http://ccminer.org/"
license=('GPL3')
depends=('cuda' 'curl' 'jansson')
options=('!emptydirs')
source=("https://github.com/KlausT/ccminer-cryptonight//archive/${pkgver}.tar.gz")
md5sums=('SKIP')

build() {
        cd "${srcdir}/ccminer-cryptonight-${pkgver}"

        ./autogen.sh
        ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-cuda=/opt/cuda
        make
}

package() {
        cd "${srcdir}/ccminer-cryptonight-${pkgver}"

        make DESTDIR="${pkgdir}/" install
        install -Dm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
make  all-recursive
make[1]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00“ wird betreten
Making all in compat
make[2]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00/compat“ wird betreten
make[3]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00/compat“ wird betreten
make[3]: Für das Ziel „all-am“ ist nichts zu tun.
make[3]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00/compat“ wird verlassen
make[2]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00/compat“ wird verlassen
make[2]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00“ wird betreten
gcc -DHAVE_CONFIG_H -I.  -I/opt/cuda/include -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -MT ccminer-cpu-miner.o -MD -MP -MF .deps/ccminer-cpu-miner.Tpo -c -o ccminer-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
mv -f .deps/ccminer-cpu-miner.Tpo .deps/ccminer-cpu-miner.Po
gcc -DHAVE_CONFIG_H -I.  -I/opt/cuda/include -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po
gcc -DHAVE_CONFIG_H -I.  -I/opt/cuda/include -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -MT ccminer-sha2.o -MD -MP -MF .deps/ccminer-sha2.Tpo -c -o ccminer-sha2.o `test -f 'sha2.c' || echo './'`sha2.c
mv -f .deps/ccminer-sha2.Tpo .deps/ccminer-sha2.Po
/opt/cuda/bin/nvcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -I . -D_FORCE_INLINES -I/opt/cuda/include -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_50,code=\"sm_50,compute_50\"  -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_53,code=\"sm_53,compute_53\" --maxrregcount=128 --ptxas-options=-v  -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
nvcc fatal   : 'arch=x86-64': expected a number
make[2]: *** [Makefile:1151: cryptonight/cryptonight.o] Fehler 1
make[2]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00“ wird verlassen
make[1]: *** [Makefile:725: all-recursive] Fehler 1
make[1]: Verzeichnis „/home/x/ddd/src/ccminer-cryptonight-2.00“ wird verlassen
make: *** [Makefile:395: all] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
deshi-basara commented 7 years ago

Have you tried using https://github.com/KlausT/ccminer-cryptonight/archive/master.zip as source? Your build-command runs without any errors at my Archlinux.

MyerSmith commented 7 years ago

can conform that the same commands on the cli work but not in the pkg - strange - maybe some environment settings are missing in the build script

pkgname=ccminer-cryptonight
pkgver=2.00
pkgrel=1
pkgdesc="Coin miner using CUDA for nVidia GPUs."
arch=('x86_64')
url="http://ccminer.org/"
license=('GPL3')
depends=('cuda' 'curl' 'jansson')
makedepends=('git' 'cuda')
provides=('ccminer')
conflicts=('ccminer')
options=('!emptydirs')
changelog=
source=("https://github.com/KlausT/ccminer-cryptonight/archive/master.zip")
sha256sums=('f489b2aea76bb88d7728b7d0725efd0f60709fed647d2d1e1cdd44b4d8426026')

prepare() {
    cd "${srcdir}/ccminer-cryptonight-master"
    ./autogen.sh
    ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-cuda=/opt/cuda

}

build() {
    cd "${srcdir}/ccminer-cryptonight-master"
    make
}

package() {
    # cd "${srcdir}/ccminer-cryptonight-master"
    make DESTDIR="${pkgdir}/" install
}