Should I use -march=armv5te or just -march=arm on the make line?
On Wednesday, July 11, 2012 8:49:11 PM UTC-4, Ben Noordhuis wrote:
>
> On Thu, Jul 12, 2012 at 2:40 AM, Jason Schmidt wrote:
> > It was set to "arm-none-linux-gnueabi". I've tried both "armv5t" and
> > "armv5te" (still getting the original linking error in both cases). When
> I
> > tried to set it to just "arm", however, I got an error message at
> configure
> > time:
>
> Yes, it needs to be "arm" - anything else won't work.
>
> > zannalov@droboBuild32:~/code/node-v0.8.2$ ./configure --dest-cpu=arm
> > --prefix=$DEST --without-snapshot
> > { 'target_defaults': { 'cflags': [],
> > 'default_configuration': 'Release',
> > 'defines': [],
> > 'include_dirs': [],
> > 'libraries': []},
> > 'variables': { 'host_arch': 'arm',
> > 'node_install_npm': 'true',
> > 'node_install_waf': 'true',
> > 'node_no_strict_aliasing': 1,
> > 'node_prefix': '/mnt/DroboFS/Shares/DroboApps/nodejs',
> > 'node_shared_openssl': 'false',
> > 'node_shared_v8': 'false',
> > 'node_shared_zlib': 'false',
> > 'node_use_dtrace': 'false',
> > 'node_use_etw': 'false',
> > 'node_use_openssl': 'true',
> > 'target_arch': 'arm',
> > 'v8_no_strict_aliasing': 1,
> > 'v8_use_snapshot': 'false'}}
> > creating ./config.gypi
> > creating ./config.mk
> > Traceback (most recent call last):
> > File "tools/gyp_node", line 58, in <module>
> > run_gyp(gyp_args)
> > File "tools/gyp_node", line 18, in run_gyp
> > rc = gyp.main(args)
> > File "./tools/gyp/pylib/gyp/__init__.py", line 471, in main
> > options.circular_check)
> > File "./tools/gyp/pylib/gyp/__init__.py", line 111, in Load
> > depth, generator_input_info, check, circular_check)
> > File "./tools/gyp/pylib/gyp/input.py", line 2378, in Load
> > depth, check)
> > File "./tools/gyp/pylib/gyp/input.py", line 430, in
> LoadTargetBuildFile
> > includes, depth, check)
> > File "./tools/gyp/pylib/gyp/input.py", line 384, in
> LoadTargetBuildFile
> > build_file_data, PHASE_EARLY, variables, build_file_path)
> > File "./tools/gyp/pylib/gyp/input.py", line 1027, in
> > ProcessVariablesAndConditionsInDict
> > ProcessConditionsInDict(the_dict, phase, variables, build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 904, in
> > ProcessConditionsInDict
> > variables, build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 1053, in
> > ProcessVariablesAndConditionsInDict
> > build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 1068, in
> > ProcessVariablesAndConditionsInList
> > ProcessVariablesAndConditionsInDict(item, phase, variables,
> build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 1053, in
> > ProcessVariablesAndConditionsInDict
> > build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 1068, in
> > ProcessVariablesAndConditionsInList
> > ProcessVariablesAndConditionsInDict(item, phase, variables,
> build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 1027, in
> > ProcessVariablesAndConditionsInDict
> > ProcessConditionsInDict(the_dict, phase, variables, build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 904, in
> > ProcessConditionsInDict
> > variables, build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 1027, in
> > ProcessVariablesAndConditionsInDict
> > ProcessConditionsInDict(the_dict, phase, variables, build_file)
> > File "./tools/gyp/pylib/gyp/input.py", line 885, in
> > ProcessConditionsInDict
> > if eval(ast_code, {'__builtins__': None}, variables):
> > File "<string>", line 1, in <module>
> > NameError: name 'armv7' is not defined while evaluating condition
> 'armv7==1'
> > in /home/zannalov/code/node-v0.8.2/deps/v8/tools/gyp/v8.gyp while
> loading
> > dependencies of /home/zannalov/code/node-v0.8.2/node.gyp while trying to
> > load /home/zannalov/code/node-v0.8.2/node.gyp
> >
> > Since this new error message is about armv7 and the cpuinfo says "CPU
> > architecture: 5TE", I would assume I don't want to try compiling that
> way
> > anyways.
>
> Can you try the patch from here[1]? You may have to nudge it a little
> with `git apply -C0`.
>
> [1] https://github.com/joyent/node/issues/3614#issuecomment-6724717
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en