http://bugs.winehq.org/show_bug.cgi?id=15577
Summary: compilation syntax error Product: Wine Version: 1.1.6 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: critical Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: trog24@comcast.net
When trying to build Wine-1.1.6 (downloaded 10Oct08), I get the following compilation error after entering the make command using gcc-4.0.1:
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_UNICODE_API="" -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -D__powerpc__ -o port.o port.c {standard input}:125:Parameter syntax error (parameter 1) {standard input}:126:Parameter syntax error (parameter 1) {standard input}:127:Parameter syntax error (parameter 1) {standard input}:128:Parameter syntax error (parameter 1) {standard input}:129:Parameter syntax error (parameter 2) {standard input}:130:Parameter syntax error (parameter 1) {standard input}:131:Parameter syntax error (parameter 1) {standard input}:132:Parameter syntax error (parameter 1) {standard input}:133:Parameter syntax error (parameter 1) {standard input}:134:Parameter syntax error (parameter 1) {standard input}:136:Parameter syntax error (parameter 1) {standard input}:137:Parameter syntax error (parameter 1) {standard input}:138:Parameter syntax error (parameter 2) make[2]: *** [port.o] Error 1 make[2]: Leaving directory `/Users/frank/Desktop/wine-1.1.6/libs/wine' make[1]: *** [wine] Error 2 make[1]: Leaving directory `/Users/frank/Desktop/wine-1.1.6/libs' make: *** [libs] Error 2
I ran ./configure and make depend commands successfully. The error is continuously repeatable.
The platform is a 2001 QuickSilver (upgraded to a dual 1.73 Ghz MPC-7448 from a dual 800 MHz MPC-7450) running MacOS 10.4.11 with 1.5 GB memory.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #1 from Jeff Zaroyko jeffz@jeffz.name 2008-10-11 02:30:02 --- (In reply to comment #0)
When trying to build Wine-1.1.6 (downloaded 10Oct08), I get the following compilation error after entering the make command using gcc-4.0.1:
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_UNICODE_API="" -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -D__powerpc__ -o port.o port.c
-D__powerpc__? Wine is for x86 only. See the FAQ:
http://wiki.winehq.org/FAQ#head-5804ec2bb090feaf81f572993444efd8ec2a8569
5.2. Can I use Wine on an older Mac without an Intel chip?
No, not even in Linux. Older Macs used PowerPC processors, which are incompatible with code compiled for x86 (Intel and AMD) processors unless the code is run under CPU emulation. Wine Is Not a (CPU) Emulator, nor does it include one.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #2 from Frank J R Hanstick trog24@comcast.net 2008-10-11 03:28:44 --- This is really strange since in port.c, you have PPC assembler code (yes, I have been working with computers long enough to recognize the difference between Intel - including it derivatives - and PowerPC along with another other kinds of processor you may bring up assembly code) which will not run under Intel unless there is a PPC emulator.
Code from Port.c: #elif defined(__powerpc__) && defined(__APPLE__) __ASM_GLOBAL_FUNC( wine_switch_to_stack, "mtctr r3\n\t" /* func -> ctr */ "mr r3,r4\n\t" /* args -> function param 1 (r3) */ "mr r1,r5\n\t" /* stack */ "subi r1,r1,0x100\n\t" /* adjust stack pointer */ "bctrl\n" /* call ctr */ "1:\tb 1b") /* loop */ #elif defined(__powerpc__) && defined(__GNUC__) __ASM_GLOBAL_FUNC( wine_switch_to_stack, "mtctr 3\n\t" /* func -> ctr */ "mr 3,4\n\t" /* args -> function param 1 (r3) */ "mr 1,5\n\t" /* stack */ "subi 1, 1, 16\n\t" /* allocate space for the callee */ "li 0, 0\n\t" /* load zero */ "stw 0, 0(1)\n\t" /* create a bottom stack frame */ "bctrl\n\t" /* call ctr */ "1:\tb 1b") /* loop */
I am well aware that code compiled for one computer will not run on another computer with a different processor type which is why the compilation process from a common higher level code in the first place.
I am also aware that Wine is not a emulator; but, it can run on top of an emulator such as qemu if I can just qemu to recognize a Wine build.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #3 from Austin English austinenglish@gmail.com 2008-10-11 04:18:39 --- (In reply to comment #1)
(In reply to comment #0)
When trying to build Wine-1.1.6 (downloaded 10Oct08), I get the following compilation error after entering the make command using gcc-4.0.1:
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_UNICODE_API="" -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -D__powerpc__ -o port.o port.c
-D__powerpc__? Wine is for x86 only. See the FAQ:
http://wiki.winehq.org/FAQ#head-5804ec2bb090feaf81f572993444efd8ec2a8569
5.2. Can I use Wine on an older Mac without an Intel chip?
No, not even in Linux. Older Macs used PowerPC processors, which are incompatible with code compiled for x86 (Intel and AMD) processors unless the code is run under CPU emulation. Wine Is Not a (CPU) Emulator, nor does it include one.
Wine won't run Windows apps, but it *should* compile. It can then be used to run winelib apps.
That said, it's not a high priority/tested often, which is why I'm trying to get a PPC qemu system setup to test these things...
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #4 from Jeff Zaroyko jeffz@jeffz.name 2008-10-11 06:47:06 --- (In reply to comment #3)
(In reply to comment #1)
(In reply to comment #0)
When trying to build Wine-1.1.6 (downloaded 10Oct08), I get the following compilation error after entering the make command using gcc-4.0.1:
Wine won't run Windows apps, but it *should* compile. It can then be used to run winelib apps.
That said, it's not a high priority/tested often, which is why I'm trying to get a PPC qemu system setup to test these things...
Yeah, that's true. Simon Richter had some of the wine conformance tests running on a PPC system in June this year, d3d and dsound atleast.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #5 from Frank J R Hanstick trog24@comcast.net 2008-10-11 06:58:02 --- Getting it to work with qemu is my goal as well. Once I get it to compile then, I may be of some help.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #6 from Vitaliy Margolen vitaliy@kievinfo.com 2008-10-11 12:22:49 --- It will be really helpful if you at least specify what OS and hardware you have.
http://bugs.winehq.org/show_bug.cgi?id=15577
Frank J R Hanstick trog24@comcast.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |trog24@comcast.net
--- Comment #7 from Frank J R Hanstick trog24@comcast.net 2008-10-11 13:12:53 --- I do not know what information you need, so I will give you everything: A Macintosh PowerPC G4 QuickSilver (2001) upgraded to a dual 1.73 GHz MPC-7448 (1 MB L2 cache) from a dual 800 MHz MPC-7450 with Boot ROM Version 4.2.5f1. 1.5 GB RAM, an ATI Radeon 9000 Pro driving a 15" Apple Studio Display, an ATI Radeon 9200 driving a ViewSonic VX1935wm-3 and ViewSonic VE170b, PIONEER DVD-RW DVR-107D, 2 80 GB internal drives, 1 TB external drive (Firewire), 1 200 GB external drive (USB), 1 500 GB external drive (USB), original keyboard and mouse, and a Plantonics headset.
The OS is Mac OS X 10.4.11 (8S165). xFree86-4.6.0 is installed at /usr/X11R6. qemu is installed at /opt/local/bin.
That is the complete listing of the target hardware and some of the installed software.
http://bugs.winehq.org/show_bug.cgi?id=15577
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|other |Mac OS X 10.0 Platform|Other |Macintosh
http://bugs.winehq.org/show_bug.cgi?id=15577
Frank J R Hanstick trog24@comcast.net changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Mac OS X 10.0 |Mac OS X 10.4
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #8 from Austin English austinenglish@gmail.com 2008-10-11 17:38:59 --- gcc --version
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #9 from Austin English austinenglish@gmail.com 2008-10-11 20:04:34 --- Err, make that: $ gcc -v
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #10 from Frank J R Hanstick trog24@comcast.net 2008-10-11 21:32:57 --- gcc-3.3 and gcc-4.0.1, currently set to gcc-4.0.1.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #11 from Austin English austinenglish@gmail.com 2008-10-12 03:00:19 --- (In reply to comment #10)
gcc-3.3 and gcc-4.0.1, currently set to gcc-4.0.1.
No, the gcc build options.
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #12 from Frank J R Hanstick trog24@comcast.net 2008-10-12 10:28:23 --- Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5363)
http://bugs.winehq.org/show_bug.cgi?id=15577
Michael G Hughes mghughes@embarqmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mghughes@embarqmail.com
--- Comment #13 from Michael G Hughes mghughes@embarqmail.com 2009-01-03 21:55:59 --- Observe the differences from the __APPLE__ segment and __GCC__ segment... You need to add the 'r' to the register designations as well as knowing the instruction formats in doing so.
http://bugs.winehq.org/show_bug.cgi?id=15577
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #14 from Austin English austinenglish@gmail.com 2009-01-10 01:42:01 --- FWIW, this doesn't occur in git when using Linux(Ubuntu Intrepid on PPC). Frank, can you retest in git?
austin@ubuntu-ppc:~/wine-git/libs/wine$ gcc -v Using built-in specs. Target: powerpc-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-softfloat --enable-secureplt --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --with-long-double-128 --enable-checking=release --build=powerpc-linux-gnu --host=powerpc-linux-gnu --target=powerpc-linux-gnu Thread model: posix gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
http://bugs.winehq.org/show_bug.cgi?id=15577
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
--- Comment #15 from Austin English austinenglish@gmail.com 2009-07-13 11:38:11 --- Ping.
http://bugs.winehq.org/show_bug.cgi?id=15577
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|Macintosh |ppc32
http://bugs.winehq.org/show_bug.cgi?id=15577
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=15577
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|compilation syntax error |port.c fails to compile on | |powerpc
http://bugs.winehq.org/show_bug.cgi?id=15577
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #16 from Austin English austinenglish@gmail.com 2011-07-06 16:13:26 CDT --- PowerPC Macs are incredibly rare nowadays, and works on Linux PPC, marking abandoned unless someone still has the hardware/can test.
http://bugs.winehq.org/show_bug.cgi?id=15577
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Austin English austinenglish@gmail.com 2011-07-07 16:16:09 CDT --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=15577
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Mac OS X 10.4 |Mac OS X