Bug#460386: bnfc: FTBFS: lexical error in string/character literal at character '\t'
tags 460386 + patch thank you Hi, Replacing tabs with spaces in 2 files makes it build for me. Here is a patch. diff -u bnfc-2.2/formats/haskell2/CFtoAlex2.hs bnfc-2.2/formats/haskell2/CFtoAlex2.hs --- bnfc-2.2/formats/haskell2/CFtoAlex2.hs +++ bnfc-2.2/formats/haskell2/CFtoAlex2.hs @@ -201,19 +201,19 @@ alexMove (Pn a l c) _= Pn (a+1) l (c+1), , type AlexInput = (Posn, -- current position,, -Char, -- previous char, -String) -- current input string, + Char, -- previous char, + String) -- current input string, , tokens :: String - [Token], tokens str = go (alexStartPos, '\\n', str), where, go :: (Posn, Char, String) - [Token], go inp@(pos, _, str) =, -case alexScan inp 0 of, - AlexEOF- [], - AlexError (pos, _, _) - fail $ show pos ++ \: lexical error\, - AlexSkip inp' len - go inp', - AlexToken inp' len act - act pos (take len str) : (go inp'), + case alexScan inp 0 of, + AlexEOF- [], + AlexError (pos, _, _) - fail $ show pos ++ \: lexical error\, + AlexSkip inp' len - go inp', + AlexToken inp' len act - act pos (take len str) : (go inp'), , alexGetChar :: AlexInput - Maybe (Char,AlexInput), alexGetChar (p, c, [])= Nothing, only in patch2: unchanged: --- bnfc-2.2.orig/formats/haskell2/HaskellTop.hs +++ bnfc-2.2/formats/haskell2/HaskellTop.hs @@ -298,14 +298,14 @@ , [Ok x] - showTree v x , xs@(_:_) - showSeveralTrees v xs ,where - , showSeveralTrees :: (Print b, Show b) = Int - [Err b] - IO () - , showSeveralTrees v trees - , = sequence_ - , [ do putStrV v (replicate 40 '-') - , putStrV v $ \Parse number: \ ++ show n - , showTree v t - , | (Ok t,n) - zip trees [1..] - , ] + , showSeveralTrees :: (Print b, Show b) = Int - [Err b] - IO () + , showSeveralTrees v trees + ,= sequence_ + , [ do putStrV v (replicate 40 '-') + , putStrV v $ \Parse number: \ ++ show n + , showTree v t + , | (Ok t,n) - zip trees [1..] + , ] ] Thank you, Barry deFreese -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#460386: bnfc: FTBFS: lexical error in string/character literal at character '\t'
Just to let people know: my primary computer cannot yet be upgraded to 6.8 due to the fact that I need gtk2hs for my work. I suspect this one needs to be forwarded upstream, but I'd have to check first. -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/
Bug#460386: bnfc: FTBFS: lexical error in string/character literal at character '\t'
Package: bnfc version: 2.2-3 Severity: serious User: [EMAIL PROTECTED] Usertags: qa-ftbfs-20080111 qa-ftbfs Justification: FTBFS on i386 Hi, During a rebuild of all packages in sid, your package failed to build on i386. Relevant part: [25 of 49] Compiling CFtoJavaAbs15( formats/java1.5/CFtoJavaAbs15.hs, formats/java1.5/CFtoJavaAbs15.o ) [26 of 49] Compiling CFtoVisitSkel15 ( formats/java1.5/CFtoVisitSkel15.hs, formats/java1.5/CFtoVisitSkel15.o ) [27 of 49] Compiling CFtoJavaPrinter15 ( formats/java1.5/CFtoJavaPrinter15.hs, formats/java1.5/CFtoJavaPrinter15.o ) [28 of 49] Compiling CFtoJLex15 ( formats/java1.5/CFtoJLex15.hs, formats/java1.5/CFtoJLex15.o ) [29 of 49] Compiling CFtoCup15( formats/java1.5/CFtoCup15.hs, formats/java1.5/CFtoCup15.o ) [30 of 49] Compiling JavaTop15( formats/java1.5/JavaTop15.hs, formats/java1.5/JavaTop15.o ) [31 of 49] Compiling CFtoVisitSkel( formats/java/CFtoVisitSkel.hs, formats/java/CFtoVisitSkel.o ) [32 of 49] Compiling CFtoJavaSkeleton ( formats/java/CFtoJavaSkeleton.hs, formats/java/CFtoJavaSkeleton.o ) [33 of 49] Compiling CFtoJavaPrinter ( formats/java/CFtoJavaPrinter.hs, formats/java/CFtoJavaPrinter.o ) [34 of 49] Compiling CFtoJavaAbs ( formats/java/CFtoJavaAbs.hs, formats/java/CFtoJavaAbs.o ) [35 of 49] Compiling CFtoJLex ( formats/java/CFtoJLex.hs, formats/java/CFtoJLex.o ) [36 of 49] Compiling CFtoCup ( formats/java/CFtoCup.hs, formats/java/CFtoCup.o ) [37 of 49] Compiling JavaTop ( formats/java/JavaTop.hs, formats/java/JavaTop.o ) [38 of 49] Compiling CFtoAlex2( formats/haskell2/CFtoAlex2.hs, formats/haskell2/CFtoAlex2.o ) formats/haskell2/CFtoAlex2.hs:204:3: lexical error in string/character literal at character '\t' make[1]: *** [all] Error 1 make[1]: Leaving directory `/build/user/bnfc-2.2' make: *** [debian/stamp/build] Error 2 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 The full build log is available from: http://people.debian.org/~lucas/logs/2008/01/11 A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on about 50 AMD64 nodes of the Grid'5000 platform, using a clean chroot containing a sid i386 environment. Internet was not accessible from the build systems. -- | Lucas Nussbaum | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]