Thanks Søren,

I've got both v8 and node.js cross-compiling now.
http://fastr.github.com/ (posted as "v8 on OpenEmbedded" and "bitbake node")

When I have some spare time this upcoming week I hope to finish creating a
bitbake recipe for both v8 and node.

AJ ONeal

2010/8/10 Søren Gjesse <[email protected]>

> I use a script with the flowing content to make SCons use a specific
> version of the GCC toolchain.
>
>   export
> TOOL_PREFIX=/opt/crosstool/gcc-4.3.2/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi
>   export CXX=$TOOL_PREFIX-g++
>   export AR=$TOOL_PREFIX-ar
>   export RANLIB=$TOOL_PREFIX-ranlib
>   export CC=$TOOL_PREFIX-gcc
>
> I have a number of these which only differs in what TOOL_PREFIX is set to.
>
> Regards,
> Søren
>
> On Mon, Aug 9, 2010 at 18:07, CoolAJ86 <[email protected]> wrote:
>
>> How and where does scons set and use environment variables?
>>
>>
>> I'm using bitbake to cross-compile v8 (and ultimately node.js).
>> http://fastr.github.com/articles/v8-on-OpenEmbedded.html
>>
>> I can see that bitbake sets all of the environment variables
>> correctly, however, it seems that perhaps scons is ignoring the PATH.
>>
>> I've compiled other programs (namely pingus) which use scons to test
>> that the bitbake configuration is generally successful, so I believe
>> it's something specific to the v8 scons setup.
>>
>>
>> NOTE: Running task 839 of 1163 (ID: 9, /home/coolaj86/overo-oe/
>> user.collection/recipes/v8/v8_r5144.bb, do_compile)
>> ERROR: function do_compile failed
>> ERROR: log data follows (/home/coolaj86/overo-oe/tmp/work/armv7a-
>> angstrom-linux-gnueabi/v8-r5144-r0/temp/log.do_compile.13079)
>> | /home/coolaj86/overo-oe/tmp/sysroots/i686-linux/usr/bin/scons PATH=/
>> home/coolaj86/overo-oe/tmp/sysroots/i686-linux/usr/bin/armv7a-angstrom-
>> linux-gnueabi:/home/coolaj86/overo-oe/tmp/sysroots/i686-linux/usr/bin/
>> armv7a-angstrom-linux-gnueabi:/home/coolaj86/overo-oe/tmp/sysroots/
>> i686-linux/usr/sbin:/home/coolaj86/overo-oe/tmp/sysroots/i686-linux/
>> usr/bin:/home/coolaj86/overo-oe/tmp/cross/armv7a//bin:/home/coolaj86/
>> overo-oe/tmp/sysroots/i686-linux/sbin:/home/coolaj86/overo-oe/tmp/
>> sysroots/i686-linux/bin:/home/coolaj86/overo-oe/bitbake/bin:/usr/local/
>> sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games  CXX="/
>> home/coolaj86/overo-oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-
>> g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
>> PREFIX=/usr prefix=/usr
>> | scons: Reading SConscript files ...
>> | scons: done reading SConscript files.
>> | scons: Building targets ...
>> | arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
>> mfpu=neon -mfloat-abi=softfp -o obj/release/dtoa-config.o -c -isystem/
>> home/coolaj86/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/
>> include -fexpensive-optimizations -frename-registers -fomit-frame-
>> pointer -O2 -ggdb3 -Werror -Wno-uninitialized -m32 -O3 -fomit-frame-
>> pointer -fdata-sections -ffunction-sections -ansi -isystem/home/
>> coolaj86/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/
>> include -DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING -
>> DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/dtoa-
>> config.c
>> | /bin/bash: arm-angstrom-linux-gnueabi-gcc: command not found
>> | scons: *** [obj/release/dtoa-config.o] Error 127
>> | scons: building terminated because of errors.
>> | FATAL: scons build execution failed.
>>
>> --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>>
>
>  --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to