so that means should work on ubuntu 12.04 64bit?http://wiki.debian.org/Multiarchcan anyone point to system to set up cross-compile on 64 bit Ubuntu (12.04) as i understand all of the toolchains listed here are geared for 32but systems http://pandorawiki.org/Setting_up_a_cross-compiler
thx
Given that this message is flat-out wrong for people not using bash (eg. zsh is my login and terminal emulator shell and bash exists on my system only to execute shell scripts), it'd probably be a good idea to do some kind of quick check that $SHELL ends with /bash and, if not, respond accordingly.The following lines have been added to your login script (~/.bashrc):
export PNDSDK="/home/ssokolow/opt/pandora-dev/arm-2011.09"
1,2c1,3
<
< penpandora_toolchain.sh:
---
> #!/bin/bash
> #
> # openpandora_toolchain.sh:
127,130c128,131
< #PKGCONFIG_VERSION=pkg-config-0.25
< #PKGCONFIG_ARCHIVE_MD5=a3270bab3f4b69b7dc6dbdacbcae9745
< PKGCONFIG_VERSION=pkg-config-0.26
< PKGCONFIG_ARCHIVE_MD5=47525c26a9ba7ba14bf85e01509a7234
---
> PKGCONFIG_VERSION=pkg-config-0.25
> PKGCONFIG_ARCHIVE_MD5=a3270bab3f4b69b7dc6dbdacbcae9745
> #PKGCONFIG_VERSION=pkg-config-0.26
> #PKGCONFIG_ARCHIVE_MD5=47525c26a9ba7ba14bf85e01509a7234
139c140
< REQUIRED_PROGS="wget md5sum tar make cut grep sed find awk xargs chmod"
---
> REQUIRED_PROGS="wget md5 tar make cut grep sed find awk xargs chmod"
188,189c189,190
< cecho "Verifying the integrity of $LOCAL_ARCHIV" $green
< md5=$(md5sum $TMPDIR/$LOCAL_ARCHIV |cut -d' ' -f1)
---
> echo "Verifying the integrity of $LOCAL_ARCHIV" $green
> md5=$(md5 -r $TMPDIR/$LOCAL_ARCHIV |cut -d' ' -f1)
278a280,284
>
> echo -e
> cecho "Patching with OSX fix"
> patch tmp/opkg-0.1.8/tests/libopkg_test.c libopkg_test_state_changed_fix_osx
> patch tmp/opkg-0.1.8/libopkg/opkg_download.c libopkg_basename_fix_osx
mac:pandora-dev scraft$ cat libopkg_test_state_changed_fix_osx
7a8
> int opkg_state_changed;
mac:pandora-dev scraft$ cat libopkg_basename_fix_osx
75a76,79
> #if defined(__APPLE__) && defined(__MACH__)
> # include <libgen.h>
> #endif
>
1,2c1,3
<
< penpandora_toolchain.sh:
---
> #!/bin/bash
> #
> # openpandora_toolchain.sh:
121,123c122,127
< TOOLCHAIN_URL=http://sourcery.mentor.com/sgpp/lite/arm/portal/package9728/public/arm-none-linux-gnueabi/arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
< TOOLCHAIN_TARBALL_NAME=arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
< TOOLCHAIN_MD5=56d9a77654d012914e703dc8d9383246
---
> #TOOLCHAIN_URL=http://sourcery.mentor.com/sgpp/lite/arm/portal/package9728/public/arm-none-linux-gnueabi/arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
> #TOOLCHAIN_TARBALL_NAME=arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
> #TOOLCHAIN_MD5=56d9a77654d012914e703dc8d9383246
> TOOLCHAIN_TARBALL_NAME=arm-none-linux-gnueabi-q1-2010-darwin10-binary.tar.gz
> TOOLCHAIN_URL=http://www.cs.washington.edu/homes/sidhant/arm-linux/arm-none-linux-gnueabi-q1-2010-darwin10-binary.tar.gz
> TOOLCHAIN_MD5=0616bacb2df0f67dc08328bbd7df8046
127,130c131,134
< #PKGCONFIG_VERSION=pkg-config-0.25
< #PKGCONFIG_ARCHIVE_MD5=a3270bab3f4b69b7dc6dbdacbcae9745
< PKGCONFIG_VERSION=pkg-config-0.26
< PKGCONFIG_ARCHIVE_MD5=47525c26a9ba7ba14bf85e01509a7234
---
> PKGCONFIG_VERSION=pkg-config-0.25
> PKGCONFIG_ARCHIVE_MD5=a3270bab3f4b69b7dc6dbdacbcae9745
> #PKGCONFIG_VERSION=pkg-config-0.26
> #PKGCONFIG_ARCHIVE_MD5=47525c26a9ba7ba14bf85e01509a7234
139c143
< REQUIRED_PROGS="wget md5sum tar make cut grep sed find awk xargs chmod"
---
> REQUIRED_PROGS="wget md5 tar make cut grep sed find awk xargs chmod"
188,189c192,193
< cecho "Verifying the integrity of $LOCAL_ARCHIV" $green
< md5=$(md5sum $TMPDIR/$LOCAL_ARCHIV |cut -d' ' -f1)
---
> echo "Verifying the integrity of $LOCAL_ARCHIV" $green
> md5=$(md5 -r $TMPDIR/$LOCAL_ARCHIV |cut -d' ' -f1)
244a249,252
> cecho "Fixing directory name"
> rsync -avh tools/ arm-2011.09/
> rm -fr tools/
>
278a287,291
>
> echo -e
> cecho "Patching with OSX fix"
> patch tmp/opkg-0.1.8/tests/libopkg_test.c libopkg_test_state_changed_fix_osx
> patch tmp/opkg-0.1.8/libopkg/opkg_download.c libopkg_basename_fix_osx
mac:pandora-dev scraft$ arm-2011.09/bin/arm-none-linux-gnueabi-g++ main.cpp
/Users/scraft/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
mac:pandora-dev scraft$ arm-2011.09/bin/arm-none-linux-gnueabi-g++ --sysroot=arm-2011.09/ main.cpp
mac:pandora-dev scraft$ file a.out
a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped