gcc: error: unrecognized command line option ‘-mrecord-mcount’ - virtualbox

CentOS 7, kernel 5.12.8-1.el7.elrepo.x86_64, VirtualBox 6.1
I want to execute this command:
sudo /sbin/vboxconfig
but I get error:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Here content of file vbox-setup.log
Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.12.8-1.el7.elrepo.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j12 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make -C /usr/src/kernels/5.12.8-1.el7.elrepo.x86_64 -f /usr/src/kernels/5.12.8-1.el7.elrepo.x86_64/Makefile modules
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 \
single-build= \
need-builtin=1 need-modorder=1
gcc -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-stack-check -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"SUPDrv_linux"' -DKBUILD_MODNAME='"vboxdrv"' -D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
gcc: error: unrecognized command line option ‘-mrecord-mcount’
gcc -Wp,-MMD,/tmp/vbox.0/.SUPDrv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-stack-check -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"SUPDrv"' -DKBUILD_MODNAME='"vboxdrv"' -D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/SUPDrv.o /tmp/vbox.0/SUPDrv.c
make[3]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command line option ‘-mrecord-mcount’
make[3]: *** [/tmp/vbox.0/SUPDrv.o] Error 1
make[2]: *** [/tmp/vbox.0] Error 2
make[1]: *** [__sub-make] Error 2
make: *** [vboxdrv] Error 2

CentOS 7 is shipped with gcc 4.8.5 and newer ELrepo kernels need newer gcc to compile modules. So you need to install devtoolset.
# yum -y install centos-release-scl
# yum -y install devtoolset-9
After this, patch the /usr/share/virtualbox/src/vboxhost/build_in_tmp by adding the devtoolset-9 env to the top of the file, either by copying contents of /opt/rh/devtoolset-9/enable or adding manually the following:
export INFOPATH=/opt/rh/devtoolset-9/root/usr/share/info
export LD_LIBRARY_PATH=/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib:/opt/rh/devtoolset-9/root/usr/lib64/dyninst:/opt/rh/devtoolset-9/root/usr/lib/dyninst:/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib
export PATH=/opt/rh/devtoolset-9/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin
export PCP_DIR=/opt/rh/devtoolset-9/root
export PKG_CONFIG_PATH=/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig
export SHLVL=4
export X_SCLS=devtoolset-9
After this, run:
# /sbin/vboxconfig
# systemctl enable --now vboxdrv
And you're done!

Related

x86_64-conda_cos6-linux-gnu-cc: error trying to exec 'cc1plus': execvp: No such file or directory

I am trying to install a python library but I am getting an error
building '_pyFlask' extension
/home/lisa/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/lisagoh/anaconda3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/lisa/anaconda3/include -fPIC -DFLASKCOMMIT="33a2752" -DHEALPIX_DATA="/mnt/c/Users/lisa_/OneDrive/Documents/Healpix_3.70/data" -DUSEXCOMPLEX=0 -DUSEMAP2TGA=0 -I/home/lisa/anaconda3/include/python3.8 -I/mnt/c/Users/lisa_/OneDrive/Documents/Healpix_3.70/include/healpix_cxx -c src/pyFlask_wrap.cxx -o build/temp.linux-x86_64-3.8/src/pyFlask_wrap.o -fopenmp
x86_64-conda_cos6-linux-gnu-cc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command '/home/lisa/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit status 1
I've tried sudo apt-get g++, sudo apt-get upgrade,sudo apt-get update and they tell me I have the latest versions but it still doesn't work.
When I try g++ --print-prog-name=cc1plus I get /usr/lib/gcc/x86_64-linux-gnu/9/cc1plus but when I try to find the cc1plus file it does not exist. I'm using the Ubunto 20.04 on a Windows OS.
I'm new to Linux and any help will be greatly appreciated thank you!

Error while compiling JUMPCoin Wallet on Raspberry Pi (leveldb/libmemenv.a: error adding symbols:)

