logo       

Re: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0: msg#00013

lang.haskell.glasgow.bugs

Subject: Re: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

Could the parties involved with the quoting issue please test the
following patch? It doesn't use an additional shell for starting
sub-tasks and does no additional quoting so that quoting remains
unaffected, i.e. testing with OpenGL shows that the double quotes
are indeed passed through. Sven, do you have time to verify this?

*** C pre-processor
gcc -E -undef -traditional -v -I . -I include -I
/usr/tmp/fptools/libraries/base/include -I /usr/tmp/fptools/ghc/includes
-D__HASKELL1__=5 -D__GLASGOW_HASKELL__=601 -D__HASKELL98__
-D__CONCURRENT_HASKELL__ -DCALLCONV=ccall
-DGET_PROC_ADDRESS="glXGetProcAddressARB" -DDONT_WANT_WIN32_DLL_SUPPORT -x c
Graphics/Rendering/OpenGL/GL/BasicTypes.hs -o /tmp/ghc70692.hscpp

It works successfully in all 3 stages and in the libraries, but I'm
not sure if I missed somebody sneaking in any
Option "-foo -bar"
along the more obscure paths!

Perhaps I should add a sanity check to 'showOpt' which will print
a warning if it encounters " -" anywhere in the string until 6.2?
'ghc -v' will show the arguments with interspersed spaces, so you
cannot really tell if there's a quote in the argument or not -- but
it means you can still cut&paste sub-tasks from -v. It might be
sensible to surround *only* the arguments in the debugging output
with single quotes, so that perpetrators can be spotted.

Mingw is unaffected, but it might be worth seeing if now both cases
boil down to one.

Volker
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
rage against the finite state machine

Attachment: sven.diff
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise