Skip to contentSkip to conversation

New: buildroot fails when building "host-libglib2 2.30.2 Building"

Buildroot bugzilla at busybox.net 1 participant 20 messages Jul 13, 2012 – Aug 21, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=5360

Summary: buildroot fails when building "host-libglib2 2.30.2
Building"
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: anton at fit.com.ru
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 4406
--> https://bugs.busybox.net/attachment.cgi?id=4406
configuration file buildroot

Hello,

I have attached the config file that reproduces this bug (basically i think to reproduce this bug what you need to do is try to build the libglib2).

The following final error is given:
SyntaxErrorSyntaxError: : Non-ASCII character '\xd0' in file ../../gio/gdbus-2.0/codegen/gdbus-codegen on line 36, but no encoding declared; see http://www.python.org/peps/pep-0263.html for detailsNon-ASCII character '\xd0' in file ../../gio/gdbus-2.0/codegen/gdbus-codegen on line 36, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Anton

PS
This is a very strange bug.
Honestly i was expecting that such standard libraries are building correctly by now.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #1 from Thomas Petazzoni <[email protected]> 2012-07-13 20:52:55 UTC --- Can you attach the last 100-150 lines of the build log?

What is the version of Python installed on your host machine?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #2 from Thomas Petazzoni <[email protected]> 2012-07-13 22:42:55 UTC --- I have taken your .config, and the build ended succesfully, so I strongly
suspect something on your host that influences the build.

Can you attach the file output/build/libglib-2.30.2/gio/gdbus-2.0/codegen/gdbus-codegen ?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #3 from Shokurov Anton V. <[email protected]> 2012-07-14 08:10:07 UTC --- (In reply to comment #1)

Quoted 3 lines

Can you attach the last 100-150 lines of the build log?

What is the version of Python installed on your host machine?

$ python3.1 --version
Python 3.1.2
$ python --version
Python 2.6.5

What version should it be? How can i pass the correct python version to the build system? Shouldn't you check the python version before doing the build?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #4 from Shokurov Anton V. <[email protected]> 2012-07-14 08:12:38 UTC --- (In reply to comment #2)

Quoted 2 lines

I have taken your .config, and the build ended succesfully, so I strongly suspect something on your host that influences the build.

I also suspect this, but shouldn't the build script check for such things? (like the python version)

Quoted 3 lines

Can you attach the file output/build/libglib-2.30.2/gio/gdbus-2.0/codegen/gdbus-codegen ?

It gets deleted, after the build ends with an error.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #5 from Thomas Petazzoni <[email protected]> 2012-07-14 10:20:26 UTC --- I have an idea. Can you tell me what is the full path to your Buildroot
directory?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #6 from s.martin49 at gmail.com 2012-07-14 12:51:06 UTC --- (In reply to comment #4)

Quoted 6 lines

