wine 1.1.15: winebuild failed with status 32512

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
nucleo
Level 2
Level 2
Posts: 31
Joined: Sat Feb 14, 2009 6:22 am

wine 1.1.15: winebuild failed with status 32512

Post by nucleo »

When I try to build wine 1.1.15 in Fedora 8 I get this error
sh: i686-redhat-linux-gnu-as: command not found
winebuild: i686-redhat-linux-gnu-as failed with status 32512
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [acledit.dll.so] Error 2
make[2]: Leaving directory `/home/user/rpmbuild/BUILD/wine-1.1.15/dlls/acledit'
make[1]: *** [acledit] Error 2
../../tools/winegcc/winegcc -b i686-redhat-linux-gnu -B../../tools/winebuild -s hared ./activeds.spec activeds_main.o -o activeds.dll.so -lkernel32 . ./../libs/port/libwine_port.a
sh: i686-redhat-linux-gnu-as: command not found
winebuild: i686-redhat-linux-gnu-as failed with status 32512
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [activeds.dll.so] Error 2
make[2]: Leaving directory `/home/user/rpmbuild/BUILD/wine-1.1.15/dlls/activeds'
make[1]: *** [activeds] Error 2
make[1]: Leaving directory `/home/user/rpmbuild/BUILD/wine-1.1.15/dlls'
make: *** [dlls] Error 2
All previous wine versions are builds without any problems.
What can I do to build wine 1.1.15 in Fedora 8?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: wine 1.1.15: winebuild failed with status 32512

Post by vitamin »

nucleo wrote:When I try to build wine 1.1.15 in Fedora 8 I get this error

Code: Select all

sh: i686-redhat-linux-gnu-as: command not found
What your CFLAGS and ./configure options look like?
nucleo
Level 2
Level 2
Posts: 31
Joined: Sat Feb 14, 2009 6:22 am

Post by nucleo »

Some of rpmbuild output:
$ rpmbuild -bb wine.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3590
+ umask 022
+ cd /home/user/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/user/rpmbuild/BUILD
+ rm -rf wine-1.1.15
+ /usr/bin/bzip2 -dc /home/user/rpmbuild/SOURCES/wine-1.1.15.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd wine-1.1.15
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (wine-rpath.patch):'
Patch #1 (wine-rpath.patch):
+ patch -p0 -s
+ echo 'Patch #2 (wine-desktop-mime.patch):'
Patch #2 (wine-desktop-mime.patch):
+ patch -p0 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.94571
+ umask 022
+ cd /home/user/rpmbuild/BUILD
+ cd wine-1.1.15
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack
-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchron
ous-unwind-tables'
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protec
tor --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unw
ind-tables'
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protec
tor --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unw
ind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-prot
ector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-u
nwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protec
tor --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unw
ind-tables'
+ export FFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./tools/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /bin/rm -f ./tools/config.guess
++ basename ./tools/config.guess
+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./tools/config.guess
`/usr/lib/rpm/redhat/config.guess' -> `./tools/config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./tools/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./tools/config.sub
++ basename ./tools/config.sub
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./tools/config.sub
`/usr/lib/rpm/redhat/config.sub' -> `./tools/config.sub'
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --targe
t=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bin
dir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includ
edir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/v
ar --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info -
-sysconfdir=/etc/wine --disable-static --x-includes=/usr/include --x-libraries=/
usr/lib
configure: WARNING: unrecognized options: --disable-static
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking whether make sets $(MAKE)... yes
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for i686-redhat-linux-gnu-g++... no
checking for i686-redhat-linux-gnu-c++... no
checking for i686-redhat-linux-gnu-gpp... no
checking for i686-redhat-linux-gnu-aCC... no
checking for i686-redhat-linux-gnu-CC... no
checking for i686-redhat-linux-gnu-cxx... no
checking for i686-redhat-linux-gnu-cc++... no
checking for i686-redhat-linux-gnu-cl.exe... no
checking for i686-redhat-linux-gnu-FCC... no
checking for i686-redhat-linux-gnu-KCC... no
checking for i686-redhat-linux-gnu-RCC... no
checking for i686-redhat-linux-gnu-xlC_r... no
checking for i686-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for i686-redhat-linux-gnu-cpp... no
checking for cpp... cpp
checking for the directory containing the Wine tools... $(TOPOBJDIR)
checking for flex... flex
checking for bison... bison
checking for i686-redhat-linux-gnu-gas... no
checking for i686-redhat-linux-gnu-as... no
checking for gas... no
checking for as... as
checking for i686-redhat-linux-gnu-ld... no
checking for i686-redhat-linux-gnu-gld... no
checking for ld... ld
checking for i686-redhat-linux-gnu-nm... no
checking for i686-redhat-linux-gnu-gnm... no
checking for nm... nm
checking for i686-redhat-linux-gnu-ar... no
checking for i686-redhat-linux-gnu-gar... no
checking for ar... ar
checking for i686-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-redhat-linux-gnu-strip... no
checking for strip... strip
checking for i686-redhat-linux-gnu-windres... no
wine-rpath.patch - from previous fedora rpm

Code: Select all

--- configure.orig      2008-11-05 12:25:10.000000000 +0300
+++ configure   2008-11-06 22:22:27.000000000 +0300
@@ -9306,14 +9306,14 @@
 fi


