WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 5.2: busybox dc erroneous output  (Read 3133 times)

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
5.2: busybox dc erroneous output
« on: March 28, 2014, 08:36:12 PM »
busybox dc runs, but its output is always the same (perhaps an error code value or just MAX): 6.05096e-270.

Try: 'dc 10 1 add p' or 'dc 10 100 div p'

Since this occurs in base, I expect it's going to be a problem until 5.3 at least the next 5.3rc.

Same problem on both 32-bit and Pure 64. -

DLT

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: 5.2: busybox dc erroneous output
« Reply #1 on: March 29, 2014, 01:05:39 AM »
I see the same in the x86. It works properly in piCore 5.2 on the Raspberry Pi.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: 5.2: busybox dc erroneous output
« Reply #2 on: March 30, 2014, 05:04:23 AM »
It still happens in 1.22.1 too. Will check further.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: 5.2: busybox dc erroneous output
« Reply #3 on: March 30, 2014, 05:10:36 AM »
see above, it works with x86_64, but not x86...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: 5.2: busybox dc erroneous output
« Reply #4 on: March 30, 2014, 05:38:22 AM »
see above, it works with x86_64, but not x86...

Didn't check the new one, but in my previous test build in 4.7.7 against eglibc an using the older GCC it is working.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: 5.2: busybox dc erroneous output
« Reply #5 on: March 31, 2014, 04:35:14 AM »
It turned out to be a GCC bug. I propose a rebuild of the current version on 4.x, to minimize any possible issues from a version upgrade at the same time.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: 5.2: busybox dc erroneous output
« Reply #6 on: March 31, 2014, 05:18:17 AM »
..strange that gcc-4.7.2 is used for both core and corepure64, but dc only fails with x86
« Last Edit: March 31, 2014, 05:21:49 AM by Juanito »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: 5.2: busybox dc erroneous output
« Reply #7 on: March 31, 2014, 05:53:34 AM »
It's some combination of optimization that triggers it, so not seeing on another arch is expected.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: 5.2: busybox dc erroneous output
« Reply #8 on: March 31, 2014, 05:54:50 AM »
Which GCC versions have this bug?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: 5.2: busybox dc erroneous output
« Reply #9 on: March 31, 2014, 11:27:47 AM »
I don't know exactly, beyond 4.7.2.
The only barriers that can stop you are the ones you create yourself.