[solved] 2.5 - after "scons clean", compile error

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
appultaart
Posts: 0
Joined: Sat Nov 01, 2008 2:40 pm
Location: Netherlands

[solved] 2.5 - after "scons clean", compile error

Post by appultaart »

EDIT: problem solved. Deleting the /svn/blender/ directory, and doing a fresh 'svn checkout' made compiling possible again.

(Leaving this item here just in case others bump into the same...)

---- the problem ---
I am regularly compiling Blender2.5 via scons (Ubuntu 9.04, python 3.1), without problems.

Because of a power-outage while compiling Blender, I did an "scons clean" just to be certain. I guess, that was the wrong decision, as now I got a compile error. Any clues on how to solve this?

My user-config.py only contains "BF_PYTHON = '/user/local'", no other modifications.

[console output:]
douwe@appultaart:~/svn/blender$ scons

(...Scons starts checking... - and then this is reported:)

checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int *... yes
checking size of int *... 4
checking whether byte ordering is bigendian... no
checking for build extensions... .so .a .o
checking for platform specific LDFLAGS/CFLAGS... ok
./configure: line 4115: syntax error near unexpected token `<<<'
./configure: line 4115: `<<<<<<< .mine'
Processing makefile: extern/xvidcore/build/generic/sources.inc
IOError: [Errno 2] No such file or directory: 'extern/xvidcore/build/generic/platform.inc':
File "/home/douwe/svn/blender/SConstruct", line 384:
SConscript(B.root_build_dir+'/extern/SConscript')
File "/usr/lib/scons/SCons/Script/SConscript.py", line 612:
return apply(method, args, kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 549:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 259:
exec _file_ in call_stack[-1].globals
File "/home/douwe/svn/blender/extern/SConscript", line 13:
SConscript(['xvidcore/SConscript'])
File "/usr/lib/scons/SCons/Script/SConscript.py", line 612:
return apply(method, args, kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 549:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 259:
exec _file_ in call_stack[-1].globals
File "/home/douwe/svn/blender/extern/xvidcore/SConscript", line 104:
vars = getmakevars([buildroot + '/sources.inc', buildroot + '/platform.inc'])
File "/home/douwe/svn/blender/extern/xvidcore/SConscript", line 81:
fp = open(filename)
douwe@appultaart:~/svn/blender$

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing »

As a late diagnoses, your original problem was a conflict in the file that failed to compile. The <<<< .mine and similar lines give that away.

Always, when you do a svn up when you have local changes, check the output from the update to see if there are any conflicting files. svn status should be able to tell you also if there are any conflicts left.

Resolving the conflicts would've been enough - doing a clean checkout is essentially a brute-force way to solve conflicts, while giving up any local changes you might have.

/Nathan

Post Reply