Summary: | dev-utils/scons-1.0.0 problems with python-2.6.1 and environment flags | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Mayo <aklhfex> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | j-pi, python |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 230205 | ||
Attachments: | example SConstruct |
Description
Chris Mayo
2009-03-29 11:56:23 UTC
Maybe this fix in SCons 1.2.0: - Fix env.Append() and env.Prepend()'s ability to add a string to list-like variables like $CCFLAGS under Python 2.6. http://www.scons.org/CHANGES.txt This bug appears to be similar to bug #264050 Can you please try with dev-util/scons-1.2.0 and report your results here? Please reopen this bug when you did the test so that we can wrangle this bug further. As mentioned emerges with dev-util/scons-1.2.0-r1 (dev-util/scons-1.2.0 no longer in tree) Ah, you did not explicitly mention that scons-1.2.0 fixes your problem. That's why I asked you to test it with that version. Thaks for your reply anyway :) Builds fine for me on stable x86. Attach the full output from the attempted build please. emerge -v vdrift &> /tmp/output and then attach the file. Also, attach the config.log file from the build directory. reopen with that information. Created attachment 187007 [details]
example SConstruct
My analysis:
1) Save the attached SConstruct to a directory
2) Create a hello.c (touch is OK for this purpose)
3) CCFLAGS="-O3 -pipe" scons -Q
With python-2.6.1-r1
and scons-1.0.0:
/usr/lib/scons-1.0.0/SCons/Platform/posix.py:38: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
/usr/lib/scons-1.0.0/SCons/Tool/msvs.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
gcc -o hello.o -c - O 3 " " - p i p e hello.c
gcc: O: No such file or directory
gcc: : No such file or directory
gcc: p: No such file or directory
gcc: i: No such file or directory
gcc: p: No such file or directory
gcc: e: No such file or directory
gcc: cannot specify -o with -c or -S with multiple files
and scons-1.2.0-r1:
gcc -o hello.o -c -O3 -pipe hello.c
gcc -o hello hello.o
dev-utils/scons-1.0.0 problems with python-2.6.1 and environment flags *** Bug 250988 has been marked as a duplicate of this bug. *** use scons-1.2 |