Skip to content

Misdetection of endianness in Rosetta; opportunistic linking to OpenBLAS #48

@barracuda156

Description

@barracuda156

Detection of endianness is broken in Rosetta (ppc is Big-endian):

* installing *source* package ‘float’ ...
** package ‘float’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for sinf in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /opt/local/bin/ggrep
checking for egrep... /opt/local/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking size of int... 4
checking for gcc option to support OpenMP... -fopenmp
checking for echo... yes
checking for grep... yes
checking for sgemm_ in -lRblas... no
checking for sgetrf_ in -lRblas... no
checking for sgetrf_ in -lRlapack... no
checking for sgemm_ in -lopenblas... yes
checking for sgetrf_ in -lopenblas... yes
 
******************* Results of float package configure *******************
* OpenMP Report:
    >> OPENMP_CFLAGS=-fopenmp
    >> OMPFLAGS_C=$(SHLIB_OPENMP_CFLAGS)
    >> OMPFLAGS_F=$(SHLIB_OPENMP_FFLAGS)
* byte order: little endian
* using system OpenBLAS library
    >> BLAS_LIBFLAGS=-lopenblas
* using system OpenBLAS library
    >> LAPACK_LIBFLAGS=-lopenblas
*************************************************************************

In addition, it does not find Accelerate (with which R is built), but instead opportunistically links to OpenBLAS (generally undesirable behavior on older macOS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions