With one fix, I think I see the test suite passing with EMCONFIGURE_JS on. Pushed to incoming - please test on your projects that use configure scripts!
- Alon On Sat, Feb 7, 2015 at 8:13 PM, Alon Zakai <[email protected]> wrote: > True, but -m32 wouldn't work if 32-bit compat libraries aren't installed, > etc. Overall I think the best solution here is to get EMCONFIGURE_JS on by > default, so configure tests the exact right setup, and for it to give clear > errors where it fails, so people know what to modify in configure scripts. > > - Alon > > > On Fri, Feb 6, 2015 at 6:47 PM, Bruce Mitchener <[email protected] > > wrote: > >> On Sat, Feb 7, 2015 at 9:40 AM, Alon Zakai <[email protected]> wrote: >> >>> This is a limitation of how we "fake" configure results. We invoke the >>> native compiler but with our libraries and defines, so this can fail if >>> types are different. The reason we do this is that configure can do >>> anything natively - read/write to a file, open a process, etc., stuff we >>> can't do in compiled JS. >>> >>> There is an EMCONFIGURE_JS env var you can set, to force use of JS, >>> which might help here. >>> >>> Perhaps we should default to EMCONFIGURE_JS, and force people to modify >>> configure scripts the other way - but either way, there will be manual work. >>> >> >> In this case, you could use the right flags with clang to request a 32 >> bit build. >> >> On Linux and FreeBSD, pass -m32, on OS X, pass -arch i386. >> >> Seems like you could do that in this chunk: >> >> env['HOST_CC'] = CLANG_CC >> env['HOST_CXX'] = CLANG_CPP >> env['HOST_CFLAGS'] = "-W" #if set to nothing, CFLAGS is used, which >> we don't want >> env['HOST_CXXFLAGS'] = "-W" #if set to nothing, CXXFLAGS is used, >> which we don't want >> env['PKG_CONFIG_LIBDIR'] = path_from_root('system', 'local', 'lib', >> 'pkgconfig') + os.path.pathsep + path_from_root('system', 'lib', >> 'pkgconfig') >> env['PKG_CONFIG_PATH'] = os.environ.get ('EM_PKG_CONFIG_PATH') or '' >> env['EMSCRIPTEN'] = path_from_root() >> >> - Bruce >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
