Skip to content

Compiling crashes with GCC on OSX #669

@btracey

Description

@btracey

Command: make CC=gcc

Eventually crashes with:

gcc -O2 -DMAX_STACK_ALLOC=2048 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DASMNAME=_openblas_error_handle -DASMFNAME=_openblas_error_handle_ -DNAME=openblas_error_handle_ -DCNAME=openblas_error_handle -DCHAR_NAME=\"openblas_error_handle_\" -DCHAR_CNAME=\"openblas_error_handle\" -DNO_AFFINITY -I../.. -c openblas_error_handle.c -o openblas_error_handle.o
memory.c:1333:1: error: constructor priorities are not supported
 void CONSTRUCTOR gotoblas_init(void) {
 ^
memory.c:1376:1: error: destructor priorities are not supported
 void DESTRUCTOR gotoblas_quit(void) {
 ^
memory.c:909:13: warning: 'gotoblas_memory_init' declared 'static' but never defined [-Wunused-function]
 static void gotoblas_memory_init(void);
             ^
gcc -O2 -DMAX_STACK_ALLOC=2048 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DASMNAME=_blas_server -DASMFNAME=_blas_server_ -DNAME=blas_server_ -DCNAME=blas_server -DCHAR_NAME=\"blas_server_\" -DCHAR_CNAME=\"blas_server\" -DNO_AFFINITY -I../.. -c blas_server.c -o blas_server.o
gcc -O2 -DMAX_STACK_ALLOC=2048 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DASMNAME=_divtable -DASMFNAME=_divtable_ -DNAME=divtable_ -DCNAME=divtable -DCHAR_NAME=\"divtable_\" -DCHAR_CNAME=\"divtable\" -DNO_AFFINITY -I../.. -c -UDOUBLE divtable.c -o divtable.o
make[1]: *** [memory.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [libs] Error 1

gcc version

brendan:~/software/OpenBLAS$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin14/4.8.4/lto-wrapper
Target: x86_64-apple-darwin14
Configured with: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/gcc-4.8.4/configure --prefix=/opt/local --build=x86_64-apple-darwin14 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --disable-isl-version-check --with-cloog=/opt/local --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8.4_0'
Thread model: posix
gcc version 4.8.4 (MacPorts gcc48 4.8.4_0) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions