Project

General

Profile

[UserError] Scons : target and source lists must have same length.

Added by Anonymous almost 8 years ago

Install file: "sconsbuild/build/lighttpd" as "/home/lighttpd/sbin/lighttpd"
scons: *** [/home/lighttpd/sbin/lighttpd] AssertionError : Installing source ['sconsbuild/build/lighttpd', 'sconsbuild/fullstatic/build/lighttpd'] into target ['/home/lighttpd/sbin/lighttpd']: target and source lists must have same length.
Traceback (most recent call last):
File "/usr/lib/scons/SCons/Action.py", line 1063, in execute
result = self.execfunction(target=target, source=rsources, env=env)
File "/usr/lib/scons/SCons/Tool/install.py", line 185, in installFunc
"Installing source %s into target %s: target and source lists must have same length."%(list(map(str, source)), list(map(str, target)))
AssertionError: Installing source ['sconsbuild/build/lighttpd', 'sconsbuild/fullstatic/build/lighttpd'] into target ['/home/lighttpd/sbin/lighttpd']: target and source lists must have same length.
scons: building terminated because of errors.


Replies (3)

RE: Scons : target and source lists must have same length. - Added by gstrauss almost 8 years ago

Why did you think it was sufficient to include the error message without any additional information such as the command line?

Please see the following links.
http://www.techsupportalert.com/content/how-ask-question-when-you-want-technical-help.htm
http://www.catb.org/esr/faqs/smart-questions.html

The following might be helpful to you (if I guessed correctly that you SCons command line needs tweaking):

build_dynamic is enabled by default in SConstruct, so you need to disable it.

$ scons -j 4 build_static=1 build_dynamic=0 prefix=/path/to/install/prefix/dir install

See the BoolVariable() settings in SConstruct for other variables you might wish to set in your customized build.

RE: Scons : target and source lists must have same length. - Added by Anonymous almost 8 years ago

issue occur when i change prefix directly in SConstruct file

vars.AddVariables(
('prefix', 'prefix', '/home/lighttpd'),
('bindir', 'binary directory', '${prefix}/bin'),
('sbindir', 'binary directory', '${prefix}/sbin'),
('libdir', 'library directory', '${prefix}/lib')
..........

RE: Scons : target and source lists must have same length. - Added by gstrauss almost 8 years ago

...and you still haven't included your command line
...and you probably haven't tried the command line I provided

    (1-3/3)