Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ironsniper on June 30, 2016, 01:56:32 AM



Title: The filename, directory name, or volume label syntax is incorrect.
Post by: ironsniper on June 30, 2016, 01:56:32 AM
i am trying to compile a windows wallet for someone and am getting the following error

Code:
cd C:/coin-master; /bin/sh share/genbuild.sh C:/coin-master/build/build.h
The filename, directory name, or volume label syntax is incorrect.
Makefile.Release:298: recipe for target 'genbuildhook' failed
mingw32-make[1]: *** [genbuildhook] Error 1
mingw32-make[1]: Leaving directory 'C:/coin-master'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
20:54:44: The process "C:\mingw32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project coin (kit: Qt 4.8.6 (4.8.6))
When executing step "Make"

has anyone ever seen this error before and know how to fix it?


Title: Re: The filename, directory name, or volume label syntax is incorrect.
Post by: cr1776 on June 30, 2016, 10:08:16 AM
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?


Title: Re: The filename, directory name, or volume label syntax is incorrect.
Post by: ironsniper on June 30, 2016, 01:00:09 PM
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
yeah sorry was in a hurry, windows 7 32bit mingw 4.9 and this wallet compiled perfectly under linux and OS X so this error is windows only it seems


Title: Re: The filename, directory name, or volume label syntax is incorrect.
Post by: mocacinno on June 30, 2016, 01:03:10 PM
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
yeah sorry was in a hurry, windows 7 32bit mingw 4.9 and this wallet compiled perfectly under linux and OS X so this error is windows only it seems

It's not the answer to your question (directly), but i usually use gitian if i feel the need to build the bitcoin binaries for windows:
https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md

Seems odd and contra-intuitive to build windows binaries on linux, but i find it a lot easyer to do this than to build on windows directly...


Title: Re: The filename, directory name, or volume label syntax is incorrect.
Post by: ironsniper on June 30, 2016, 01:09:00 PM
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
yeah sorry was in a hurry, windows 7 32bit mingw 4.9 and this wallet compiled perfectly under linux and OS X so this error is windows only it seems

It's not the answer to your question (directly), but i usually use gitian if i feel the need to build the bitcoin binaries for windows:
https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md

Seems odd and contra-intuitive to build windows binaries on linux, but i find it a lot easyer to do this than to build on windows directly...
im being perfectly honest, when i first got into compiling wallets i never could get a windows wallet to compile on windows and when i would use gitian it would compile the wallet for linux only, took me a couple of weeks but i got windows compiling figured out


Title: Re: The filename, directory name, or volume label syntax is incorrect.
Post by: ironsniper on July 02, 2016, 11:05:37 PM
i guess everyone is at a loss aswell


Title: Re: The filename, directory name, or volume label syntax is incorrect.
Post by: ironsniper on January 22, 2017, 06:22:23 AM
hey everyone got another wallet with the same issue above however i found this https://github.com/Peershares/Peershares/issues/105 in that someone said about the same error
Quote
The above error was due to sh.exe and the associated dll's missing from C:\MinGW\bin

i checked mine and i do have sh.exe in there and i am guess dll files for it aswell but i am still getting that error, any have any advice?

EDIT i found the problem, i compared the code in the .pro file with a different .pro and found this to be the problem

if you get the same error look for the following in your .pro file and if it looks like this
Code:
# regenerate src/build.h
!win32 || contains(USE_BUILD_INFO, 1) {
    genbuild.depends = FORCE
    genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
    genbuild.target = genbuildhook
    PRE_TARGETDEPS += genbuildhook
    QMAKE_EXTRA_TARGETS += genbuild
    DEFINES += HAVE_BUILD_INFO
}

replace it with this

Code:
# regenerate src/build.h
!windows|contains(USE_BUILD_INFO, 1) {
    genbuild.depends = FORCE
    genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
    genbuild.target = $$OUT_PWD/build/build.h
    PRE_TARGETDEPS += $$OUT_PWD/build/build.h
    QMAKE_EXTRA_TARGETS += genbuild
    DEFINES += HAVE_BUILD_INFO
}

and that will fix the error