Opened 13 years ago

Last modified 13 years ago

#30617 closed defect

nodejs fails to build if python3x is the currently selected python — at Version 2

Reported by: linhares.mauricio@… Owned by: ciserlohn@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: nodejs

Description (last modified by mf2k (Frank Schima))

When trying to build nodejs, if any of the python3x versions is available the build is going to fail with the following trace:

:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/Developer/usr/bin/llvm-g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/Developer/usr/bin/llvm-gcc-4.2' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/Developer/usr/bin/llvm-gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/work/node-v0.4.10" && ./configure --prefix=/opt/local'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/work/node-v0.4.10" && ./configure --prefix=/opt/local 
:info:configure Traceback (most recent call last):
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/work/node-v0.4.10/tools/waf-light", line 157, in <module>
:info:configure     import Scripting
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/work/node-v0.4.10/tools/wafadmin/Scripting.py", line 146
:info:configure     except Utils.WafError, e:
:info:configure                          ^
:info:configure SyntaxError: invalid syntax
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/work/node-v0.4.10" && ./configure --prefix=/opt/local " returned error 1

The solution might be ask for the user to select a previous version (like python27) or select an older python if available instead of using the currently selected python.

Change History (3)

Changed 13 years ago by linhares.mauricio@…

Attachment: nodejs-port-fail.log added

Full port build log

comment:1 Changed 13 years ago by linhares.mauricio@…

Cc: linhares.mauricio@… added

Cc Me!

comment:2 Changed 13 years ago by mf2k (Frank Schima)

Cc: linhares.mauricio@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ciserlohn@…
Note: See TracTickets for help on using tickets.