SCons errors

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Marty_D
Posts: 0
Joined: Mon Jun 09, 2003 11:16 pm

SCons errors

Post by Marty_D » Wed Sep 29, 2004 1:56 pm

Michel wrote:What exactly are the problems you get? We're currently doing some major overhaul of the SCons build system. Any error you currently get may be helpful for improvements in the current overhaul.
Building with GCC under Cygwin SCons is generating the following.

Code: Select all

Running makesdna at debug level 0
        Program version: $Id: makesdna.c,v 1.8 2004/03/20 22:55:38 zuster Exp $
Can't read file source/blender/makesdna/DNA_listBase.h
scons: *** [/home/mame/build/build/cygwin/source/blender/makesdna/intern/dna.c]
Error 1
scons: building terminated because of errors.
Looking at the dna.c file its contents read, "ERROR! Cannot make correct DNA.c file, STUPID!" At the risk, looking at the Tuhopuu tree there is another DNA.c file with the filename in uppercase and the SCons built file's name is lowercase. Since Linux is case sensitive it seems like there may be a connection. However it's a guess. There is, in all likelyhood, something misconfigured in this setup.

Cygwin is installed with the full package. All components are default installation. SCons was built and installed from the downloaded tarball under Cygwin.

Michaelv
Posts: 0
Joined: Fri Mar 26, 2004 8:20 pm

Post by Michaelv » Sun Oct 03, 2004 3:44 am

It says that "Can't read file source/blender/makesdna/DNA_listBase.h" is the problem. Make sure that DNA_listBase.h exists in the correct place and isn't corrupted. Or it may be a path issue "home/mame/build/build/cygwin/source/blender/makesdna/intern/dna.c" , thats a correct place issue. :wink:

Marty_D
Posts: 0
Joined: Mon Jun 09, 2003 11:16 pm

Post by Marty_D » Sun Oct 03, 2004 12:46 pm

Hi, Michaelv. Thanks for the reply.

DNA_listBase.h is located in "C:\cygwin\home\mame\build\blender\source\blender\makesdna" from the CVS.
Image
The hi-lighted "build" directory above "C:\cygwin\home\mame\build\build" is getting created by the Blender SCons script. Blender routines are putting the files in their "build" directory. Do you suppose that's the confusion, because I've named a directory build the script is losing focus?

Cygwin is installed in the default directory C:/cygwin
Source files are installed in default "home" with a subdirectory of "mame/build"
I guess that wouldn't necessarily be default would it?
However, below "home/mame/build/" is the source directory "blender/source/".

Is SCons using absolute paths? Seems like they would be relative to the location of /blender/source/ etc. Maybe it's a Linux thing.

Sorry if I sound argumentative. This is just what's happening with the error. I'll try renaming the hierarchy and see what happens. Again, thanks for the reply.

Marty_D
Posts: 0
Joined: Mon Jun 09, 2003 11:16 pm

Post by Marty_D » Sun Oct 03, 2004 2:11 pm

Taking the following steps:
-Delete the "build" directory from my users login directory of "mame".
-Make clean, scons clean.
-Delete SCons "build" directory.
-CVS checkout.
-Execute scons default.
I am still no go. Again the same error

Code: Select all

Running makesdna at debug level 0
        Program version: $Id: makesdna.c,v 1.8 2004/03/20 22:55:38 zuster Exp $
Can't read file source/blender/makesdna/DNA_listBase.h
scons: *** [/home/mame/build/cygwin/source/blender/makesdna/intern/dna.c] Error
1
scons: building terminated because of errors.
DNA_listBase.h is located in C:\cygwin\home\mame\blender\source\blender\makesdna
Contents of DNA_listBase.h are

Code: Select all

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 * All rights reserved.
 *
 * The Original Code is: all of this file.
 *
 * Contributor(s): none yet.
 *
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 *
 * These structs are the foundation for all linked lists in the
 * library system.
 *
 */

#ifndef DNA_LISTBASE_H
#define DNA_LISTBASE_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct Link
{
	struct Link *next,*prev;
} Link;

/* never change the size of this! genfile.c detects pointerlen with it */
typedef struct ListBase 
{
	void *first, *last;
} ListBase;

/* 8 byte alignment! */

#ifdef __cplusplus
}
#endif

#endif

Marty_D
Posts: 0
Joined: Mon Jun 09, 2003 11:16 pm

Post by Marty_D » Mon Oct 11, 2004 2:00 pm

SCons is working now. I havn't really changed anything. I did download the lates version of Cygwin but other than that . . It looks like the SConscripts files are good. Thanks.

Kenden
Posts: 0
Joined: Fri Apr 16, 2004 4:11 pm

Post by Kenden » Thu Oct 28, 2004 9:33 pm

I had the same problem as you:
"Can't read file source/blender/makesdna/DNA_listBase.h"

As you did, I reinstalled cygwin, and I could pass the error.

Note: I reinstalled cygwin choosing "Unix default text file type".
The first install had "DOS default text file type" selected.
It might have been the problem!


Thanks,
kenden

Marty_D
Posts: 0
Joined: Mon Jun 09, 2003 11:16 pm

Post by Marty_D » Thu Oct 28, 2004 10:26 pm

Hi Kenden. I suspect if more people were using scons there would probably be more errors showing up. Glad to hear you are online.

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Fri Oct 29, 2004 3:31 am

A goodly number of the blender developers are already using SCons.

I can't help noticing that SCons errors frequently disappear once Cygwin gets installed correctly.

Marty_D
Posts: 0
Joined: Mon Jun 09, 2003 11:16 pm

Post by Marty_D » Fri Oct 29, 2004 1:03 pm

Hi stiv. I should have stipulated SCons with Cygwin. You are probably still correct about the goodly number. I stand corrected.

[edit] Which is, I see now, what you said in your secon paragraph. Could this post be more muddled. [/edit]

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Fri Oct 29, 2004 8:20 pm

Marty_D wrote:Could this post be more muddled.
As long as we keep a sense of humor, we'll all do just fine!

Post Reply