From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/5342 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: error on building the windows installer Date: Wed, 2 Jan 2013 15:55:37 -0800 Message-ID: <20130102235536.GA19032@protagoras.phil.berkeley.edu> References: <20121107171059.GA66573@Johns-MacBook-Pro.local> <20121107194845.GA21903@protagoras.phil.berkeley.edu> <87sj8kxr1f.fsf@eeepc.nowhere.net> <20121108171447.GD94362@Johns-MacBook-Air-2.local> <87fw4kx899.fsf@eeepc.nowhere.net> <20121230033457.GA17954@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1357170946 11011 80.91.229.3 (2 Jan 2013 23:55:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2013 23:55:46 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBAUSSODQKGQET6PJCUA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 03 00:56:03 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oa0-f60.google.com ([209.85.219.60]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TqYAE-0007VF-MD for gtp-pandoc-discuss@m.gmane.org; Thu, 03 Jan 2013 00:56:02 +0100 Original-Received: by mail-oa0-f60.google.com with SMTP id n12sf8772323oag.5 for ; Wed, 02 Jan 2013 15:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:x-received:received-spf:date:from :to:subject:message-id:references:mime-version:in-reply-to:x-pgp-key :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=GYfF62EomYwPAMCV6INiTkC590uvJja3FxuvPsIS4+Y=; b=jEvrnASf+l6jNmw4zA9PeIImi++a2e/oY+h9WHI5o9zotm+ylE8kyI5AYrH/rGHycc gmRLmFnoUMcBLPh/phcxTORORUEOU1JUPPx+QAlGVzeiyIfB8bfz/yTfmy0jaGGJX08e 4c3QE81d9O/fjrlrKuBM8+lgvUr61v39HTD25V85JfcMY3hhpSXUdzQDoJEKpTj6cNak nZ7crybm/3tAnMkBKKp4dM8/k0DoIR5rHghhLSqrnquXDECufgSovuB6g2ekp3g4DLYe DX7NH DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:x-beenthere:x-received:x-received:received-spf:date:from :to:subject:message-id:references:mime-version:in-reply-to:x-pgp-key :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=GYfF62EomYwPAMCV6INiTkC590uvJja3FxuvPsIS4+Y=; b=Y1nLFp98SkgroU5VJUCn9Qq5QZeU0CtauACAn4VtuAGocu1H5bE4vlb0d9OMHQOYEt fmfvdptop0jOIrj4q/WaGqM66qXqOqXKYq5nBWYDI9f+5CgeKJCYtGCFQNyfv4TUKkyq WyoyKw7cLop476kXQcTHxKb/0+uve1/MgdFb9vRAY/VWVjmmaoAQC2k8n0KjaYB3vI6K vvlhebGA+B4UmbfwmU8dtlsfz4kJvAVJFPfsX/HbubM4QARsbm+JA5ROllZE9TiNguIk bkzrA52xMu9W X-Received: by 10.50.91.165 with SMTP id cf5mr15416842igb.4.1357170946953; Wed, 02 Jan 2013 15:55:46 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.5.175 with SMTP id t15ls14941494igt.33.canary; Wed, 02 Jan 2013 15:55:46 -0800 (PST) X-Received: by 10.66.84.136 with SMTP id z8mr5951584pay.2.1357170946375; Wed, 02 Jan 2013 15:55:46 -0800 (PST) X-Received: by 10.66.84.136 with SMTP id z8mr5951583pay.2.1357170946365; Wed, 02 Jan 2013 15:55:46 -0800 (PST) Original-Received: from cm03fe.IST.Berkeley.EDU (cm03fe.IST.Berkeley.EDU. [169.229.218.144]) by gmr-mx.google.com with ESMTPS id ab9si9513878pbd.1.2013.01.02.15.55.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Jan 2013 15:55:46 -0800 (PST) Received-SPF: neutral (google.com: 169.229.218.144 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.144; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm03fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1TqY9x-000231-9r for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Wed, 02 Jan 2013 15:55:45 -0800 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 3E0B4BB887; Wed, 2 Jan 2013 18:47:51 -0500 (EST) In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 169.229.218.144 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) smtp.mail=jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:5342 Archived-At: +++ Cesar Romani [Jan 02 13 15:41 ]: > On 29/12/2012 10:34 p.m., John MacFarlane wrote: > > +++ Cesar Romani [Dec 22 12 10:02 ]: > >> On 08/11/2012 01:24 p.m., andrea rossato wrote: > >>> John MacFarlane writes: > >>> > >>>>> In citeproc-hs there also seems to be a bug which shows up when > >> building > >>>>> with the "embed_data_files" flags. I'm going to fix it later this > >>>>> afternoon. > >>>> > >>>> My present thought is that pandoc's 'library' and 'executable' flags > >>>> create too many problems. I'm thinking of getting rid of them, and > >>>> adding an embed_data_files flag to embed the data files into > the binary. > >>>> (The added size is fairly insignificant since the binary is already so > >>>> large.) This would allow you to make a relocatable executable, > not just > >>>> on Windows but on any system. And it would be fully relocatable -- > >>>> copy the binary anywhere and it will work, without the need of > >>>> supporting data files. > >>>> > >>>> This would also solve the problem with man pages noted above, as > >>>> we would no longer need the -library flag. > >>>> > >>>> Anyway, I was going to use citeproc-hs as a model, so let me know what > >>>> the problem was! > >>> > >>> The problem was just me: I didn't check if the code compiled with the > >>> "embed_data_files" flag before releasing 0.3.6. > >>> > >>> The bug was due to the fact that when moving to hexpat I started using > >>> lazy bytestrings for reading files, while embed-file uses strict > >>> bytestrings, hence a type error -- easily fixed. > >> > >> After compiling from the newest update from the git repository, 'make' > >> and 'make install' work fine, but I'm always getting the same error by > >> building the windows installer make-windows-installer.bat: > >> > >> Linking dist\build\pandoc\pandoc.exe ... > >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10... > >> : cannot satisfy -package-id pandoc-1.10-inplace > >> (use -v for more information) > >> cabal.exe: Error: some packages failed to install: > >> pandoc-1.10 failed during the building phase. The exception was: > >> ExitFailure 1 > >> > >> The error occurs by the line: > >> cabal-dev install --flags="executable -library blaze_html_0_5" > --datasubdir= > > > > Yes, when you tried this I hadn't yet made the change discussed above. > > I have made it now but have not yet tested the windows installer. > > You may do so if you wish. > > > > Be sure to do a 'git submodule update' after 'git pull'. > > I did it, but on 'make' I get: > $ make > cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build > Configuring pandoc-1.10... > setup.exe: At least the following dependencies are missing: > Diff ==0.2.* > Resolving dependencies... > make: *** [all] Error 1 > > Then I did 'cabal install Diff' but I get the same result. Well, the message is telling you that you don't have the Diff 0.2 library, which is a dependency of pandoc. Try 'make prep' to install all the dependencies. ('cabal install' won't help anyway, since the Makefile is using a cabal-dev sandbox. You could do 'cabal update && cabal-dev install').