Ubuntu의 경우 default mount option이 'relatime'으로 되어 있는데, 이것을 바꾸기 위해서 "mount -o remount,atime,xxxx" 식으로 해도 relatime 에서 atime으로 mount상태가 바뀌지 않는다.

대신 strictatime을 사용하면, 정상적으로 원하는 형태로 mount할 수 있다.

(mount의 man page에 상세하게 설명이 나와있긴 하나... atime이상 동작하지 않는다는 설명은 찾을 수 없었다.)

요점은 atime 대신 strictatime을 사용하라!

블로그 이미지


댓글을 달아 주세요

[ g++ issue ]

g++-4.4 / g++-4.5 doesn't detect following case, but, g++-4.6 does.

< a.cpp >

class P {
    void a();

class A : public P {
    void p();

P::a() {
    // 'const' quailifier' is discard here!
    static_cast<const A*>(this)->p();

A::p() {

main() {
    return 0;

=================== Test ======================
$ g++-4.5 a.cpp   <= OK.
$ g++-4.6 a.cpp
a.cpp: In member function ‘void P::a()’:
a.cpp:13:33: error: passing ‘const A’ as ‘this’ argument of ‘void A::p()’ discards qualifiers [-fpermissive]

The problem is some of Android codes still have above bugs in its code - ex. frameworks/base/libs/utils/RefBase.cpp.
So, even if Android source code was successfully compiled at g++-4.4 or g++4.5, it may be failed at g++-4.6 (for example, upgrading host OS)

[ cc/gcc issue ]

Compiling with gcc-4.6 raises following warings.

<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]

In some component which uses '-Werror' option, this warning stops compilation.

[ Conclusion ]

So, you would better to use gcc/g++-4.4 instead of 4.6 when building Android, until above issues are resolved on Android baseline.
(ex. Ubuntu 11.10 as an Android host OS.)

블로그 이미지


Tag GCC, ubuntu

댓글을 달아 주세요

[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]

[ ... ] : Issues that I face with. Record(History) for resolve the issue should be followed by - should be indented.
{ ... } : state and environment
( ... ) : reference stuff to resolve the issues.

{ Laptop : HP EliteBook 8530w }
{ OS : Ubuntu 9.04 Jaunty }
[ Nvidia graphic card is not identified by Jaunty ]
( http://www.linlap.com/wiki/HP+EliteBook+8530W )

download NVIDIA-Linux-x86-185.18.36-pkg1.run
stop 'gdm' service at "System > Administration > Services"
type "sh NVIDIA-Linux-x86-185.18.36-pkg1.run" to install NVIDIA driver

[ Sound doesn't work! ]
( http://www.linlap.com/wiki/HP+EliteBook+8530W )

Add the following lines at "/etc/modprobe.d/alsa-base"
=> options snd-hda-intel model=laptop

{ My laptop is behind proxy }
[ 'git' command doesn't work ]

git config should be modified. So, I added following lines at '~/.bashrc'
=> git config --global core.gitproxy "xxx for kernel.org"

블로그 이미지


Tag 8530w, ubuntu

댓글을 달아 주세요