Showing posts with label gcc. Show all posts
Showing posts with label gcc. Show all posts

Tuesday, October 02, 2012


How to compile ICS code in Ubuntu 12.04 64 bit OS?
In  Ubuntu 12.04 64 bit OS, while compiling android ICS code[thru make], it will give FORTIFY_SOURCE error as below:
 + FORTIFY_SOURCE error ... :0:0: warning: "_FORTIFY_SOURCE" redefined 
 Problem for this issue:
 ICS is trying to compile with gcc-4.6. ICS code is compilable in gcc-4.4 only. 
Resolution: 
While giving make{compiling android code}, we can mention the make file to use gcc-4.4 by below commands:
 make CC=gcc-4.4 CXX=g++-4.4 
or 
  export CC=gcc-4.4 CXX=g++-4.4
  make #This will use exported CC & CXX flag's value gcc/g++-4.4 version