On 06/24/2010 06:45 AM, Dan Terpstra wrote: > Why do you need to install swig? > If we have no intention to use a scripting language for libpfm4, should it be > required that a default build have swig? This seems like an unnecessary > constraint placed on the build environment. I'd rather see the python stuff > built optionally with a command line argument or an environment variable or > something. > - d
Either that, or detect the error during the make and generate a useful error message like: "In order to build the Python interface, you need to have swig installed. Or you can choose not to build the Python interface by adding NO_PYTHON=1 to the make invocation." I don't know how hard that would be to implement swig detection in a make file. It sounds like something that might be better done with the autoconf tool set. - Corey > > On Jun 23, 2010, at 5:52 PM, stephane eranian wrote: > >> You need to install swig. >> >> >> On Wed, Jun 23, 2010 at 11:38 PM, Corey Ashford >> <cjash...@linux.vnet.ibm.com> wrote: >>> Hello, >>> >>> I'm seeing a build problem with the current libpfm4. I cloned a fresh >>> copy today on a Power6 machine, and when I do a make, I get this error: >>> >>> ... >>> make[1]: Entering directory `/home/corey/libpfm4/libpfm4/python' >>> ./setup.py build >>> running build >>> running build_py >>> file src/perfmon_int.py (for module perfmon.perfmon_int) not found >>> file src/perfmon_int.py (for module perfmon.perfmon_int) not found >>> running build_ext >>> building 'perfmon._perfmon_int' extension >>> swigging src/perfmon_int.i to src/perfmon_int_wrap.c >>> swig -python -I../include -o src/perfmon_int_wrap.c src/perfmon_int.i >>> unable to execute swig: No such file or directory >>> error: command 'swig' failed with exit status 1 >>> make[1]: *** [all] Error 1 >>> make[1]: Leaving directory `/home/corey/libpfm4/libpfm4/python' >>> make: *** [all] Error 2 >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> perfmon2-devel mailing list >>> perfmon2-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel >>> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> perfmon2-devel mailing list >> perfmon2-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel