help understanding the validate_build_xhtml failure of ./validate for my CPP patch

Hey all, I'm trying to get my CPP_Setttings patch to validate, and i'm trying to understand why my validate is failing. At this point im stumped and I really could use some help! I'd appreciate some assistance digging into this, the ticket in question is https://ghc.haskell.org/trac/ghc/ticket/8683#comment:50 my current set of patches is https://github.com/cartazio/ghc/compare/ghc:ghc-7.8...rb_cpp_settings(rebase... on top of current 7.8 branch) and the confusing error in question is == Start post-install package check Timestamp 2014-03-23 17:32:46 UTC for /Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir/lib/ghc-7.8.0.20140323/package.conf.d/package.cache Timestamp 2014-03-23 17:32:46 UTC for /Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir/lib/ghc-7.8.0.20140323/package.conf.d (same as cache) using cache: /Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir/lib/ghc-7.8.0.20140323/package.conf.d/package.cache == End post-install package check ===--- building phase 0 /Applications/Xcode.app/Contents/Developer/usr/bin/make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 /Applications/Xcode.app/Contents/Developer/usr/bin/make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds make[1]: Nothing to be done for `phase_1_builds'. ===--- building final phase /Applications/Xcode.app/Contents/Developer/usr/bin/make -r --no-print-directory -f ghc.mk phase=final validate_build_xhtml cd libraries/xhtml && "/Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir/bin/ghc" --make Setup [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... cd libraries/xhtml && ./Setup configure --with-ghc="/Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir/bin/ghc" --with-haddock="/Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir/bin/haddock" --enable-shared --disable-library-vanilla --disable-library-prof --global --builddir=dist-bindist --prefix="/Users/carter/Desktop/repoScratcher/ghc/bindisttest/install dir" Configuring xhtml-3000.2.1... cd libraries/xhtml && ./Setup build --builddir=dist-bindist Building xhtml-3000.2.1... Preprocessing library xhtml-3000.2.1... ghc: could not execute: make[1]: *** [validate_build_xhtml] Error 1 make: *** [validate_build_xhtml] Error 2 If someone could help me get to the bottom of this, I'd really really appreciate it. -Carter

On 23 Mar 2014, at 20:33, Carter Schonwald wrote:
Hey all, I'm trying to get my CPP_Setttings patch to validate, and i'm trying to understand why my validate is failing. At this point im stumped and I really could use some help!
This looks like the key information:
Building xhtml-3000.2.1... Preprocessing library xhtml-3000.2.1... ghc: could not execute:
Ghc is reporting that it could not execute "". This suggests the commandline for external preprocessing is incorrectly formed. Regards, Malcolm

I figured it out!
theres a mini configure.ac generated by distrib/configure.ac.in thats used
to setup the ghc settings file at install time!
https://github.com/cartazio/ghc/tree/cpp_silly-contrib-configure-in is my
current set of patches, though it needs some rebasing, cleanup, and code
review etcetc,
will update the (admittedly too long ) trac ticket with this info
On Mon, Mar 24, 2014 at 6:39 AM, Malcolm Wallace
On 23 Mar 2014, at 20:33, Carter Schonwald wrote:
Hey all, I'm trying to get my CPP_Setttings patch to validate, and i'm trying to understand why my validate is failing. At this point im stumped and I really could use some help!
This looks like the key information:
Building xhtml-3000.2.1... Preprocessing library xhtml-3000.2.1... ghc: could not execute:
Ghc is reporting that it could not execute "". This suggests the commandline for external preprocessing is incorrectly formed.
Regards, Malcolm
participants (2)
-
Carter Schonwald
-
Malcolm Wallace