(In reply to comment #2)

Quoted 2 lines

I have taken your .config, and the build ended succesfully, so I strongly suspect something on your host that influences the build.

I also suspect this, but shouldn't the build script check for such things? (like the python version)

Currently, there is no check to check/detect python version, but there are few patches about that in the pipe:
http://patchwork.ozlabs.org/patch/162456/
http://patchwork.ozlabs.org/patch/162457/

Note that in your case, 'python' points to python2.x while 'python3' to python3.x, which is the standard currently. So, the problem is not here.

BTW, these 2 patches intend to fix this kind of issues on system/distro, such as archlinux, in which 'python' points to python3.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #7 from Shokurov Anton V. <[email protected]> 2012-07-14 15:01:18 UTC --- (In reply to comment #5)

Quoted 2 lines

I have an idea. Can you tell me what is the full path to your Buildroot directory?

/home/<user name>/<name in cyrillic chars>/buildroot/latest/buildroot

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #8 from Shokurov Anton V. <[email protected]> 2012-07-14 15:02:57 UTC --- (In reply to comment #6)

Quoted 13 lines

(In reply to comment #4)

Quoted 6 lines

(In reply to comment #2)

Quoted 2 lines

I have taken your .config, and the build ended succesfully, so I strongly suspect something on your host that influences the build.

I also suspect this, but shouldn't the build script check for such things? (like the python version)

Currently, there is no check to check/detect python version, but there are few patches about that in the pipe:
http://patchwork.ozlabs.org/patch/162456/
http://patchwork.ozlabs.org/patch/162457/

Quoted 5 lines

Note that in your case, 'python' points to python2.x while 'python3' to python3.x, which is the standard currently. So, the problem is not here.

BTW, these 2 patches intend to fix this kind of issues on system/distro, such as archlinux, in which 'python' points to python3.

What python version should be enough to do the build?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #9 from Thomas Petazzoni <[email protected]> 2012-07-14 15:23:08 UTC --- The name is cyrilic chars is the problem. This gdbus-codegen Python script is generated from gdbus-codegen.in by replacing some paths into the script. And as
the script doesn't declare any encoding, it doesn't like having non-ascii
characters into the path. This also explains why it was working for me.

One option is to declare the script encoding as utf-8, but that would only work on utf-8 configured systems. On other systems, it would probably not work. This problem is not Buildroot's fault, so I think it should rather be reported to the glib maintainers.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#10 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #10 from Shokurov Anton V. <[email protected]> 2012-07-15 16:20:23 UTC --- (In reply to comment #9)

Quoted 1 line

The name is cyrilic chars is the problem.

Yes. You are right. After moving the directory the build was successful. After extending the package list i got a new error,

output/build/gcc-4.7.1-target/arm-unknown-linux-uclibcgnueabi/libstdc++-v3/include/fenv.h:36:24

can't find fenv.h

I have included the new config file as an attachment

Quoted 9 lines

This gdbus-codegen Python script is
generated from gdbus-codegen.in by replacing some paths into the script. And as the script doesn't declare any encoding, it doesn't like having non-ascii characters into the path. This also explains why it was working for me.

One option is to declare the script encoding as utf-8, but that would only work on utf-8 configured systems. On other systems, it would probably not work. This problem is not Buildroot's fault, so I think it should rather be reported to the glib maintainers.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#11 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #11 from Shokurov Anton V. <[email protected]> 2012-07-15 16:21:44 UTC --- Created attachment 4412
--> https://bugs.busybox.net/attachment.cgi?id=4412
new config file

the build ends with the can't find fenv.h file error.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#12 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #12 from s.martin49 at gmail.com 2012-07-15 17:10:39 UTC --- (In reply to comment #11)

Quoted 4 lines

Created attachment 4412 [details]
new config file

the build ends with the can't find fenv.h file error.

fenv.h comes with uClibc when C99 floating point environment is enabled. This feature is disabled in the default uclibc-0.9.33 defconfig file.

You can change this running 'make uclibc-menuconfig' in "Target Architecture Features and Options >> Enable C99 Floating-point environment", but this will require to rebuild the cross-toolchain.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#13 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #13 from Shokurov Anton V. <[email protected]> 2012-07-16 05:12:21 UTC --- (In reply to comment #12)

Quoted 4 lines

(In reply to comment #11)

Quoted 3 lines

Created attachment 4412 [details]
new config file

Quoted 8 lines
Quoted 1 line

the build ends with the can't find fenv.h file error.

fenv.h comes with uClibc when C99 floating point environment is enabled. This feature is disabled in the default uclibc-0.9.33 defconfig file.

You can change this running 'make uclibc-menuconfig' in "Target Architecture Features and Options >> Enable C99 Floating-point environment", but this will require to rebuild the cross-toolchain.

It builds now perfectly.
Thank you!

PS
How would i have know to run 'make uclibc-menuconfig' ... ? There was no such problem in the previous version (release) of buildroot.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#14 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #14 from Thomas Petazzoni <[email protected]> 2012-07-16 07:17:29 UTC --- On which package did the fenv.h build problem occured?

Also, could you report your libglib2 problem to the upstream libglib developers?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#15 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #15 from Shokurov Anton V. <[email protected]> 2012-07-16 08:44:21 UTC --- (In reply to comment #14)

Quoted 4 lines

On which package did the fenv.h build problem occured?

Also, could you report your libglib2 problem to the upstream libglib developers?

yes, i can.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#16 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #16 from Shokurov Anton V. <[email protected]> 2012-07-16 08:51:40 UTC --- (In reply to comment #14)

Quoted 4 lines

On which package did the fenv.h build problem occured?

Also, could you report your libglib2 problem to the upstream libglib developers?

It's at
https://bugzilla.gnome.org/show_bug.cgi?id=679993

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#17 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #17 from Shokurov Anton V. <[email protected]> 2012-07-16 17:05:52 UTC --- (In reply to comment #14)

Quoted 4 lines

On which package did the fenv.h build problem occured?

Also, could you report your libglib2 problem to the upstream libglib developers?

This is crazy...
Now I can't login. (In the previous build of buildroot i had no problem, at least after i disabled WCHAR).
I can login if i remove the 'x' from the second field of the /etc/passwd file. The rest of the files (securitty, inittab) look fine (unaltered).

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#18 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

--- Comment #18 from Shokurov Anton V. <[email protected]> 2012-07-18 20:44:42 UTC --- (In reply to comment #14)

Quoted 1 line

On which package did the fenv.h build problem occured?

I think it is the gcc package for the target, that is "gcc-4.7.1-target".

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#19 lore raw

[Buildroot] [Bug 5360] buildroot fails when building "host-libglib2 2.30.2 Building"

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5360

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #19 from Thomas Petazzoni <[email protected]> 2012-08-21 12:00:16 UTC --- Original problem is "solved": it is an upstream glib2 bug which has been
reported at https://bugzilla.gnome.org/show_bug.cgi?id=679993.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.