On Sun, Jun 12, 2016 at 12:04:25AM +0100, Ken Moffat wrote:
> Is there any straightforward way to prevent it adding -O3 (apart
> from changing every entry in the configure files) ?
> 
> And is there any easy way to debug the Python stuff itself ?
> I've never managed to navigate Python dependencies, but if Python
> itself is not stripped then there ought to be a way to at least get
> some details about where items 4 to 7 in the bt are ?
> 
Well, I was going to change all the -O3 in python's configure files
to -O2, but just above the first was a test which if met would set it
to -O0 : turns out tere is a --with-pydebug configure switch.

After rebuilding python with that, and unsetting CFLAGS before the
configure, I now got:

root@plexi /home/ken #python2-config --cflags
-I/usr/include/python2.7 -I/usr/include/python2.7
-fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes
[29729 refs]

which seemed a bit odd (the last line, and the initial -g -O2), but
rather more hopeful.

Unfortunately, that breaks attempting to build firefox-47 :

Traceback (most recent call last):
  File "./config.status", line 1068, in <module>
    config_status(**args)
  File
"/scratch/working/firefox-47.0/python/mozbuild/mozbuild/config_status.py",
line 162, in config_status
    definitions = list(definitions)
  File
"/scratch/working/firefox-47.0/python/mozbuild/mozbuild/frontend/emitter.py",
line 164, in emit
    for out in output:
  File
"/scratch/working/firefox-47.0/python/mozbuild/mozbuild/frontend/reader.py",
line 1066, in read_mozbuild
    raise bre
mozbuild.frontend.reader.BuildReaderError: 
==============================
ERROR PROCESSING MOZBUILD FILE
==============================

The error occurred while processing the following file:

    /scratch/working/firefox-47.0/media/libyuv/moz.build

The error appears to be part of the mozbuild.frontend.reader Python
module itself! It is possible you have stumbled across a legitimate
bug.

 - more traceback, ending  (oldest)

  File
"/scratch/working/firefox-47.0/media/webrtc/trunk/tools/gyp/pylib/gyp/input.py",
line 881, in ExpandVariables
    (contents, p.returncode))
GypError: Call to
'/scratch/working/firefox-47.0/firefox-build-dir/_virtualenv/bin/python
./build/dir_exists.py
./third_party/platformsdk_win7/files/redist/x86' returned exit
status 0. while trying to load
/scratch/working/firefox-47.0/media/libyuv/libyuv.gyp

[173252 refs]
[34394 refs]
*** Fix above errors and then restart with\
               "make -f client.mk build"

Note the win7 directory.  I assume that the pythonic stuff is not
going to work with -O0, so I'll have to restore how python was.
Meanwhile, the existing firefox is still running (seems reasonably ok
on non-videos, and often ok on those too), but I can no longer attach
gdb to it - it advises relinking which is fair enough (i.e. python).

ĸen
-- 
I had to walk fifteen miles to school, barefoot in the snow.  Uphill both ways.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to