On 13 July 2011 10:15, Philip Nienhuis <pr.nienh...@hccnet.nl> wrote: > Hi Michael: > > (octave-dev@lists.sourceforge.net cc'ed) > > Michael Goffioul wrote: >> On Tue, Jul 12, 2011 at 7:30 PM, Philip Nienhuis<pr.nienh...@hccnet.nl> >> wrote: >>> Michael Goffioul wrote: >>>> >>>> The backtrace is weird, it looks like polymorphism isn't use, as in >>>> octave_base_value::subsref >>>> is called instead of the overridden octave_com_object::subsref. I >>>> assume you recompiled the >>>> Windows package as well. >>> >>> No - how does one do that? >>> >>> (I did figure it may be needed but didn't know how to get it together, so I >>> skipped that step.) >>> >>> I'll try some more backtracing earlier on in the code as you suggested, but >>> I have to sneak that in between other "duties". >> >> Grab the package sources from sourceforget and try "pkg install...". > > Yeah, it occurred to me this morning that installing an octave-forge > package might invoke the very compiler flags used to build Octave > itself. So if debug was enabled for Octave, it'll apply to packages too. > Or is this a wrong supposition? > (BTW: This may be something for the wiki. This info may be obvious for > the gurus, but is nowhere to be found.)
Yes, this is how it works. At build time, mkoctfile is created from mkoctfile.in which amongst other things defines the CFLAGS and CXXFLAGS compile flags, which the generated mkoctfile later uses as defaults for building other packages. You can override those defaults with environment variables, though. I had written a patch for mkoctfile to accept command line switches in addition to environment variables, but it broke the current way 'Forge packages are built, passing -Wall to mkoctfile, which happened to work due to what was essentially a bug in mkoctfile. If passing environment variables to change compilation flags is inconvenient, I'll work on another patch for mkoctfile to give it greater flexibility without breaking the existing (undocumented, lucky) way of building of 'Forge packages. - Jordi G. H. ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev