Hello!
Here are the steps needed to setup a MinGW on a Red Hat Linux like rpm based system (Fedora Core, Mandrake Linux, ... should probably work even on a SuSE Linux)
* Download the mingw-binutils and mingw-gcc srpm's from http://ftp.redhat.com/pub/contrib/libc6/SRPMS/ * Download the mingw-3.0-1.src.rpm srpm from http://ftp.redhat.com/pub/contrib/libc6/noarch/SRPMS/ * Build the mingw and mingw-binutils rpm's (rpmbuild --rebuild $SRPM) and install them. * After the above step you can build the mingw-gcc rpm too. Install it. * That's almost everything: you need this patch for wine's configure to make it find your mingw binaries. * For instructions how to build the Wine tests for Windows see the Wine Documentation. You may want to try your local Red Hat mirror for the above srpm's.
This info can be found also on http://people.redhat.com/mstefani/wine/
Hope this helps bye michael
Just a side note, if we are at the subject. One can download the full package of "MinGW Developer Studio" (http://www.parinya.ca) It comes complete with a compiled tool chain. The Installer runs flawlessly under wine. And so is the Dev-Studio and the compiler. (1:0) for wine. The only thing that does not work is MinGW-gdb. One day I intend to check this code out and fix this area on wine.
Michael Stefaniuc wrote:
Hello!
Here are the steps needed to setup a MinGW on a Red Hat Linux like rpm based system (Fedora Core, Mandrake Linux, ... should probably work even on a SuSE Linux)
- Download the mingw-binutils and mingw-gcc srpm's from http://ftp.redhat.com/pub/contrib/libc6/SRPMS/
- Download the mingw-3.0-1.src.rpm srpm from http://ftp.redhat.com/pub/contrib/libc6/noarch/SRPMS/
- Build the mingw and mingw-binutils rpm's (rpmbuild --rebuild $SRPM) and install them.
- After the above step you can build the mingw-gcc rpm too. Install it.
- That's almost everything: you need this patch for wine's configure to make it find your mingw binaries.
- For instructions how to build the Wine tests for Windows see the Wine Documentation.
You may want to try your local Red Hat mirror for the above srpm's.
This info can be found also on http://people.redhat.com/mstefani/wine/
Hope this helps bye michael
Michael Stefaniuc mstefani@redhat.de writes:
Here are the steps needed to setup a MinGW on a Red Hat Linux like rpm based system (Fedora Core, Mandrake Linux, ... should probably work even on a SuSE Linux)
And here are the steps needed to setup MinGW on Debian Woody (stable) (hope I remember correctly and you have unstable in sources.list):
# apt-get install mingw32 mingw32-runtime/unstable
Feri. ;) Merry Christmas!
On December 22, 2003 05:37 pm, Michael Stefaniuc wrote:
* Build the mingw and mingw-binutils rpm's (rpmbuild --rebuild $SRPM) and install them.
mingw-binutils builds and installs no problem (I'm running RH9), but mingw fails building at this stage, like so:
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/mingw-3.0 0 blocks find: /var/tmp/mingw-3.0-1-buildroot/usr/lib/debug: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-static-archive strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stTpXuAW/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stjCc8Q1/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stGnVJ3r/gmon.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stbPILFr/_libm_dummy.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/sts3afYa/CRTglob.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/st2KP6Vc/fwide.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/st1n49AX/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stZVDYaX/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stKecJA5/dt.o: Invalid operation ...[more like these]... strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stB4vLfp/dt.o: Invalid operation error: Bad exit status from /var/tmp/rpm-tmp.47410 (%install)
RPM build errors: user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root Bad exit status from /var/tmp/rpm-tmp.47410 (%install)
Any idea what's going wrong?
Hi!
Are you building the rpm's as root? I never do that.
On Mon, Jan 05, 2004 at 10:05:37AM -0500, Dimitrie O. Paun wrote:
On December 22, 2003 05:37 pm, Michael Stefaniuc wrote:
* Build the mingw and mingw-binutils rpm's (rpmbuild --rebuild $SRPM) and install them.
mingw-binutils builds and installs no problem (I'm running RH9), but mingw fails building at this stage, like so:
- /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/mingw-3.0
0 blocks find: /var/tmp/mingw-3.0-1-buildroot/usr/lib/debug: No such file or directory
- /usr/lib/rpm/brp-compress
- /usr/lib/rpm/brp-strip
- /usr/lib/rpm/brp-strip-static-archive
I get this: find: /scr/rpm/INSTALL/mingw-3.0-1-buildroot/usr/lib/debug: No such file or directory + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip /bin/true + /usr/lib/rpm/redhat/brp-strip-static-archive /bin/true + /usr/lib/rpm/redhat/brp-strip-comment-note /bin/true /usr/bin/objdump Processing files: mingw-3.0-1
Do you have something in your .rpmmacros and/or .rpmrc that messes with brp-strip? Cause the spec file has this: # This keeps brp-strip from fucking up our nonnative binaries %define __strip /bin/true
which works for me.
strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stTpXuAW/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stjCc8Q1/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stGnVJ3r/gmon.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stbPILFr/_libm_dummy.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/sts3afYa/CRTglob.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/st2KP6Vc/fwide.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/st1n49AX/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stZVDYaX/dt.o: Invalid operation strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stKecJA5/dt.o: Invalid operation ...[more like these]... strip: /var/tmp/mingw-3.0-1-buildroot/usr/mingw/lib/stB4vLfp/dt.o: Invalid operation error: Bad exit status from /var/tmp/rpm-tmp.47410 (%install)
This is the error.
RPM build errors: user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root user hpa does not exist - using root group eng does not exist - using root
This should be only warnings and they are comming from the installation of the srpm (check with rpm -ivh mingw-3.0-1.src.rpm) and are harmless.
Bad exit status from /var/tmp/rpm-tmp.47410 (%install)
bye michael
On January 5, 2004 10:33 am, Michael Stefaniuc wrote:
Hi!
Are you building the rpm's as root? I never do that.
Well, I don't do too much rpm building, and I haven't changed permissions on /usr/src/redhat:
[dimi@dimi wine]$ rpmbuild --rebuild mingw-3.0-1.src.rpm Installing mingw-3.0-1.src.rpm error: cannot write to %sourcedir /usr/src/redhat/SOURCES error: mingw-3.0-1.src.rpm cannot be installed
Do you have something in your .rpmmacros and/or .rpmrc that messes with brp-strip? Cause the spec file has this: # This keeps brp-strip from fucking up our nonnative binaries %define __strip /bin/true
which works for me.
I don't even have a .rpmmacros or .rpmrc file: [root@dimi root]# ls /root/.rpm* ls: /root/.rpm*: No such file or directory [root@dimi root]# ls ~dimi/.rpm* ls: /home/dimi/.rpm*: No such file or directory
It's a very standard RH9 installation, I don't usually change stuff (I just hate configuring things :)).
On Mon, Jan 05, 2004 at 10:56:20AM -0500, Dimitrie O. Paun wrote:
On January 5, 2004 10:33 am, Michael Stefaniuc wrote:
Are you building the rpm's as root? I never do that.
Well, I don't do too much rpm building, and I haven't changed permissions on /usr/src/redhat:
Here is my .rpmmacros file to be able to build rpms as normal user. You need to adapt the paths: %_topdir /home/mstefani/rpm %_tmppath /home/mstefani/rpm/INSTALL
You need also to setup the %_topdir directory. Do following as user you want to build the rpms: mkdir -p $_topdir $_tmppath mkdir $_topdir/{BUILD,RPMS,SOURCES,SPECS,SRPMS} mkdir $_topdir/RPMS/{i386,i486,i586,i686,noarch,athlon}
That should be all.
[dimi@dimi wine]$ rpmbuild --rebuild mingw-3.0-1.src.rpm Installing mingw-3.0-1.src.rpm error: cannot write to %sourcedir /usr/src/redhat/SOURCES error: mingw-3.0-1.src.rpm cannot be installed
Do you have something in your .rpmmacros and/or .rpmrc that messes with brp-strip? Cause the spec file has this: # This keeps brp-strip from fucking up our nonnative binaries %define __strip /bin/true
which works for me.
I don't even have a .rpmmacros or .rpmrc file:
hmm ... strange. My .rpmmacros is no more than what i pasted above and my .rpmrc has only directives to build and optimize every package for athlon. If you can't build mingw as user too i can put the rpm (compiled for i386 or i686, i don't mind) on my people.redhat.com page.
[root@dimi root]# ls /root/.rpm* ls: /root/.rpm*: No such file or directory [root@dimi root]# ls ~dimi/.rpm* ls: /home/dimi/.rpm*: No such file or directory
It's a very standard RH9 installation, I don't usually change stuff (I just hate configuring things :)).
I hope you at least upgrade the box to the latest erratas ;)
bye michael
On Wed, 7 Jan 2004, Michael Stefaniuc wrote:
Here is my .rpmmacros file to be able to build rpms as normal user. You need to adapt the paths: %_topdir /home/mstefani/rpm %_tmppath /home/mstefani/rpm/INSTALL
Thanks!
You need also to setup the %_topdir directory. Do following as user you want to build the rpms: mkdir -p $_topdir $_tmppath mkdir $_topdir/{BUILD,RPMS,SOURCES,SPECS,SRPMS} mkdir $_topdir/RPMS/{i386,i486,i586,i686,noarch,athlon}
That should be all.
Done, works like a charm, but I keep getting the same failure.
hmm ... strange. My .rpmmacros is no more than what i pasted above and my .rpmrc has only directives to build and optimize every package for athlon. If you can't build mingw as user too i can put the rpm (compiled for i386 or i686, i don't mind) on my people.redhat.com page.
Yes, I'll take you up on the offer, for the mingw-3.0-1.src.rpm package, if you can.
I hope you at least upgrade the box to the latest erratas ;)
Hey, I'm not _that_ lazy! :)
On Wed, Jan 07, 2004 at 06:23:13PM -0500, Dimitrie O. Paun wrote:
On Wed, 7 Jan 2004, Michael Stefaniuc wrote:
Here is my .rpmmacros file to be able to build rpms as normal user. You need to adapt the paths: %_topdir /home/mstefani/rpm %_tmppath /home/mstefani/rpm/INSTALL
Thanks!
You need also to setup the %_topdir directory. Do following as user you want to build the rpms: mkdir -p $_topdir $_tmppath mkdir $_topdir/{BUILD,RPMS,SOURCES,SPECS,SRPMS} mkdir $_topdir/RPMS/{i386,i486,i586,i686,noarch,athlon}
That should be all.
Done, works like a charm, but I keep getting the same failure.
Did you upgraded your box to RHL 9 or have you done a fresh install? Mine is a fresh install. The only thing i can imagine is that you have something different in /usr/lib/rpm/. You can check that with: (for i in /usr/lib/rpm/*; do rpm -qf $i; done) | sort | uniq I get following output: redhat-rpm-config-8.0.21-1 rpm-4.2-0.69 rpm-build-4.2-0.69 rpm-devel-4.2-0.69 By appending a " | xargs rpm -V" to the above command you can check if files from the above rpms are unmodified. No output is good (that's what i'm getting).
If you can't build mingw as user too i can put the rpm (compiled for i386 or i686, i don't mind) on my people.redhat.com page.
Yes, I'll take you up on the offer, for the mingw-3.0-1.src.rpm package, if you can.
ftp://people.redhat.com/mstefani/mingw-3.0-1.noarch.rpm MD5SUM: 6298f5cb4e8a1cac2701273db233dcfb
bye michael
On January 7, 2004 08:05 pm, Michael Stefaniuc wrote:
The only thing i can imagine is that you have something different in /usr/lib/rpm/. You can check that with: (for i in /usr/lib/rpm/*; do rpm -qf $i; done) | sort | uniq I get following output: redhat-rpm-config-8.0.21-1 rpm-4.2-0.69 rpm-build-4.2-0.69 rpm-devel-4.2-0.69
I'm getting this:
[dimi@dimi lostwages]$ (for i in /usr/lib/rpm/*; do rpm -qf $i; done) | sort | uniq file /usr/lib/rpm/athlon-redhat-linux is not owned by any package file /usr/lib/rpm/i386-redhat-linux is not owned by any package file /usr/lib/rpm/i486-redhat-linux is not owned by any package file /usr/lib/rpm/i586-redhat-linux is not owned by any package file /usr/lib/rpm/i686-redhat-linux is not owned by any package rpm-4.2-0.69 rpm-build-4.2-0.69 rpm-devel-4.2-0.69
By appending a " | xargs rpm -V" to the above command you can check if files from the above rpms are unmodified. No output is good (that's what i'm getting).
I get this:
....L... /usr/lib/rpm/athlon-linux ....L... /usr/lib/rpm/i386-linux S.5..... /usr/lib/rpm/i386-linux/macros ....L... /usr/lib/rpm/i486-linux ....L... /usr/lib/rpm/i586-linux ....L... /usr/lib/rpm/i686-linux ....L... /usr/lib/rpm/noarch-linux
Am Montag, 22. Dezember 2003 23:37 schrieb Michael Stefaniuc:
Hello!
Here are the steps needed to setup a MinGW on a Red Hat Linux like rpm based system (Fedora Core, Mandrake Linux, ... should probably work even on a SuSE Linux)
Hello,
just for the record. The rpm mingw-binutils-2.13.90.20030111.1-2.src.rpm does not build on SuSE 9.0 . The problem for me was that the file that are installed inside the LC_MESSAGES directoies will not be installed into the change-root environment. They are installed into the normal environemnt.
installing fr.gmo as /usr/mingw/share/locale/fr/LC_MESSAGES/bfd.mo installing tr.gmo as /usr/mingw/share/locale/tr/LC_MESSAGES/bfd.mo installing ja.gmo as /usr/mingw/share/locale/ja/LC_MESSAGES/bfd.mo [snip]
when the binary rpm is build these file are missing in the change-root environment and the build fails
I call /usr/sbin/Check... + /usr/sbin/Check + /usr/lib/rpm/brp-compress Processing files: mingw-binutils-2.13.90.20030111.1-2 error: File not found: /var/tmp/mingw-binutils-2.13.90.20030111.1-2-buildroot/ usr/mingw/share
i got the rpm build by copying the files into the change-root environment during building the rpm.
Bye Stefan