Skip to contentSkip to conversation

cut utility from GNU coreutils works incorrect

Buildroot bugzilla at busybox.net 1 participant 7 messages Apr 16, 2015 – Dec 8, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]/

#1 lore raw

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

????????? <[email protected]> changed:

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

                 CC|                            |buildroot at uclibc.org
          Component|stdio                       |Outdated package
           Platform|PC                          |All
            Version|0.9.32                      |2015.02
         AssignedTo|unassigned at uclibc.org       |unassigned at buildroot.uclibc
                   |                            |.org
            Product|uClibc                      |buildroot
   Target Milestone|---                         |2015.02
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
In reply to a message not in the archive

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

--- Comment #1 from Thomas Petazzoni <[email protected]> 2015-08-06 21:59:01 UTC --- I confirm that I am able to reproduce the problem with uClibc, but not with
glibc.

I reported the bug to upstream uClibc, see
http://lists.uclibc.org/pipermail/uclibc/2015-August/049026.html. We'll see if the uClibc developers have some clue.

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
In reply to a message not in the archive

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

--- Comment #3 from wbx at openadk.org 2015-08-26 12:12:38 UTC --- Hi,

okay, found the reason.
It seems following options in uClibc config fixes the problem:
UCLIBC_HAS_STDIO_GETC_MACRO=y UCLIBC_HAS_STDIO_PUTC_MACRO=y

They are both disabled in the default config in Buildroot. In OpenADK, which I used to verify the issue, the options are on.

So no difference which uClibc version is in use.

best regards
Waldemar

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
In reply to a message not in the archive

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

--- Comment #4 from Thomas Petazzoni <[email protected]> 2015-08-26 12:43:25 UTC --- (In reply to comment #3)

Quoted 11 lines

Hi,

okay, found the reason.
It seems following options in uClibc config fixes the problem:
UCLIBC_HAS_STDIO_GETC_MACRO=y UCLIBC_HAS_STDIO_PUTC_MACRO=y

They are both disabled in the default config in Buildroot. In OpenADK, which I used to verify the issue, the options are on.

So no difference which uClibc version is in use.

Thanks for the investigation. In other words, you suggest to enable these options in Buildroot as well? The help text of these options says "Most people will answer Y."

(It still seems to be a bug in gnulib to assume that uClibc is always built with those options enabled...)

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
In reply to a message not in the archive

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

Thomas Petazzoni <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Thomas Petazzoni <[email protected]> 2015-09-21 09:30:55 UTC --- Fixed by commits 26ae113d1186951c4969000f5de2ec67e7f1ba3e and e07cc92491080289188b3618d687b06bb9aa6041. Thanks Waldemar!

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
In reply to a message not in the archive

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

--- Comment #6 from P?draig Brady <[email protected]> --- A couple of points.

This gnulib code is quite the layering violation,
which results in issues like these.

It's always worth reporting GNU coreutils bugs to
bug-coreutils at gnu.org

The change to uClibc config is a fine workaround, especially since it will generally speedup operations, though the actual fix is probably the following in gnulib:
http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00003.html

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.