Problems compiling Python 2.3.3 on Solaris 10 with gcc 3.4.1

Hello, I am having problems compiling Python 2.3.3 on Solaris 10 X86 using gcc 3.4.1. The error message below is generated. I would be grateful for any advice. With friendly regards, Johan Carlstedt # make gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/acceler.o Parser/acceler.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/grammar1.o Parser/grammar1.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/listnode.o Parser/listnode.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/node.o Parser/node.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/parser.o Parser/parser.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/parsetok.o Parser/parsetok.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/bitset.o Parser/bitset.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/metagrammar.o Parser/metagrammar.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/firstsets.o Parser/firstsets.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/grammar.o Parser/grammar.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/pgen.o Parser/pgen.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/myreadline.o Parser/myreadline.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Parser/tokenizer.o Parser/tokenizer.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/abstract.o Objects/abstract.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/boolobject.o Objects/boolobject.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/bufferobject.o Objects/bufferobject.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/cellobject.o Objects/cellobject.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/classobject.o Objects/classobject.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/cobject.o Objects/cobject.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. - I./Include -DPy_BUILD_CORE -o Objects/complexobject.o Objects/complexobject.c Objects/complexobject.c: In function `complex_pow': Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus *** Error code 1 make: Fatal error: Command failed for target `Objects/complexobject.o' # gcc --version gcc (GCC) 3.4.1 Copyright (C) 2004 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. # uname -a SunOS sunbuild1 5.10 s10_71 i86pc i386 i86pc

On Thu, 2004-12-16 at 12:30 +0000, Johan Carlstedt wrote:
Hello,
I am having problems compiling Python 2.3.3 on Solaris 10 X86 using gcc 3.4.1. The error message below is generated.
[SNIP]
Objects/complexobject.c Objects/complexobject.c: In function `complex_pow': Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus
Solaris 10 doesn't correctly define HUGE_VAL (I think it's called HUGE in their header files) - so you may want to change the #define in Include/pyport.h from #define Py_HUGE_VAL HUGE_VAL to #define Py_HUGE_VAL HUGE -- Eirik Mikkelsen <eirik.mikkelsen@unix.net>

If this still occurs with Python 2.3.4 or 2.4, please file a bug so it can be fixed (python-dev isn't a good place to remember fixes). On Thu, 16 Dec 2004 14:03:55 +0100, Eirik Mikkelsen <eirik.mikkelsen@unix.net> wrote:
On Thu, 2004-12-16 at 12:30 +0000, Johan Carlstedt wrote:
Hello,
I am having problems compiling Python 2.3.3 on Solaris 10 X86 using gcc 3.4.1. The error message below is generated.
[SNIP]
Objects/complexobject.c Objects/complexobject.c: In function `complex_pow': Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus
Solaris 10 doesn't correctly define HUGE_VAL (I think it's called HUGE in their header files) - so you may want to change the #define in Include/pyport.h from
#define Py_HUGE_VAL HUGE_VAL
to
#define Py_HUGE_VAL HUGE
-- Eirik Mikkelsen <eirik.mikkelsen@unix.net>
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (3)
-
Eirik Mikkelsen
-
Guido van Rossum
-
Johan Carlstedt