It doesn't appear that building from source works out of the box on 64-
bit Ubuntu (8.04 Hardy Heron).
Before I dig into debugging it, I was wondering if a) it's a supported
platform and b) anyone has already done the work?
The initial errors are listed below, but, like I said, I haven't
looked at it yet, so I don't know if this is an isolated problem or
the tip of the iceberg.
Tom
-----
$ make
build/core/product_config.mk:229: WARNING: adding test OTA key
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/
acp_intermediates/acp)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp]
Error 1
$
> It doesn't appear that building from source works out of the box on 64-
> bit Ubuntu (8.04 Hardy Heron).
> Before I dig into debugging it, I was wondering if a) it's a supported
> platform and b) anyone has already done the work?
> The initial errors are listed below, but, like I said, I haven't
> looked at it yet, so I don't know if this is an isolated problem or
> the tip of the iceberg.
> Tom
> -----
> $ make
> build/core/product_config.mk:229: WARNING: adding test OTA key
> host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/
> acp_intermediates/acp)
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
> libstdc++.so when searching for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
> libstdc++.a when searching for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
> libstdc++.so when searching for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/
> libstdc++.a when searching for -lstdc++
> /usr/bin/ld: cannot find -lstdc++
> collect2: ld returned 1 exit status
> make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp]
> Error 1
> $
On Thu, Oct 23, 2008 at 12:03 PM, Tom Morris <tfmor...@gmail.com> wrote:
> It doesn't appear that building from source works out of the box on 64- > bit Ubuntu (8.04 Hardy Heron).
> Before I dig into debugging it, I was wondering if a) it's a supported > platform and b) anyone has already done the work?
> The initial errors are listed below, but, like I said, I haven't > looked at it yet, so I don't know if this is an isolated problem or > the tip of the iceberg.
> Tom > -----
> $ make > build/core/product_config.mk:229: WARNING: adding test OTA key > host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/ > acp_intermediates/acp) > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.so when searching for -lstdc++ > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.a when searching for -lstdc++ > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.so when searching for -lstdc++ > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.a when searching for -lstdc++ > /usr/bin/ld: cannot find -lstdc++ > collect2: ld returned 1 exit status > make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] > Error 1 > $
> It doesn't appear that building from source works out of the box on 64- > bit Ubuntu (8.04 Hardy Heron).
> Before I dig into debugging it, I was wondering if a) it's a supported > platform and b) anyone has already done the work?
No, building on 64-bit does not appear to work... you can get past your error by installing g++-multilib. Then you'll also need a 32-bit libz, but the build will still fail at some point unable to find libX11, even though it's installed. /Jonas
On Thu, Oct 23, 2008 at 9:03 AM, Tom Morris <tfmor...@gmail.com> wrote:
> It doesn't appear that building from source works out of the box on 64- > bit Ubuntu (8.04 Hardy Heron).
> Before I dig into debugging it, I was wondering if a) it's a supported > platform and b) anyone has already done the work?
> The initial errors are listed below, but, like I said, I haven't > looked at it yet, so I don't know if this is an isolated problem or > the tip of the iceberg.
> Tom > -----
> $ make > build/core/product_config.mk:229: WARNING: adding test OTA key > host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/ > acp_intermediates/acp) > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.so when searching for -lstdc++ > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.a when searching for -lstdc++ > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.so when searching for -lstdc++ > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/ > libstdc++.a when searching for -lstdc++ > /usr/bin/ld: cannot find -lstdc++ > collect2: ld returned 1 exit status > make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] > Error 1 > $
Koba & Disconnect - Thanks for the tips. Apologies to everyone for the duplicate post, but there was a significant moderation delay yesterday and the other query hadn't been posted when I wrote mine.
I got everything to build and run on 64-bit Linux once all the necessary dependencies were installed.
The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
If you've got ia32-libs installed, you can work around the problem by creating the softlink by hand.
$ cd /usr/lib32 $ sudo ln -s libX11.so.6 libX11.so
I had most of what I need installed, so I'm not sure this list of dependencies is complete, but you definitely need a bunch of the 32-bit dev packages. Combining the lists from Koba and Disconnect, I'd suggest starting with
and then creating the softlink as described above. Of course, this is in addition to the dependencies already listed on Google's build page http://source.android.com/download#TOC-Linux
It took over an hour on my laptop, but when it was done I had a complete build with working emulator, SDK, and bundled apps that ran just fine.
BTW, if anyone needs to debug the makefiles, there's a target 'showcommands' that is useful to see what's going on.
I have gone through the same problems and I can confirm that the steps
Tom Moris shared here will allow you to build the source successfully
on an 64AMD platform.
What to do next is a big question mark for me! But one step at a time.
Cheers,
On Oct 24, 11:58 am, "Tom Morris" <tfmor...@gmail.com> wrote:
> Koba & Disconnect - Thanks for the tips. Apologies to everyone for
> the duplicate post, but there was a significant moderation delay
> yesterday and the other query hadn't been posted when I wrote mine.
> I got everything to build and run on 64-bit Linux once all the
> necessary dependencies were installed.
> The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> I had most of what I need installed, so I'm not sure this list of
> dependencies is complete, but you definitely need a bunch of the
> 32-bit dev packages. Combining the lists from Koba and Disconnect,
> I'd suggest starting with
> and then creating the softlink as described above. Of course, this is
> in addition to the dependencies already listed on Google's build pagehttp://source.android.com/download#TOC-Linux
> It took over an hour on my laptop, but when it was done I had a
> complete build with working emulator, SDK, and bundled apps that ran
> just fine.
> BTW, if anyone needs to debug the makefiles, there's a target
> 'showcommands' that is useful to see what's going on.
i made the changes Tom wrote, also
$ sudo ln -s libX11.so.6 libX11.so
however the following error occurs:
---
host Executable: emulator (out/host/linux-x86/obj/EXECUTABLES/
emulator_intermediates/emulator)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
4.2.4/../../../libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
4.2.4/../../../libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.so when
searching for -lX11
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.a when
searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching
for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching
for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/
emulator] Error 1
---
any help !
Yalcin
On Oct 24, 8:58 pm, "Tom Morris" <tfmor...@gmail.com> wrote:
> Koba & Disconnect - Thanks for the tips. Apologies to everyone for
> the duplicate post, but there was a significant moderation delay
> yesterday and the other query hadn't been posted when I wrote mine.
> I got everything to build and run on 64-bit Linux once all the
> necessary dependencies were installed.
> The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> I had most of what I need installed, so I'm not sure this list of
> dependencies is complete, but you definitely need a bunch of the
> 32-bit dev packages. Combining the lists from Koba and Disconnect,
> I'd suggest starting with
> and then creating the softlink as described above. Of course, this is
> in addition to the dependencies already listed on Google's build pagehttp://source.android.com/download#TOC-Linux
> It took over an hour on my laptop, but when it was done I had a
> complete build with working emulator, SDK, and bundled apps that ran
> just fine.
> BTW, if anyone needs to debug the makefiles, there's a target
> 'showcommands' that is useful to see what's going on.
> i made the changes Tom wrote, also
> $ sudo ln -s libX11.so.6 libX11.so
> however the following error occurs:
> ---
> host Executable: emulator (out/host/linux-x86/obj/EXECUTABLES/
> emulator_intermediates/emulator)
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
> 4.2.4/../../../libX11.so when searching for -lX11
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
> 4.2.4/../../../libX11.a when searching for -lX11
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.so when
> searching for -lX11
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.a when
> searching for -lX11
> /usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching
> for -lX11
> /usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching
> for -lX11
> /usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status
> make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/
> emulator] Error 1
> ---
> any help !
> Yalcin
> On Oct 24, 8:58 pm, "Tom Morris" <tfmor...@gmail.com> wrote:
> > Koba & Disconnect - Thanks for the tips. Apologies to everyone for
> > the duplicate post, but there was a significant moderation delay
> > yesterday and the other query hadn't been posted when I wrote mine.
> > I got everything to build and run on 64-bit Linux once all the
> > necessary dependencies were installed.
> > The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> > I had most of what I need installed, so I'm not sure this list of
> > dependencies is complete, but you definitely need a bunch of the
> > 32-bit dev packages. Combining the lists from Koba and Disconnect,
> > I'd suggest starting with
> > and then creating the softlink as described above. Of course, this is
> > in addition to the dependencies already listed on Google's build pagehttp://source.android.com/download#TOC-Linux
> > It took over an hour on my laptop, but when it was done I had a
> > complete build with working emulator, SDK, and bundled apps that ran
> > just fine.
> > BTW, if anyone needs to debug the makefiles, there's a target
> > 'showcommands' that is useful to see what's going on.
> Could you post here the result of this ls command?
> $ ls -l /usr/lib32/libX11*
> May be you have different version of libX11 installed.
> On Oct 25, 4:59 am, Yalcin <artinfoserv...@gmail.com> wrote: > > Hi,
> > i made the changes Tom wrote, also > > $ sudo ln -s libX11.so.6 libX11.so
> > however the following error occurs: > > --- > > host Executable: emulator (out/host/linux-x86/obj/EXECUTABLES/ > > emulator_intermediates/emulator) > > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/ > > 4.2.4/../../../libX11.so when searching for -lX11 > > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/ > > 4.2.4/../../../libX11.a when searching for -lX11 > > /usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.so when > > searching for -lX11 > > /usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.a when > > searching for -lX11 > > /usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching > > for -lX11 > > /usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching > > for -lX11 > > /usr/bin/ld: cannot find -lX11 > > collect2: ld returned 1 exit status > > make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/ > > emulator] Error 1 > > ---
> > any help ! > > Yalcin
> > On Oct 24, 8:58 pm, "Tom Morris" <tfmor...@gmail.com> wrote:
> > > Koba & Disconnect - Thanks for the tips. Apologies to everyone for > > > the duplicate post, but there was a significant moderation delay > > > yesterday and the other query hadn't been posted when I wrote mine.
> > > I got everything to build and run on 64-bit Linux once all the > > > necessary dependencies were installed.
> > > The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> > > I had most of what I need installed, so I'm not sure this list of > > > dependencies is complete, but you definitely need a bunch of the > > > 32-bit dev packages. Combining the lists from Koba and Disconnect, > > > I'd suggest starting with
> > > and then creating the softlink as described above. Of course, this is > > > in addition to the dependencies already listed on Google's build > pagehttp://source.android.com/download#TOC-Linux
> > > It took over an hour on my laptop, but when it was done I had a > > > complete build with working emulator, SDK, and bundled apps that ran > > > just fine.
> > > BTW, if anyone needs to debug the makefiles, there's a target > > > 'showcommands' that is useful to see what's going on.
> > Could you post here the result of this ls command?
> > $ ls -l /usr/lib32/libX11*
> > May be you have different version of libX11 installed.
> > On Oct 25, 4:59 am, Yalcin <artinfoserv...@gmail.com> wrote:
> > > Hi,
> > > i made the changes Tom wrote, also
> > > $ sudo ln -s libX11.so.6 libX11.so
> > > however the following error occurs:
> > > ---
> > > host Executable: emulator (out/host/linux-x86/obj/EXECUTABLES/
> > > emulator_intermediates/emulator)
> > > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
> > > 4.2.4/../../../libX11.so when searching for -lX11
> > > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
> > > 4.2.4/../../../libX11.a when searching for -lX11
> > > /usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.so when
> > > searching for -lX11
> > > /usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.a when
> > > searching for -lX11
> > > /usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching
> > > for -lX11
> > > /usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching
> > > for -lX11
> > > /usr/bin/ld: cannot find -lX11
> > > collect2: ld returned 1 exit status
> > > make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/
> > > emulator] Error 1
> > > ---
> > > any help !
> > > Yalcin
> > > On Oct 24, 8:58 pm, "Tom Morris" <tfmor...@gmail.com> wrote:
> > > > Koba & Disconnect - Thanks for the tips. Apologies to everyone for
> > > > the duplicate post, but there was a significant moderation delay
> > > > yesterday and the other query hadn't been posted when I wrote mine.
> > > > I got everything to build and run on 64-bit Linux once all the
> > > > necessary dependencies were installed.
> > > > The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> > > > I had most of what I need installed, so I'm not sure this list of
> > > > dependencies is complete, but you definitely need a bunch of the
> > > > 32-bit dev packages. Combining the lists from Koba and Disconnect,
> > > > I'd suggest starting with
> > > > and then creating the softlink as described above. Of course, this is
> > > > in addition to the dependencies already listed on Google's build
> > pagehttp://source.android.com/download#TOC-Linux
> > > > It took over an hour on my laptop, but when it was done I had a
> > > > complete build with working emulator, SDK, and bundled apps that ran
> > > > just fine.
> > > > BTW, if anyone needs to debug the makefiles, there's a target
> > > > 'showcommands' that is useful to see what's going on.
> > > > On Oct 24, 8:58 pm, "Tom Morris" <tfmor...@gmail.com> wrote:
> > > > > Koba & Disconnect - Thanks for the tips. Apologies to everyone for
> > > > > the duplicate post, but there was a significant moderation delay
> > > > > yesterday and the other query hadn't been posted when I wrote mine.
> > > > > I got everything to build and run on 64-bit Linux once all the
> > > > > necessary dependencies were installed.
> > > > > The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> > > > > I had most of what I need installed, so I'm not sure this list of
> > > > > dependencies is complete, but you definitely need a bunch of the
> > > > > 32-bit dev packages. Combining the lists from Koba and Disconnect,
> > > > > I'd suggest starting with
> > > > > and then creating the softlink as described above. Of course, this is
> > > > > in addition to the dependencies already listed on Google's build
> > > pagehttp://source.android.com/download#TOC-Linux
> > > > > It took over an hour on my laptop, but when it was done I had a
> > > > > complete build with working emulator, SDK, and bundled apps that ran
> > > > > just fine.
> > > > > BTW, if anyone needs to debug the makefiles, there's a target
> > > > > 'showcommands' that is useful to see what's going on.
> > > > > On Oct 24, 8:58 pm, "Tom Morris" <tfmor...@gmail.com> wrote:
> > > > > > Koba & Disconnect - Thanks for the tips. Apologies to everyone for
> > > > > > the duplicate post, but there was a significant moderation delay
> > > > > > yesterday and the other query hadn't been posted when I wrote mine.
> > > > > > I got everything to build and run on 64-bit Linux once all the
> > > > > > necessary dependencies were installed.
> > > > > > The libX11 problem mentioned by Jonas Bonn is due to this Ubuntu bug
> > > > > > I had most of what I need installed, so I'm not sure this list of
> > > > > > dependencies is complete, but you definitely need a bunch of the
> > > > > > 32-bit dev packages. Combining the lists from Koba and Disconnect,
> > > > > > I'd suggest starting with
> > > > > > and then creating the softlink as described above. Of course, this is
> > > > > > in addition to the dependencies already listed on Google's build
> > > > pagehttp://source.android.com/download#TOC-Linux
> > > > > > It took over an hour on my laptop, but when it was done I had a
> > > > > > complete build with working emulator, SDK, and bundled apps that ran
> > > > > > just fine.
> > > > > > BTW, if anyone needs to debug the makefiles, there's a target
> > > > > > 'showcommands' that is useful to see what's going on.