'ubuntu'에 해당되는 글 3건

  1. 2013.05.31 atime 대신에 strictatime을 사용하자!
  2. 2011.10.17 [C/C++] Fail to build Android with g++/gcc-4.6 (Ubuntu-11.10)
  3. 2009.05.03 [Ubuntu] Start git on ubuntu with HP EliteBook 8530w

atime 대신에 strictatime을 사용하자!

Domain/Linux 2013.05.31 16:43

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

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

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

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

tags : Linux, mount, ubuntu
Trackback 0 : Comment 0

[C/C++] Fail to build Android with g++/gcc-4.6 (Ubuntu-11.10)

Language/C&C++ 2011.10.17 15:12

[ 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.)

tags : GCC, ubuntu
Trackback 0 : Comment 0

[Ubuntu] Start git on ubuntu with HP EliteBook 8530w

Domain/Linux 2009.05.03 15:17

[[ 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"

tags : 8530w, ubuntu
Trackback 0 : Comment 0

티스토리 툴바