@widecash
It was a simple fix for the last make command in the script
Add
cd ../.. before the last make command:
cd ../..
make -f Makefile.Release ...
it showed error as below:
c/qt/transactiontablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
#include "transactiontablemodel.h"
^
src/qt/bitcoingui.cpp:1:0: error: bad value (x86_64) for -march= switch
/*
^
src/txdb-leveldb.cpp:1:0: error: bad value (x86_64) for -march= switch
// Copyright (c) 2009-2010 Satoshi Nakamoto
^
src/qt/bitcoin.cpp:1:0: error: bad value (x86_64) for -march= switch
/*
^
src/qt/addresstablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
#include "addresstablemodel.h"
^
src/qt/optionsdialog.cpp:1:0: error: bad value (x86_64) for -march= switch
#include "optionsdialog.h"
^
Makefile.Release:15242: recipe for target 'build/transactiontablemodel.o' failed
make: *** [build/transactiontablemodel.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile.Release:13697: recipe for target 'build/bitcoingui.o' failed
make: *** [build/bitcoingui.o] Error 1
Makefile.Release:12071: recipe for target 'build/bitcoin.o' failed
make: *** [build/bitcoin.o] Error 1
Makefile.Release:10508: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1
Makefile.Release:16774: recipe for target 'build/addresstablemodel.o' failed
make: *** [build/addresstablemodel.o] Error 1
Makefile.Release:17735: recipe for target 'build/optionsdialog.o' failed
make: *** [build/optionsdialog.o] Error 1
Secondly, you should be adjusting the script accordingly to your environment, not making it x86_64 just cause mine is. You originally showed that you're using i686 platform, so you must keep it consistent throughout.