[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSPP-BUG: [bug #59673] cross compilation is not possible
From: |
Ben Pfaff |
Subject: |
Re: PSPP-BUG: [bug #59673] cross compilation is not possible |
Date: |
Sun, 13 Dec 2020 13:39:07 -0800 |
OK, great!
We should make it possible to cross-compile without being able to run
the built binaries, but I do think that the approach i outlined makes
sense for this particular special case.
On Sun, Dec 13, 2020 at 1:35 PM Harry Thijssen <pspp4windows@gmail.com> wrote:
>
> I will do, but it will take a few days before I have time to do it.
>
> Stay safe
>
> Op zo 13 dec. 2020 om 22:30 schreef Ben Pfaff <blp@cs.stanford.edu>:
>>
>> [adding the list back]
>>
>> Yes, just running the build binaries.
>>
>> There are two steps here:
>>
>> 1. On your machine, make sure that wine gets automatically invoked
>> when you try to run a windows binary directly. The wine-binfmt package
>> doesn't do much. It just adds a file /usr/share/binfmts/wine that
>> contains the lines:
>>
>> package wine
>> interpreter /usr/bin/wine
>> magic MZ
>>
>> and invokes "update-binfmts --import wine" to make sure that it is
>> recognized.
>>
>> 2. Make sure that the makefiles actually invoke the binaries with
>> their proper names. It shouldn't be too hard to find the Makefile line
>> that is failing and add an .exe extension to it to make sure that it
>> works.
>>
>> Can you try this?
>>
>> On Sun, Dec 13, 2020 at 1:18 PM Harry Thijssen <pspp4windows@gmail.com>
>> wrote:
>> >
>> > Hi
>> >
>> > You mean, just running the build binaries? Yes that would be easy.
>> > (however the package is not provided in the opensuse libraries)
>> >
>> > I just tried and that is not enough to solve the issue. Maybe adding .exe
>> > will work.
>> >
>> > Stay safe.
>> >
>> > Op zo 13 dec. 2020 om 21:08 schreef Ben Pfaff <blp@cs.stanford.edu>:
>> >>
>> >> There's nothing magic in my buildscripts, I just install the
>> >> wine-binfmt package on my Debian box and then you can run Windows
>> >> binaries directly via Wine.
>> >>
>> >> I haven't tried this recently so it's possible we need to add some
>> >> $EXEEXT variables in the build scripts now.
>> >>
>> >> On Sun, Dec 13, 2020 at 11:58 AM Harry Thijssen <pspp4windows@gmail.com>
>> >> wrote:
>> >> >
>> >> >
>> >> > I guess I donĀ“t understand how you could do that.
>> >> >
>> >> > Do you have a scripts to set up the environment and buildscripts?
>> >> > Maybe you could send them to me so I can have a look at them.
>> >> >
>> >> > Stay safe
>> >> >
>> >> > Op zo 13 dec. 2020 om 20:36 schreef Ben Pfaff <INVALID.NOREPLY@gnu.org>:
>> >> >>
>> >> >> Follow-up Comment #2, bug #59673 (project pspp):
>> >> >>
>> >> >> I tend toward something close to #2, in which PSPP disables building
>> >> >> the
>> >> >> manual if cross-compiling. For a cross-compile, the builder would
>> >> >> build
>> >> >> twice: once natively, and run "make install-docs", and once cross, and
>> >> >> run
>> >> >> "make install" (which would omit the manual).
>> >> >>
>> >> >> I still don't understand why for the w32 case one doesn't use wine to
>> >> >> run the
>> >> >> cross builds. It works OK for me, and then there's no changes needed.
>> >> >>
>> >> >> _______________________________________________________
>> >> >>
>> >> >> Reply to this item at:
>> >> >>
>> >> >> <https://savannah.gnu.org/bugs/?59673>
>> >> >>
>> >> >> _______________________________________________
>> >> >> Message sent via Savannah
>> >> >> https://savannah.gnu.org/
>> >> >>
>> >> > _______________________________________________
>> >> > Bug-gnu-pspp mailing list
>> >> > Bug-gnu-pspp@gnu.org
>> >> > https://lists.gnu.org/mailman/listinfo/bug-gnu-pspp
- PSPP-BUG: [bug #59673] cross compilation is not possible, Harry Thijssen, 2020/12/13
- PSPP-BUG: [bug #59673] cross compilation is not possible, Friedrich Beckmann, 2020/12/13
- PSPP-BUG: [bug #59673] cross compilation is not possible, Ben Pfaff, 2020/12/13
- PSPP-BUG: [bug #59673] cross compilation is not possible, Friedrich Beckmann, 2020/12/14
- PSPP-BUG: [bug #59673] cross compilation is not possible, Ben Pfaff, 2020/12/14
- PSPP-BUG: [bug #59673] cross compilation is not possible, John Darrington, 2020/12/14
- PSPP-BUG: [bug #59673] cross compilation is not possible, Harry Thijssen, 2020/12/15
- PSPP-BUG: [bug #59673] cross compilation is not possible, John Darrington, 2020/12/15