I am trying to compile a wallet for my JUMP coins (https://github.com/Jumperbillijumper/jumpcoin).
I cloned the repo,
cd to src/
and ran $ make -f makefile.unix
and now I am getting this error:
/home/pi/jumpcoin/jumpcoin/src/leveldb/libmemenv.a: error addingsymbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
makefile.unix:206: recipe for target 'jumpcoind' failed
make: *** [jumpcoind] Error 1
Log:
pi#Raspberry_Pi:~/jumpcoin/jumpcoin/src $ make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/jumpcoin/jumpcoin/src -I/home/pi/jumpcoin/jumpcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/jumpcoin/jumpcoin/src/leveldb/include -I/home/pi/jumpcoin/jumpcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/txdb-leveldb.d -o obj/txdb-leveldb.o txdb-leveldb.cpp
g++ -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/jumpcoin/jumpcoin/src -I/home/pi/jumpcoin/jumpcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/jumpcoin/jumpcoin/src/leveldb/include -I/home/pi/jumpcoin/jumpcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -o jumpcoind obj/groestl.o obj/blake.o obj/skein.o obj/keccak.o obj/jh.o obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/miner.o obj/main.o obj/net.o obj/protocol.o obj/jumpcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kernel.o obj/pbkdf2.o obj/scrypt.o obj/scrypt-arm.o obj/scrypt-x86.o obj/scrypt-x86_64.o obj/zerocoin/Accumulator.o obj/zerocoin/AccumulatorProofOfKnowledge.o obj/zerocoin/Coin.o obj/zerocoin/CoinSpend.o obj/zerocoin/Commitment.o obj/zerocoin/ParamGeneration.o obj/zerocoin/Params.o obj/zerocoin/SerialNumberSignatureOfKnowledge.o obj/zerocoin/SpendMetaData.o obj/zerocoin/ZeroTest.o obj/txdb-leveldb.o -Wl,-z,relro -Wl,-z,now -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l miniupnpc -Wl,-Bdynamic -l z -l dl -l pthread /home/pi/jumpcoin/jumpcoin/src/leveldb/libleveldb.a /home/pi/jumpcoin/jumpcoin/src/leveldb/libmemenv.a
/home/pi/jumpcoin/jumpcoin/src/leveldb/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
makefile.unix:206: recipe for target 'jumpcoind' failed
make: *** [jumpcoind] Error 1
ok the problem was in the src/leveldb directory (obviously)
I took the src/leveldb directory from this repo (https://github.com/sagacrypto/SagaCoin) and replaced the current one. Then everything works fine. (at least for me :P)
yeah I know it is not best practice but this one was driving me nuts :D

cocos2dx 3.11.1 android studio in windows

hi i want to use cocos2dx android studio in windows.
i downloaded android-ndk-r12, android studio and apache-ant-1.9.7. cocos2dx 3.11.1
now i am successfully create a project by using command cocos.py new MyGame -p com.MyCompany.MyGame -l cpp -d I:\Work\cocos2dx.
But where i am using cocos.py compile -p android --android-studio to compile i am getting this error
[armeabi] "Compile++ thumb": "MyGame_shared <= AppDelegate.cpp"
process_begin: CreateProcess(NULL, I:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/ma
in.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -O0 -UNDEBUG -Ijni/../../../Classes -II:/Software/ProgramingSoftware/cocos2dx/android
-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/c
xx-stl/gnu-libstdc++/4.9/include/backward -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocostudio/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocosbuilder/.. -II:/Work/cocos2dx/MyGame/proj.an
droid-studio/../cocos2d/cocos/3d/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/spine/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/network -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audi
o/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/ui/../editor-support -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/fl
atbuffers/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCControlExtension -II:/Work/cocos2
dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCScrollView -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/coc
os/./.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/unzip -II:/Wo
rk/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/chipmunk/include/chipmunk -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/xxhash -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/nslo
g -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri/common -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/pol
y2tri/sweep -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/clipper -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/websockets/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/..
/cocos2d/external/Box2D/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/bullet/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-stud
io/../cocos2d/external/freetype2/prebuilt/android/../../include/android/freetype2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/png/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/jpeg
/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/tiff/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/webp/prebuilt/android/../../include/android -
II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/chipmunk/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/zlib/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos
2d/external/recast/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/platform/android -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/android/cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa,--noexecstack -Wformat -Wer
ror=format-security -Wno-deprecated-declarations -Wno-extern-c-compat -D__STDC_LIMIT_MACROS=1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1 -isystem I:/Software/ProgramingSoftware/cocos2dx
/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni/hellocpp/main.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: * [obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/main.o] Error 2
make: * Waiting for unfinished jobs....
process_begin: CreateProcess(NULL, I:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared////Cl
asses/AppDelegate.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -O0 -UNDEBUG -Ijni/../../../Classes -II:/Software/ProgramingSoftware/c
ocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/buil
d//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocostudio/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocosbuilder/.. -II:/Work/cocos2dx
/MyGame/proj.android-studio/../cocos2d/cocos/3d/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/spine/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/network -II:/Work/cocos2dx/MyGame/proj.android-studio/../coc
os2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/ui/../editor-support -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../coco
s2d/external/flatbuffers/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCControlExtension -
II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCScrollView -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./. -II:/Work/cocos2dx/MyGame/proj.android-studio
/../cocos2d/cocos/./.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../externa
l/unzip -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/chipmunk/include/chipmunk -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/xxhash -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./.
./external/nslog -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri/common -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./
../external/poly2tri/sweep -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/clipper -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/websockets/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.an
droid-studio/../cocos2d/external/Box2D/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/bullet/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/pr
oj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android/freetype2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/png/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2
d/external/jpeg/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/tiff/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/webp/prebuilt/android/../../in
clude/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/chipmunk/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/zlib/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-
studio/../cocos2d/external/recast/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/platform/android -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/android/cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa,--noexecstac
k -Wformat -Werror=format-security -Wno-deprecated-declarations -Wno-extern-c-compat -D__STDC_LIMIT_MACROS=1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1 -isystem I:/Software/ProgramingSo
ftware/cocos2dx/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni/../../../Classes/AppDelegate.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared////Classes/AppDelegate.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/local/armeabi/objs-debug/MyGame_shared///__/Classes/AppDelegate.o] Error 2
make: Leaving directory `I:/Work/cocos2dx/MyGame/proj.android-studio/app'
Error running command, return code: 2.
That command made everything works for me :
cocos compile -p android --android-studio --app-abi armeabi
But it only gonna compile it for the abi armeabi architecture.

Building TensorFlow: libpython2.7.so.1.0: cannot open shared object file

When building the GPU enabled version of TensorFlow from source using the command
bazel build -c opt --verbose_failures --config=cuda //tensorflow/cc:tutorials_example_trainer
I am getting the error:
INFO: From Compiling external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc:
python2: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory`
The .so file is in a directory pointed to in my LD_LIBRARY_PATH:
echo $LD_LIBRARY_PATH
/opt/rh/python27/root/usr/lib64:/share/sw/free/cuDNN/cudnn-6.5-linux-x64-v2:/share/sw/free/cuDNN/cudnn-6.5-linux-x64-v2:/share/sw/free/cuda/7.0/lib64`
To provide a little more info, here's the entire error message that I get:
bazel build -c opt --verbose_failures --config=cuda //tensorflow/cc:tutorials_example_trainer
WARNING: Output base '/home/jderose/.cache/bazel/_bazel_jderose/a0466e9ddb344902e2cf080e42365397' is on NFS. This may lead to surprising failures and undetermined behavior.
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
INFO: Found 1 target...
INFO: From Compiling external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc:
python2: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
ERROR: /home/jderose/.cache/bazel/_bazel_jderose/a0466e9ddb344902e2cf080e42365397/external/gemmlowp/BUILD:77:1: C++ compilation of rule '#gemmlowp//:eight_bit_int_gemm' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home/jderose/.cache/bazel/_bazel_jderose/a0466e9ddb344902e2cf080e42365397/tensorflow && \
exec env - \
INTERCEPT_LOCALLY_EXECUTABLE=1 \
PATH=/share/sw/free/cuda/7.0/bin:/share/sw/free/bazel/0.1.1/bin:/home/jderose/.local/bin:/home/jderose/bin:/home/jderose/projects:/opt/rh/python27/root/usr/bin:/share/sw/srcc/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ganglia/bin:/opt/ganglia/sbin:/usr/java/latest/bin:/opt/pdsh/bin:/opt/rocks/bin:/opt/rocks/sbin:/opt/dell/srvadmin/bin \
TMPDIR=/local-scratch/jderose/39523 \
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o' -MD -MF bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.d -c external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc -o bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home/jderose/.cache/bazel/_bazel_jderose/a0466e9ddb344902e2cf080e42365397/tensorflow && \
exec env - \
INTERCEPT_LOCALLY_EXECUTABLE=1 \
PATH=/share/sw/free/cuda/7.0/bin:/share/sw/free/bazel/0.1.1/bin:/home/jderose/.local/bin:/home/jderose/bin:/home/jderose/projects:/opt/rh/python27/root/usr/bin:/share/sw/srcc/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ganglia/bin:/opt/ganglia/sbin:/usr/java/latest/bin:/opt/pdsh/bin:/opt/rocks/bin:/opt/rocks/sbin:/opt/dell/srvadmin/bin \
TMPDIR=/local-scratch/jderose/39523 \
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o' -MD -MF bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.d -c external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc -o bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
Target //tensorflow/cc:tutorials_example_trainer failed to build
Thanks!
Would you be able to build the non-Cuda version of the TensorFlow? It would tell us whether it is your python environment that is somehow broken for TensorFlow.

Cant make mod_wsgi-3.3 in trying to use it with xampp and django

raz#T43:~/Downloads/mod_wsgi-3.3$ sudo ./configure --with-apxs=/opt/lampp/bin/apxs --with-python=/usr/bin/python2.6
checking Apache version... 2.2.14
configure: creating ./config.status
config.status: creating Makefile
raz#T43:~/Downloads/mod_wsgi-3.3$ sudo make
/opt/lampp/bin/apxs -c -I/usr/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/lib -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm
/opt/lampp/build/libtool --silent --mode=compile gcc -prefer-pic -O3 -Wl,--rpath -Wl,/opt/lampp/lib -Wl,--rpath -Wl,/opt/lampp/lib/mysql -I/opt/lampp/include -L/opt/lampp/lib -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/opt/lampp/include -I/opt/lampp/include -I/opt/lampp/include -I/opt/lampp/include -I/usr/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:135: fatal error: Python.h: No such file or directory
compilation terminated.
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
I cant find what's wrong. Any one have an idea? Python seams to work in all other regards
You need to install the 'dev' package for Python installation you are using.
Error message is described in:
http://code.google.com/p/modwsgi/wiki/InstallationIssues#Missing_Python_Header_Files