Trying to compile wine under 64 bit SL6
-
- Level 3
- Posts: 98
- Joined: Thu Aug 21, 2014 6:40 pm
Trying to compile wine under 64 bit SL6
Scientific Linux 6.5 64 bit
# ./configure --disable-win64
gives me
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
Using the following reference: http://wiki.winehq.org/WineOn64bit
# yum install --setopt=protected_multilib=false alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake portaudio-devel.i686 openal-soft-devel.i686 audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 libXxf86dga-devel.i686 libXxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel ImageMagick-devel.i686 openal-soft-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc
And I am still getting the error. What did I miss?
Many thanks,
-T
# ./configure --disable-win64
gives me
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
Using the following reference: http://wiki.winehq.org/WineOn64bit
# yum install --setopt=protected_multilib=false alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake portaudio-devel.i686 openal-soft-devel.i686 audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 libXxf86dga-devel.i686 libXxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel ImageMagick-devel.i686 openal-soft-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc
And I am still getting the error. What did I miss?
Many thanks,
-T
Re: Trying to compile wine under 64 bit SL6
Looks like you're missing 32 bit gcc.
-
- Level 3
- Posts: 98
- Joined: Thu Aug 21, 2014 6:40 pm
Re: Trying to compile wine under 64 bit SL6
"gcc -m32" is suppose to fix that, but doesn't. And there are no 32 bit specific "gcc" RPMs.dimesio wrote:Looks like you're missing 32 bit gcc.
Re: Trying to compile wine under 64 bit SL6
Check the config.log to see exactly what ./configure is looking for and where it's looking.
-
- Level 3
- Posts: 98
- Joined: Thu Aug 21, 2014 6:40 pm
Re: Trying to compile wine under 64 bit SL6
I didn't realize config.log was there. Thank you!dimesio wrote:Check the config.log to see exactly what ./configure is looking for and where it's looking.
Code: Select all
configure:4743: checking whether gcc -m32 works
configure:4757: gcc -m32 -o conftest -g -O2 conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Code: Select all
$ yum --enablerepo=* whatprovides */crt1.0
Loaded plugins: priorities, refresh-packagekit, security
3934 packages excluded due to repository priority protections
...
No Matches found
Re: Trying to compile wine under 64 bit SL6
It's part of glibc. If you're sure you have 32 bit glibc installed (double check), search your system for the file. You may need to make a symlink for ./configure to find it.what is crt1.o ?
-
- Level 3
- Posts: 98
- Joined: Thu Aug 21, 2014 6:40 pm
Re: Trying to compile wine under 64 bit SL6
Hmmmm. Got one in "/usr/lib64/crt1.o"dimesio wrote:It's part of glibc. If you're sure you have 32 bit glibc installed (double check), search your system for the file. You may need to make a symlink for ./configure to find it.what is crt1.o ?
$ rpm -qa \*glibc\*
glibc-2.12-1.149.el6.i686
glibc-common-2.12-1.149.el6.x86_64
glibc-headers-2.12-1.149.el6.x86_64
glibc-2.12-1.149.el6.x86_64
glibc-devel-2.12-1.149.el6.x86_64
# find / -iname \*crt1.o\*
/usr/lib64/crt1.o
/usr/lib64/Scrt1.o
/usr/lib64/gcrt1.o
/usr/lib64/Mcrt1.o
/opt/AutoScan/usr/lib/crt1.o
/opt/AutoScan/usr/lib/Scrt1.o
/opt/AutoScan/usr/lib/gcrt1.o
/opt/AutoScan/usr/lib/Mcrt1.o
Re: Trying to compile wine under 64 bit SL6
Looks like you are missing a 32 bit glibc development package.$ rpm -qa \*glibc\*
glibc-2.12-1.149.el6.i686
glibc-common-2.12-1.149.el6.x86_64
glibc-headers-2.12-1.149.el6.x86_64
glibc-2.12-1.149.el6.x86_64
glibc-devel-2.12-1.149.el6.x86_64
-
- Level 3
- Posts: 98
- Joined: Thu Aug 21, 2014 6:40 pm
Re: Trying to compile wine under 64 bit SL6
That did the trick. Thank you!dimesio wrote:Looks like you are missing a 32 bit glibc development package.$ rpm -qa \*glibc\*
glibc-2.12-1.149.el6.i686
glibc-common-2.12-1.149.el6.x86_64
glibc-headers-2.12-1.149.el6.x86_64
glibc-2.12-1.149.el6.x86_64
glibc-devel-2.12-1.149.el6.x86_64
Got another one to figure out:
Code: Select all
configure:10488: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
And Yum struck out:
Code: Select all
#yum --enablerepo=* whatprovides */Xfree86
...
No Matches found
Many thanks,
-T
Re: Trying to compile wine under 64 bit SL6
Search for libX11. You need the development packages (32 and 64 bit).
-
- Level 3
- Posts: 98
- Joined: Thu Aug 21, 2014 6:40 pm
Re: Trying to compile wine under 64 bit SL6
That worked. Thank you!dimesio wrote:Search for libX11. You need the development packages (32 and 64 bit).
I got a "configure" through, but had a bunch more non-critical errors.
Code: Select all
# yum --enablerepo=* install libXrender-devel.i686 mingw32-libxml2 libxslt-devel.i686 gnutls-devel.i686 libjpeg-devel.i686 libpng-devel.i686
Code: Select all
configure: WARNING: libxrender 32-bit development files not found, XRender won't be supported.
configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.
configure: WARNING: libxml2 32-bit development files not found (or too old), XML won't be supported.
configure: WARNING: libxslt 32-bit development files not found, xslt won't be supported.
configure: WARNING: libjpeg 32-bit development files not found, JPEG won't be supported.
configure: WARNING: libpng 32-bit development files not found, PNG won't be supported.
configure: WARNING: No sound system was found. Windows applications will be silent.
configure: Finished. Do 'make' to compile Wine.