Hi Zach,

Thanks for the help. i will try to build the source as per your instructions. There are two versions of gcc, 1. GNU gcc and 2. gcc provided by linaro. which version do u suggest? 

Since i am using ubuntu and it comes with the default gcc-4.6, so how to set the path of gcc-4.7 in linaro android compilation?

i got another response for this mail which recommends gcc ( 32 bit ). is it fine to use gcc 32 bit on 64 bit ubuntu?

regards,
Amit Kumar

On Sun, Jul 22, 2012 at 10:49 PM, Zach Pfeffer <zach.pfeffer@linaro.org> wrote:
On 19 July 2012 02:08, Amit Kumar <arc.dream@gmail.com> wrote:
> Hi,
>
> i am trying to compile linaro build ( panda-ics-gcc47-tilt-tracking-blob )
> on ubuntu 12.04 machine.
>
> The steps and other details.
>
> 1. i am using ubuntu 12.04 on intel 64 bit machine.
> 2. downloaded the latest source code.
> 3. install gcc-4.7.
> 4. download the latest tool chain.
> 5. i followed all the steps mentioned by you.
>
> i am continuously getting the below error code.
>
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find -lgcc_s
> /usr/bin/ld: skipping incompatible
> /usr/gcc_4_7/lib/gcc/x86_64-linux-gnu/4.7.2/libgcc.a when searching for
> -lgcc
> /usr/bin/ld: cannot find -lgcc
> collect2: error: ld returned 1 exit status
>
>
> pleas let me know which linux or other configuration should i use to easily
> compile linaro android source code.
> what is the easiest way to do that.

You're doing all the right things, but against the wrong instructions.
These should work:

export MANIFEST_REPO=git://android.git.linaro.org/platform/manifest.git
export MANIFEST_BRANCH=linaro_android_4.0.4
export MANIFEST_FILENAME=tracking-panda.xml
repo init -u ${MANIFEST_REPO} -b ${MANIFEST_BRANCH} -m ${MANIFEST_FILENAME}
repo sync
export TOOLCHAIN_URL=http://snapshots.linaro.org/android/~linaro-android/toolchain-4.7-2012.07/1/android-toolchain-eabi-linaro-4.7-2012.07-1-2012-07-16_08-48-35-linux-x86.tar.bz2
wget --no-check-certificate $TOOLCHAIN_URL
tar -jxvf android-toolchain-eabi-linaro-*
export NUM_PROC=`getconf _NPROCESSORS_ONLN`
make -j${NUM_PROC} TARGET_NO_HARDWAREGFX=1
KERNEL_CONFIG=omap4plus_defconfig TARGET_PRODUCT=pandaboard
TARGET_SIMULATOR=false
TARGET_TOOLS_PREFIX=/home/pfefferz/androids/android-toolchain-eabi/bin/arm-linux-androideabi-
boottarball systemtarball userdatatarball showcommands >
build_log_YYMMDD.txt 2>&1 &
bzr branch lp:linaro-image-tools
dmesg #to find /dev/sdc
./linaro-image-tools/linaro-android-media-create --mmc /dev/sdc --dev
panda --system system.tar.bz2 --userdata userdata.tar.bz2 --boot
boot.tar.bz2
minicom -D /dev/ttyUSB0 -w -C minicom.txt

Updated the instructions on
https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-tilt-tracking-blob/

Sorry for the inconvenience. Note. User space may not come up on this
build. You're better off using:

https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-omapzoom-stable-blob/

With similar build instructions.

>
> regards and thanks
> Amit Kumar
>
>
> _______________________________________________
> linaro-android mailing list
> linaro-android@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-android
>



--
Zach Pfeffer
Android Platform Team Lead, Linaro Platform Teams
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog