Hi Bruce,
Thanks in advance for helping out. I owe ya!
I had discussed an issue I was having building for windows, but now I'm back to
a Linux problem. It so happens that it involves the same little beast,
'uintptr_t'.
Isn't this item included in stdint.h? I don't know how to fix the
autoconfigure stuff to deal with this.
Will you look at my verbose make (well, gcc) output to see if you know where
I'm going wrong?
Here is the first error:
In file included from sched-opt.h:35,
from sched-opt.c:35:
../libopts/autoopts/options.h:348: error: expected specifier-qualifier-list
before 'uintptr_t'
../libopts/autoopts/options.h:1000: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'optionEnumerationVal'
The full listing follows:
a...@alan-laptop:~/isp/trunk$ make
Making all in scheduler
make[1]: Entering directory `/home/alan/isp/trunk/scheduler'
make all-am
make[2]: Entering directory `/home/alan/isp/trunk/scheduler'
gcc -DHAVE_CONFIG_H -I. -Wall -I../libopts -O2 -v -g -O2 -DFIB -MT
sched-opt.o -MD -MP -MF .deps/sched-opt.Tpo -c -o sched-opt.o sched-opt.c
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
COLLECT_GCC_OPTIONS='-DHAVE_CONFIG_H' '-I.' '-Wall' '-I../libopts' '-O2' '-v'
'-g' '-O2' '-DFIB' '-MT' 'sched-opt.o' '-MD' '-MP' '-MF' '.deps/sched-opt.Tpo'
'-c' '-o' 'sched-opt.o' '-mtune=generic'
/usr/lib/gcc/i486-linux-gnu/4.3.2/cc1 -quiet -v -I. -I../libopts -MD
sched-opt.d -MF .deps/sched-opt.Tpo -MP -MT sched-opt.o -DHAVE_CONFIG_H -DFIB
sched-opt.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase sched-opt.c -mtune=generic
-auxbase-strip sched-opt.o -g -O2 -O2 -Wall -version -fstack-protector -o
/tmp/ccczPaS7.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
.
../libopts
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.3.2/include
/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed
/usr/include
End of search list.
GNU C (Ubuntu 4.3.2-1ubuntu12) version 4.3.2 (i486-linux-gnu)
compiled by GNU C version 4.3.2, GMP version 4.2.2, MPFR
version 2.3.2.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128159
Compiler executable checksum: 9ecd6562c106044a1f3a6d56a4b5859b
In file included from sched-opt.h:35,
from sched-opt.c:35:
../libopts/autoopts/options.h:348: error: expected specifier-qualifier-list
before 'uintptr_t'
../libopts/autoopts/options.h:1000: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'optionEnumerationVal'
sched-opt.c: In function 'doOptNumprocs':
sched-opt.c:695: error: 'optArgBucket_t' has no member named 'argInt'
sched-opt.c: In function 'doOptPort':
sched-opt.c:745: error: 'optArgBucket_t' has no member named 'argInt'
sched-opt.c: In function 'doOptExp_Mode':
sched-opt.c:762: warning: implicit declaration of function
'optionEnumerationVal'
sched-opt.c:766: error: 'optArgBucket_t' has no member named 'argEnum'
sched-opt.c: At top level:
sched-opt.c:769: fatal error: opening dependency file .deps/sched-opt.Tpo:
Permission denied
compilation terminated.
make[2]: *** [sched-opt.o] Error 1
make[2]: Leaving directory `/home/alan/isp/trunk/scheduler'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/alan/isp/trunk/scheduler'
make: *** [all-recursive] Error 1
a...@alan-laptop:~/isp/trunk$
/* -*- buffer-read-only: t -*- vi: set ro:
*
* DO NOT EDIT THIS FILE (sched-opt.h)
*
* It has been AutoGen-ed Thursday October 8, 2009 at 11:18:06 AM MDT
* From the definitions sched-opt.def
* and the template file options
*
* Generated from AutoOpts 32:0:7 templates.
*/
/*
* This file was produced by an AutoOpts template. AutoOpts is a
* copyrighted work. This header file is not encumbered by AutoOpts
* licensing, but is provided under the licensing terms chosen by the
* isp author or copyright holder. AutoOpts is licensed under
* the terms of the LGPL. The redistributable library (``libopts'') is
* licensed under the terms of either the LGPL or, at the users discretion,
* the BSD license. See the AutoOpts and/or libopts sources for details.
*
* This source file is copyrighted and licensed under the following terms:
*
* isp copyright 1-27-2009 University of Utah - all rights reserved
*
* Copyright (C) 2009 -- please see LICENSE for details.
*/
/*
* This file contains the programmatic interface to the Automated
* Options generated for the isp program.
* These macros are documented in the AutoGen info file in the
* "AutoOpts" chapter. Please refer to that doc for usage help.
*/
#ifndef AUTOOPTS_SCHED_OPT_H_GUARD
#define AUTOOPTS_SCHED_OPT_H_GUARD 1
#include <autoopts/options.h>
/*
* Ensure that the library used for compiling this generated header is at
* least as new as the version current when the header template was released
* (not counting patch version increments). Also ensure that the oldest
* tolerable version is at least as old as what was current when the header
* template was released.
*/
#define AO_TEMPLATE_VERSION 131072
#if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
|| (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
# error option template version mismatches autoopts/options.h header
Choke Me.
#endif
/*
* Enumeration of each option:
*/
typedef enum {
INDEX_OPT_NUMPROCS = 0,
INDEX_OPT_PORT = 1,
INDEX_OPT_HOST = 2,
INDEX_OPT_US = 3,
INDEX_OPT_BLOCK = 4,
INDEX_OPT_NOBLOCK = 5,
INDEX_OPT_LOGFILE = 6,
INDEX_OPT_MPICALLS = 7,
INDEX_OPT_VERBOSE = 8,
INDEX_OPT_QUIET = 9,
INDEX_OPT_RPT_PROGRESS = 10,
INDEX_OPT_DISTRIBUTED = 11,
INDEX_OPT_FIBOPT = 12,
INDEX_OPT_DISABLE_OMP = 13,
INDEX_OPT_EXP_MODE = 14,
INDEX_OPT_ENV = 15,
INDEX_OPT_EXP_SOME = 16,
INDEX_OPT_STOP_AT_DEADLOCK = 17,
INDEX_OPT_VERSION = 18,
INDEX_OPT_HELP = 19,
INDEX_OPT_MORE_HELP = 20
} teOptIndex;
#define OPTION_CT 21
#define ISP_VERSION "0.1.1"
#define ISP_FULL_VERSION "isp - isp: In-Situ Partial Order - Ver. 0.1.1"
/*
* Interface defines for all options. Replace "n" with the UPPER_CASED
* option name (as in the teOptIndex enumeration above).
* e.g. HAVE_OPT( NUMPROCS )
*/
#define DESC(n) (ispOptions.pOptDesc[INDEX_OPT_## n])
#define HAVE_OPT(n) (! UNUSED_OPT(& DESC(n)))
#define OPT_ARG(n) (DESC(n).optArg.argString)
#define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
#define COUNT_OPT(n) (DESC(n).optOccCt)
#define ISSEL_OPT(n) (SELECTED_OPT(&DESC(n)))
#define ISUNUSED_OPT(n) (UNUSED_OPT(& DESC(n)))
#define ENABLED_OPT(n) (! DISABLED_OPT(& DESC(n)))
#define STACKCT_OPT(n) (((tArgList*)(DESC(n).optCookie))->useCt)
#define STACKLST_OPT(n) (((tArgList*)(DESC(n).optCookie))->apzArgs)
#define CLEAR_OPT(n) STMTS( \
DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
if ( (DESC(n).fOptState & OPTST_INITENABLED) == 0) \
DESC(n).fOptState |= OPTST_DISABLED; \
DESC(n).optCookie = NULL )
/* * * * * *
*
* Interface defines for specific options.
*/
#define VALUE_OPT_NUMPROCS 'n'
#define OPT_VALUE_NUMPROCS (DESC(NUMPROCS).optArg.argInt)
#define VALUE_OPT_PORT 'p'
#define OPT_VALUE_PORT (DESC(PORT).optArg.argInt)
#define VALUE_OPT_HOST 'h'
#ifndef WIN_32
#define VALUE_OPT_US 'x'
#endif /* WIN_32 */
#define VALUE_OPT_BLOCK 'b'
#define VALUE_OPT_NOBLOCK 'g'
#define VALUE_OPT_LOGFILE 'l'
#define VALUE_OPT_MPICALLS 'm'
#define VALUE_OPT_VERBOSE 'O'
#define VALUE_OPT_QUIET 'q'
#define VALUE_OPT_RPT_PROGRESS 'r'
#define OPT_VALUE_RPT_PROGRESS (DESC(RPT_PROGRESS).optArg.argInt)
#define VALUE_OPT_DISTRIBUTED 'd'
#ifdef FIB
#define VALUE_OPT_FIBOPT 'f'
#endif /* FIB */
#ifdef USE_OPENMP
#define VALUE_OPT_DISABLE_OMP 'o'
#endif /* USE_OPENMP */
typedef enum {
EXP_MODE_ALL, EXP_MODE_RANDOM, EXP_MODE_LEFT_MOST
} te_Exp_Mode;
#define VALUE_OPT_EXP_MODE 'e'
#define OPT_EXP_MODE_VAL2STR(_v) optionKeywordName( &DESC(EXP_MODE), (_v))
#define OPT_VALUE_EXP_MODE (DESC(EXP_MODE).optArg.argEnum)
#define VALUE_OPT_ENV 's'
#define VALUE_OPT_EXP_SOME 'y'
#define OPT_VALUE_EXP_SOME (DESC(EXP_SOME).optArg.argInt)
#define VALUE_OPT_STOP_AT_DEADLOCK 'z'
#define OPT_VALUE_STOP_AT_DEADLOCK (DESC(STOP_AT_DEADLOCK).optArg.argBool)
#define VALUE_OPT_HELP '?'
#define VALUE_OPT_MORE_HELP '!'
#define VALUE_OPT_VERSION 'v'
/*
* Interface defines not associated with particular options
*/
#define ERRSKIP_OPTERR STMTS( ispOptions.fOptSet &= ~OPTPROC_ERRSTOP )
#define ERRSTOP_OPTERR STMTS( ispOptions.fOptSet |= OPTPROC_ERRSTOP )
#define RESTART_OPT(n) STMTS( \
ispOptions.curOptIdx = (n); \
ispOptions.pzCurOpt = NULL )
#define START_OPT RESTART_OPT(1)
#define USAGE(c) (*ispOptions.pUsageProc)( &ispOptions, c )
/* extracted from /usr/share/autogen/opthead.tpl near line 415 */
/* * * * * *
*
* Declare the isp option descriptor.
*/
#ifdef __cplusplus
extern "C" {
#endif
extern tOptions ispOptions;
#if defined(ENABLE_NLS)
# ifndef _
# include <stdio.h>
static inline char* aoGetsText( char const* pz ) {
if (pz == NULL) return NULL;
return (char*)gettext( pz );
}
# define _(s) aoGetsText(s)
# endif /* _() */
# define OPT_NO_XLAT_CFG_NAMES STMTS(ispOptions.fOptSet |= \
OPTPROC_NXLAT_OPT_CFG;)
# define OPT_NO_XLAT_OPT_NAMES STMTS(ispOptions.fOptSet |= \
OPTPROC_NXLAT_OPT|OPTPROC_NXLAT_OPT_CFG;)
# define OPT_XLAT_CFG_NAMES STMTS(ispOptions.fOptSet &= \
~(OPTPROC_NXLAT_OPT|OPTPROC_NXLAT_OPT_CFG);)
# define OPT_XLAT_OPT_NAMES STMTS(ispOptions.fOptSet &= \
~OPTPROC_NXLAT_OPT;)
#else /* ENABLE_NLS */
# define OPT_NO_XLAT_CFG_NAMES
# define OPT_NO_XLAT_OPT_NAMES
# define OPT_XLAT_CFG_NAMES
# define OPT_XLAT_OPT_NAMES
# ifndef _
# define _(_s) _s
# endif
#endif /* ENABLE_NLS */
#ifdef __cplusplus
}
#endif
#endif /* AUTOOPTS_SCHED_OPT_H_GUARD */
/* sched-opt.h ends here */
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users