Skip to main content

Thread: Weird c compiler behaviour


hi, guys.

i'm unhappy now,,,it started upgrade jaunty. started getting bloody error when compiling no matter kind of project...

code:
-- cxx compiler identification unknown  -- check working cxx compiler: /usr/bin/c++  -- check working cxx compiler: /usr/bin/c++ -- broken  cmake error @ /usr/share/cmake-2.6/modules/cmaketestcxxcompiler.cmake:25 (message):    c++ compiler "/usr/bin/c++" not able compile simple test    program.
looked everywhere think of...couldn't fix it. , since there other buddy things stopped working (like network manager), decided reinstall ubuntu afresh - no upgrades previous version, nothing.
didn't fix anything...again - wasn't able compile single simple c/c++ program cmake. same error haunted me in dreams... today miracle happened...i reading this in order avoid compiling hand (although executing cmake, make , make install shouldn't difficult ) , create deb-package source files (which worked on previous ubuntu - compiling , everything!). synaptic manager downloaded/reinstalled these:
gnupg, lintian, fakeroot, pbuilder, debhelper , dh-make in order make sure everything's fresh , without me spoiling it. , here's miracle happened!!! don't know why decided try compiling source files of project wanted install , didn't succeed. typed
code:
cmake .
trembeling fingers , sweat on forehead. pressed enter execute command...boom! console started telling me everything's found , fine. started compiling files. after got better. able execute
code:
make
! stared @ display , flying lines of comfirmation , compiled etc. again - happiness isn't last long. me didn't last short period of time...executing
code:
make install
gave me thist:
code:
[ 99%] built target hedgewars  [100%] built target hwengine  install project...  -- install configuration: ""  -- installing: /usr/local/bin/hedgewars  cmake error @ qtfrontend/cmake_install.cmake:36 (file):  file install cannot copy file  "/home/rbaleksandar/desktop/hedgewars-src-0.9.11/bin/hedgewars"  "/usr/local/bin/hedgewars".  call stack (most recent call first):  cmake_install.cmake:38 (include)    make: *** [install] error 1
looked error on internet...no success. thought - hey, maybe recompiling source fix this...accidents compiling stuff happen. deleted compiled files including make-files.

"great" luck after executing
code:
cmake .
again got same errors of broken c compiler described above...
how can be? first it's not working...then works...then again it's not working?

can compile livecd far optimal solution since have reboot everytime download source files want compile , install...

can please me? if possible - not technical terminology.
in advance , best regards,
rbaleksandar

can not copy file?

looks need sudo make install ?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Weird c compiler behaviour


Ubuntu

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62