Re: [Haskell-cafe] Dread __DISCARD__
On 17-sep-2005, at 18:14, Wolfgang Thaller wrote: I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and gcc 4.0.0. Other wxHaskell programs (the samples and my own experiments) compile without tripping over this. GHC 6.4 is incompatible with gcc 4.0.0 when -O or -via-C is used. You can work around this problem by either not using -via-C and always adding -fasm *after* -O, or by setting your default compiler to gcc-3.3 using sudo gcc_select 3.3 ... but be aware that this also affects other C compilations; switch back using sudo gcc_select 4.0 Ofcourse, you can also add -pgmc /usr/bin/gcc-3.3 to the ghc commandline for you compilations. This does not affect other C compilations, and is easily added to e.g. makefiles that use a GHCFLAGS variable... The upcoming GHC 6.4.1 will of course fix this problem. Good to hear that. Doei, Arthur. -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt /\/__ | you can dare to be yourself | Dance like there's nobody watching PGP.sig Description: This is a digitally signed message part ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Dread __DISCARD__
On Sat, 2005-09-17 at 04:55 -0400, Steven Elkins wrote: On 9/17/05, Kenneth Hoste [EMAIL PROTECTED] wrote: Can you tell us where you got bjpop-ray ? I wrote my own raytracer in Haskell, and would like to check this one out too... http://www.cs.mu.oz.au/~bjpop/code.html Don't expect anything fancy, I wrote this program for a lecture, so it is fairly simple. There are other ray tracers / renderers listed on the Haskell Wiki: http://haskell.org/hawiki/H3D Cheers, Bernie. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Dread __DISCARD__
Steven Elkins wrote: Hello everyone, I'm a Haskell newbie trying out various programs from the web. I'm trying to compile one called bjpop-ray (from Bernie Pope, I think) and I hit this at link-time: snip Can you tell us where you got bjpop-ray ? I wrote my own raytracer in Haskell, and would like to check this one out too... K. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Dread __DISCARD__
On 9/17/05, Kenneth Hoste [EMAIL PROTECTED] wrote: Can you tell us where you got bjpop-ray ? I wrote my own raytracer in Haskell, and would like to check this one out too... http://www.cs.mu.oz.au/~bjpop/code.html Please let me know whether you run into __DISCARD__. Thanks, Steve ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Dread __DISCARD__
I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and gcc 4.0.0. Other wxHaskell programs (the samples and my own experiments) compile without tripping over this. GHC 6.4 is incompatible with gcc 4.0.0 when -O or -via-C is used. You can work around this problem by either not using -via-C and always adding -fasm *after* -O, or by setting your default compiler to gcc-3.3 using sudo gcc_select 3.3 ... but be aware that this also affects other C compilations; switch back using sudo gcc_select 4.0 I suspect that you compiled the program with -O before, and then switched to -O0 without removing your .o files. If you compiled wxHaskell yourself, then the problem might also be in wxHaskell (you'd have to recompile it then). The upcoming GHC 6.4.1 will of course fix this problem. Cheers, Wolfgang ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Dread __DISCARD__
Hello everyone, I'm a Haskell newbie trying out various programs from the web. I'm trying to compile one called bjpop-ray (from Bernie Pope, I think) and I hit this at link-time: ghc --make -O0 -package wx Main.hs -o bjpop-ray Chasing modules from: Main.hs Skipping Data ( ./Data.hs, ./Data.o ) Skipping Sphere ( ./Sphere.hs, ./Sphere.o ) Skipping Parser ( ./Parser.hs, ./Parser.o ) Skipping Vector ( ./Vector.hs, ./Vector.o ) Skipping Polygon ( ./Polygon.hs, ./Polygon.o ) Skipping RayTrace ( ./RayTrace.hs, ./RayTrace.o ) Skipping Main ( Main.hs, Main.o ) Linking ... /usr/bin/ld: Undefined symbols: ___DISCARD__ collect2: ld returned 1 exit status I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and gcc 4.0.0. Other wxHaskell programs (the samples and my own experiments) compile without tripping over this. Googling __DISCARD__ led me to ...the binary on the ghc web site has the evil __DISCARD__ mangler problem... on the darwinports bug mailing list, so I guess I'm not the first person to see this. Is there a workaround? Does the Darwin port have the same problem? Should I just work on the many other things I've yet to grasp? Usually ghc works fine. Thanks, Steve -- How wonderful it is that nobody need wait a single moment before starting to improve the world. -- Anne Frank Paradise is exactly where you are right now...only much, much better.-- Laurie Anderson ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe