logf -lm ppc64el broken under qemu

Bug #1827523 reported by Shawn Landden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

This program does not work as expected:

#include <altivec.h>
#include <math.h>
#include <stdio.h>

int main(int argc) {
  vector float o = {4, 3, 2, 0};
  printf("%f %f %f %f\n", o[0], logf(argc), logf(4.0), logf(o[0]));
}

logf always returns -inf when it is run (gcc is analyzing the constant, logf(4.0)).

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: libc6:ppc64el 2.29-0ubuntu2
ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6
Uname: Linux 5.0.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri May 3 09:20:00 2019
Dependencies:
 gcc-9-base 9-20190402-1ubuntu1
 libc6 2.29-0ubuntu2
 libgcc1 1:9-20190402-1ubuntu1
 libidn2-0 2.0.5-1
 libunistring2 0.9.10-1ubuntu2
InstallationDate: Installed on 2019-02-23 (69 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190203)
PackageArchitecture: ppc64el
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Shawn Landden (scientes) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.