2.4.2.4 fails to compile on ppc

Hi,

I have someone trying to compile 2.4.2.4 on a ppc with Gentoo Linux
and Python 2.3.2.

Their CFLAGS are "-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"

This is what they get:

copying wx/tools/XRCed/tools.py -> build-gtk2/lib.linux-ppc-2.2/wx/tools/XRCed
running build_ext
Traceback (most recent call last):
  File "setup.py", line 1229, in ?
    data_files = DATA_FILES,
  File "distutils/core.py", line 149, in setup
    dist.run_commands()
  File "distutils/dist.py", line 898, in run_commands
    self.run_command(cmd)
  File "distutils/dist.py", line 918, in run_command
    cmd_obj.run()
  File "distutils/command/build.py", line 107, in run
    self.run_command(cmd_name)
  File "distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "distutils/dist.py", line 918, in run_command
    cmd_obj.run()
  File "distutils/command/build_ext.py", line 244, in run
    customize_compiler(self.compiler)
  File "distutils/sysconfig.py", line 165, in customize_compiler
    opt = opt + ' ' + os.environ['CFLAGS']
TypeError: unsupported operand types for +: 'NoneType' and 'str'

Thanks

Rob Cakebread wrote:

Hi,

I have someone trying to compile 2.4.2.4 on a ppc with Gentoo Linux
and Python 2.3.2.

Their CFLAGS are "-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"

This is what they get:

copying wx/tools/XRCed/tools.py -> build-gtk2/lib.linux-ppc-2.2/wx/tools/XRCed
running build_ext
Traceback (most recent call last):
  File "setup.py", line 1229, in ?
    data_files = DATA_FILES,
  File "distutils/core.py", line 149, in setup
    dist.run_commands()
  File "distutils/dist.py", line 898, in run_commands
    self.run_command(cmd)
  File "distutils/dist.py", line 918, in run_command
    cmd_obj.run()
  File "distutils/command/build.py", line 107, in run
    self.run_command(cmd_name)
  File "distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "distutils/dist.py", line 918, in run_command
    cmd_obj.run()
  File "distutils/command/build_ext.py", line 244, in run
    customize_compiler(self.compiler)
  File "distutils/sysconfig.py", line 165, in customize_compiler
    opt = opt + ' ' + os.environ['CFLAGS']
TypeError: unsupported operand types for +: 'NoneType' and 'str'

Look in /usr/lib/python2.3/config/Makefile and see if there is a value set for OPT. (Distutils parses this file to get the compile settings that Python was built with.)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Rob Cakebread wrote:
>Hi,
>
>I have someone trying to compile 2.4.2.4 on a ppc with Gentoo Linux
>and Python 2.3.2.
>
>Their CFLAGS are "-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
>
>This is what they get:
>
>copying wx/tools/XRCed/tools.py ->
>build-gtk2/lib.linux-ppc-2.2/wx/tools/XRCed
>running build_ext
>Traceback (most recent call last):
> File "setup.py", line 1229, in ?
> data_files = DATA_FILES,
> File "distutils/core.py", line 149, in setup
> dist.run_commands()
> File "distutils/dist.py", line 898, in run_commands
> self.run_command(cmd)
> File "distutils/dist.py", line 918, in run_command
> cmd_obj.run()
> File "distutils/command/build.py", line 107, in run
> self.run_command(cmd_name)
> File "distutils/cmd.py", line 333, in run_command
> self.distribution.run_command(command)
> File "distutils/dist.py", line 918, in run_command
> cmd_obj.run()
> File "distutils/command/build_ext.py", line 244, in run
> customize_compiler(self.compiler)
> File "distutils/sysconfig.py", line 165, in customize_compiler
> opt = opt + ' ' + os.environ['CFLAGS']
>TypeError: unsupported operand types for +: 'NoneType' and 'str'
>

Look in /usr/lib/python2.3/config/Makefile and see if there is a value
set for OPT. (Distutils parses this file to get the compile settings
that Python was built with.)

His Makefile is empty. I'll try to figure out why and go from there.

Thanks for the quick and accurate reply, Robin.

···

On Tue, Oct 21, 2003 at 10:17:33AM -0700, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org