Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264163 - dev-utils/scons-1.0.0 problems with python-2.6.1 and environment flags
Summary: dev-utils/scons-1.0.0 problems with python-2.6.1 and environment flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 250988 (view as bug list)
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2009-03-29 11:56 UTC by Chris Mayo
Modified: 2009-04-06 16:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
example SConstruct (SConstruct,98 bytes, text/plain)
2009-04-01 18:53 UTC, Chris Mayo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2009-03-29 11:56:23 UTC
vdrift-20090215 emerge fails with scons-1.0.0 (python-2.6.1-r1, amd64). (similar symptoms for vdrift-20080805 in bug 250988)

Works fine with scons-1.2.0-r1.


x86_64-pc-linux-gnu-g++ -o build/aabb_space_partitioning.o -c - m a r c h = c o r e 2 " " - O 3 " " - p i p e -Wall -Wextra -Wno-unused-parameter -O1 -pipe -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL src/aabb_space_partitioning.cpp
x86_64-pc-linux-gnu-g++: m: No such file or directory
x86_64-pc-linux-gnu-g++: a: No such file or directory
x86_64-pc-linux-gnu-g++: r: No such file or directory
x86_64-pc-linux-gnu-g++: c: No such file or directory
x86_64-pc-linux-gnu-g++: h: No such file or directory
x86_64-pc-linux-gnu-g++: =: No such file or directory
x86_64-pc-linux-gnu-g++: c: No such file or directory
x86_64-pc-linux-gnu-g++: o: No such file or directory
x86_64-pc-linux-gnu-g++: r: No such file or directory
x86_64-pc-linux-gnu-g++: e: No such file or directory
x86_64-pc-linux-gnu-g++: 2: No such file or directory
x86_64-pc-linux-gnu-g++:  : No such file or directory
x86_64-pc-linux-gnu-g++: O: No such file or directory
x86_64-pc-linux-gnu-g++: 3: No such file or directory
x86_64-pc-linux-gnu-g++:  : No such file or directory
x86_64-pc-linux-gnu-g++: p: No such file or directory
x86_64-pc-linux-gnu-g++: i: No such file or directory
x86_64-pc-linux-gnu-g++: p: No such file or directory
x86_64-pc-linux-gnu-g++: e: No such file or directory
x86_64-pc-linux-gnu-g++: cannot specify -o with -c or -S with multiple files
x86_64-pc-linux-gnu-g++: m: No such file or directory
x86_64-pc-linux-gnu-g++: a: No such file or directory
x86_64-pc-linux-gnu-g++: r: No such file or directory
x86_64-pc-linux-gnu-g++: c: No such file or directory
x86_64-pc-linux-gnu-g++: h: No such file or directory
x86_64-pc-linux-gnu-g++: =: No such file or directory
x86_64-pc-linux-gnu-g++: c: No such file or directory
x86_64-pc-linux-gnu-g++: o: No such file or directory
x86_64-pc-linux-gnu-g++: r: No such file or directory
x86_64-pc-linux-gnu-g++: e: No such file or directory
x86_64-pc-linux-gnu-g++: 2: No such file or directory
x86_64-pc-linux-gnu-g++:  : No such file or directory
x86_64-pc-linux-gnu-g++: O: No such file or directory
x86_64-pc-linux-gnu-g++: 3: No such file or directory
x86_64-pc-linux-gnu-g++:  : No such file or directory
x86_64-pc-linux-gnu-g++: p: No such file or directory
x86_64-pc-linux-gnu-g++: i: No such file or directory
x86_64-pc-linux-gnu-g++: p: No such file or directory
x86_64-pc-linux-gnu-g++: e: No such file or directory
x86_64-pc-linux-gnu-g++: cannot specify -o with -c or -S with multiple files
scons: *** [build/aabb.o] Error 1
Comment 1 Chris Mayo 2009-03-29 11:59:13 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
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-29 19:31:59 UTC
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.
Comment 3 Chris Mayo 2009-03-30 20:18:36 UTC
As mentioned emerges with dev-util/scons-1.2.0-r1 (dev-util/scons-1.2.0 no longer in tree)
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-31 19:22:46 UTC
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 :)
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2009-03-31 19:28:00 UTC
Builds fine for me on stable x86.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2009-04-01 02:26:59 UTC
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.
Comment 7 Chris Mayo 2009-04-01 18:53:12 UTC
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
Comment 8 Chris Mayo 2009-04-01 18:54:59 UTC
dev-utils/scons-1.0.0 problems with python-2.6.1 and environment flags
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2009-04-03 16:23:26 UTC
*** Bug 250988 has been marked as a duplicate of this bug. ***
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2009-04-06 16:41:58 UTC
use scons-1.2