-      as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
-{ $as_echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
-$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
+      as_ac_var=`$as_echo "ac_cv_cflags_-fPIC" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking whether the compiler supports -fPIC" >&5
+$as_echo_n "checking whether the compiler supports -fPIC" >&6; }
 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
-CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
+CFLAGS="$CFLAGS -fPIC"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -9369,8 +9369,8 @@
 $as_echo "$ac_res" >&6; }
 if test `eval 'as_val=${'$as_ac_var'}
                 $as_echo "$as_val"'` = yes; then
-  LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
-                       LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
+  LDRPATH_INSTALL=""
+  LDRPATH_LOCAL=""
 else
   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
 { $as_echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Peter A. Castro

wine 1.1.15: winebuild failed with status 32512

Post by Peter A. Castro »

On Sat, 14 Feb 2009, nucleo wrote:
When I try to build wine 1.1.15 in Fedora 8 I get this error
sh: i686-redhat-linux-gnu-as: command not found
winebuild: i686-redhat-linux-gnu-as failed with status 32512
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [acledit.dll.so] Error 2
make[2]: Leaving directory `/home/user/rpmbuild/BUILD/wine-1.1.15/dlls/acledit'
make[1]: *** [acledit] Error 2
../../tools/winegcc/winegcc -b i686-redhat-linux-gnu -B../../tools/winebuild -s hared ./activeds.spec activeds_main.o -o activeds.dll.so -lkernel32 . ./../libs/port/libwine_port.a
sh: i686-redhat-linux-gnu-as: command not found
winebuild: i686-redhat-linux-gnu-as failed with status 32512
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [activeds.dll.so] Error 2
make[2]: Leaving directory `/home/user/rpmbuild/BUILD/wine-1.1.15/dlls/activeds'
make[1]: *** [activeds] Error 2
make[1]: Leaving directory `/home/user/rpmbuild/BUILD/wine-1.1.15/dlls'
make: *** [dlls] Error 2
All previous wine versions are builds without any problems.
What can I do to build wine 1.1.15 in Fedora 8?
If you look at the messages more closely it says:

sh: i686-redhat-linux-gnu-as: command not found
~~~~~~~~~~~~~~~~~~~~~~~~
If you look earlier in your configure output it probably says it found
the 'as' command to be 'as' instead of 'i686-redhat-linux-gnu-as'
(because 'i686-redhat-linux-gnu-as' doesn't exist).

I've traced this down to tools/winegcc which is constructing various tool
commands with the compiler target names (eg: i686-redhat-linux-gnu + as)
instead of using what configure discovered for those commands (eg: 'as').
It does this based on the '-b i686-redhat-linux-gnu' argument.

This might have some relevency to newer gcc versions which appear to
install a full name set for the target compiler commands. My solution
was simply to create symlinks for what's missing. Eg: for a target name
of "i686-redhat-linux-gnu" do:

% su -
Password:

cd /usr/bin
ln -s as i686-redhat-linux-gnu-as
ln -s ld i686-redhat-linux-gnu-ld
ln -s nm i686-redhat-linux-gnu-nm
ln -s ar i686-redhat-linux-gnu-ar
ln -s ranlib i686-redhat-linux-gnu-ranlib
ln -s strip i686-redhat-linux-gnu-strip
ln -s cpp i686-redhat-linux-gnu-cpp

Hope that helps.

--
Peter A. Castro <[email protected]> or <[email protected]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood
nucleo
Level 2
Level 2
Posts: 31
Joined: Sat Feb 14, 2009 6:22 am

Post by nucleo »

Peter A. Castro wrote:This might have some relevency to newer gcc versions which appear to
install a full name set for the target compiler commands. My solution
was simply to create symlinks for what's missing. Eg: for a target name
of "i686-redhat-linux-gnu" do:

% su -
Password:

cd /usr/bin
ln -s as i686-redhat-linux-gnu-as
ln -s ld i686-redhat-linux-gnu-ld
ln -s nm i686-redhat-linux-gnu-nm
ln -s ar i686-redhat-linux-gnu-ar
ln -s ranlib i686-redhat-linux-gnu-ranlib
ln -s strip i686-redhat-linux-gnu-strip
ln -s cpp i686-redhat-linux-gnu-cpp

Hope that helps.
Thank you, Peter A. Castro.
Symbolic links helps to build wine.

Also it is necessary to make this symbolic link in /usr/bin
ln -s gcc i686-redhat-linux-gnu-gcc
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

nucleo wrote:+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bin
dir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc/wine --disable-static --x-includes=/usr/include --x-libraries=/
usr/lib
Get rid of all this crap. The only option you need is "--prefix=/usr".
nucleo
Level 2
Level 2
Posts: 31
Joined: Sat Feb 14, 2009 6:22 am

Post by nucleo »

vitamin wrote:The only option you need is "--prefix=/usr".
Thank you, vitamin.
This also helps to build wine without symbolic links.

In wine.spec from fedora src.rpm I change this
%configure \
--sysconfdir=%{_sysconfdir}/wine --disable-static \
--x-includes=%{_includedir} --x-libraries=%{_libdir}
to
./configure --prefix=/usr
Built rpm's are identical to rpm's built with symbolic links.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

nucleo wrote:Built rpm's are identical to rpm's built with symbolic links.
Yes, they should be.
Locked