Compilation Problems - SConstruct Errors

I’ve been trying to compile Blender for about six months now. I’m using SCons from the command line on my Mac, and there is always something wrong with the SConstruct file in the blender/scons folder. Some things have been easy to fix - files in the wrong spot, Python.h missing; but now it’s saying that [ B.root_build_dir ]/‘source’ exists (of course it exists…) I don’t know what it wants, or what is wrong with it. It is the latest SVN checkout available. I apologize in advance if this is a complete noob error, I’m new to compiling using SCons (or any C compiler; none seem to work for me…) but I have some experience coding in C, C++, Python, Unix, Java &c. if this helps at all.
My only thought is that it could be an issue with the SConstruct file; from the wrong folder/build revision; but as I said it’s the latest checkout.

just try grep -r “^#if” | sed -ne “s/#if.([A-Za-z])./#define \1/" >>
progressively edit to get external references correct
and sh -c "for afile in find . -name \*.cpp; do { if [ ! -e ${afile%%.cpp}.o ]; then { cc -c $afile; }; fi } done" and i linked by directory in sh with: curdir=$(pwd); for alib in "extern" "intern"; do { for ash in $(find alib -name \*.dir/\* ) ; do { ldpath=${ash%%.dir/*};libname=${ldpath##*/}; if [ ! -e "$curdir/lib/lib$" ]; then { cd ${ash%%}; for afile infind . -name *.cpp; do { if [ ! -e ${afile%%.cpp}.o ]; then { cc -c $afile; }; fi }; done
} else echo “Already Build $libname”;
}; done
}; done
of course you have to generate a list of includes to something like find -name */ | sed -ne "s/.
/-I\1/p” >>
oh and i linked blender with
cd source/creator
/usr/bin/gcc -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fopenmp -msse2 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -Wall -Wno-invalid-offsetof -Wno-sign-compare -O2 -DNDEBUG -DNDEBUG CMakeFiles/blender.dir/creator.c.o CMakeFiles/blender.dir/buildinfo.c.o -o …/…/bin/blender -L/ad1/python3/lib -L/usr/local/opencollada/lib -L/usr/local/lib -L/usr/X11R6/lib -Wl,–rpath-link,…/…/lib,-R…/lib,-R…/2.59-obj/lib -L…/…/lib -L…/lib -lbf_windowmanager -lbf_editor_space_api -lbf_editor_space_action -lbf_editor_space_buttons -lbf_editor_space_console -lbf_editor_space_file -lbf_editor_space_graph -lbf_editor_space_image -lbf_editor_space_info -lbf_editor_space_logic -lbf_editor_space_nla -lbf_editor_space_node -lbf_editor_space_outliner -lbf_editor_space_script -lbf_editor_space_sequencer -lbf_editor_space_sound -lbf_editor_space_time -lbf_editor_space_userpref -lbf_editor_space_view3d -lbf_editor_text -lbf_editor_transform -lbf_editor_util -lbf_editor_uvedit -lbf_editor_curve -lbf_editor_armature -lbf_editor_gpencil -lbf_editor_interface -lbf_editor_mesh -lbf_editor_metaball -lbf_editor_object -lbf_editor_physics -lbf_editor_render -lbf_editor_screen -lbf_editor_sculpt_paint -lbf_editor_sound -lbf_editor_animation -lbf_editor_datafiles -lbf_render -lbf_intern_opennl -lbf_python -lbf_python_ext -lbf_python_mathutils -lbf_ikplugin -lbf_modifiers -lbf_blenkernel -lbf_nodes -lbf_gpu -lbf_blenloader -lbf_blenlib -lbf_intern_ghost -lbf_intern_string -lbf_blenpluginapi -lbf_imbuf -lbf_avi -lbf_imbuf_cineon -lbf_imbuf_openexr -lbf_imbuf_dds -lbf_collada -lbf_intern_bsp -lbf_intern_bop -lbf_intern_decimate -lbf_intern_elbeem -lbf_intern_ik -lbf_intern_memutil -lbf_intern_guardedalloc -lbf_intern_ctr -lge_blen_routines -lge_converter -lge_phys_dummy -lge_phys_bullet -lbf_intern_smoke -lextern_minilzo -lextern_lzma -lge_logic_ketsji -lge_phys_common -lge_logic -lge_rasterizer -lge_oglrasterizer -lge_logic_expressions -lge_scenegraph -lge_logic_network -lbf_python -lge_logic_ngnetwork -lextern_bullet -lge_logic_loopbacknetwork -lbf_intern_moto -lge_videotex -lbf_rna -lbf_dna -lbf_blenfont -lbf_intern_audaspace -lbf_intern_mikktspace -lextern_glew -lbf_intern_itasc -lGL -lGLU -ljpeg -lpng -lutil -lX11 -lXi -lXext -Xlinker -export-dynamic -L/ad1/python3/lib -lpython3.2m -lGLU /usr/local/lib/ /usr/local/lib/ -lfreetype /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/libSDLmain.a /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ -L/ad1/ports/opencollada -lopencollada_writer -lopencollada_loader -lopencollada_base -lopencollada -lopencollada_parser -lopencollada_utf -lopencollada_ftoa -lopencollada_mathMl -lopencollada_buffer /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ -Wl,-rpath,-L/ad1/python3:/usr/local/lib:/usr/local/lib:/usr/X11R6/lib
cd …/…