Closed Bug 659676 Opened 13 years ago Closed 13 years ago

[trunk] Build process is broken while processing creating gfx/ots/src/Makefile - related to bug 562746 ?

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla7

People

(Reporter: fredbezies, Assigned: jrmuizel)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110524 Firefox/7.0a1
Build Identifier: 

Getting this error while trying to build firefox trunk code.

nsIExtendedExpatSink.idl
creating gfx/harfbuzz/src/Makefile
creating gfx/ipc/Makefile
creating gfx/ots/src/Makefile
cat: cairo-dwrite-font.i: Aucun fichier ou dossier de ce type
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.2/base64.py", line 315, in encode
    s = input.read(MAXBINSIZE)
  File "/usr/lib/python3.2/codecs.py", line 300, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte
make[4]: *** [cairo-features.h] Erreur 1
make[3]: *** [export] Erreur 2
make[2]: *** [export] Erreur 2
make[1]: *** [export] Erreur 2
make: *** [depend] Erreur 2

I know that python3 is not supported but this error happens also with python2, using this value in .mozconfig

export PYTHON=python2

Here is my .mozconfig :

#
# See http://www.mozilla.org/build/ for build instructions.
#

export AUTOCONF=autoconf-2.13
export CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fpermissive"
export PYTHON=python2

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-fx
mk_add_options MOZ_MAKE_FLAGS=-j4

# Options for ‘configure’ (same as command-line options).
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-crashreporter
ac_add_options --with-ccache
ac_add_options --disable-installer
ac_add_options --disable-warnings-as-errors

Reproducible: Always

Steps to Reproduce:
1. Grab recent trunk code
2. make -f client.mk depend
3. wait a little

Actual Results:  
Error in build process, see description.

Expected Results:  
build process going on.

Really recent problem. I can get source code to get build a few hours ago. Could it be a Cairo 1.10 landing related bug, bug #562746
Summary: Build process is broken while processing creating gfx/ots/src/Makefile → [trunk] Build process is broken while processing creating gfx/ots/src/Makefile - related to bug 562746 ?
Looks like bug #526476 is related to this bug.

http://hg.mozilla.org/mozilla-central/diff/acb4e51fa8a6/gfx/cairo/cairo/src/Makefile.in

1.120 +	cat cairo-dwrite-font.i | gzip | python -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)"
Yes, sorry that stuff should be taken out.
I could work around it renaming python -> python2. Anyway, if this bug wasn't mean to be landed...
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/ecbe9bb3433f
Assignee: nobody → jmuizelaar
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Thanks for the quick fix !
I had to backout this bug because I needed to backout the Cairo update itself.  I will reland this if we decide to reland the Cairo update patch as it is.

http://hg.mozilla.org/mozilla-central/rev/08af2892e17c
Blocks: 562746
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Relanded: http://hg.mozilla.org/mozilla-central/rev/04e8d0b481bc
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: