LAPACK Archives

[Lapack] compiling cblas

Julie,

                Thanks.  I did this, but now I`m getting another linking
error:

 

ar: isamax.o: File format not recognized

 

Any idea on that one?  

 

Full error may be found below.        Thanks, Alan

 

"/usr/bin/make" -f nbproject/Makefile-Default.mk QMAKE= SUBPROJECTS=
.clean-conf

make[1]: Entering directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

cd C\:/Users/thomasja/Documents/Programming/NetBeansProjects/cblas &&
/usr/bin/make -f Makefile clean

make[2]: Entering directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

cygwin warning:

  MS-DOS style path detected:
C:\Users\thomasja\Documents\Programming\NetBeansProjects\cblas\make.inc

rm -f *.o

  Preferred POSIX equivalent is:
/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas/make
.inc

  CYGWIN environment variable option "nodosfilewarning" turns off this
warning.

  Consult the user's guide for more details about POSIX paths:

    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

make[2]: Leaving directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

make[1]: Leaving directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

 

CLEAN SUCCESSFUL (total time: 1s)

"/usr/bin/make" -f nbproject/Makefile-Default.mk QMAKE= SUBPROJECTS=
.build-conf

make[1]: Entering directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

cd C\:/Users/thomasja/Documents/Programming/NetBeansProjects/cblas &&
/usr/bin/make -f Makefile

cygwin warning:

  MS-DOS style path detected:
C:\Users\thomasja\Documents\Programming\NetBeansProjects\cblas\make.inc

  Preferred POSIX equivalent is:
/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas/make
.inc

 CYGWIN environment variable option "nodosfilewarning" turns off this
warning.

  Consult the user's guide for more details about POSIX paths:

    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

make[2]: Entering directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

gcc -O3 -DADD_ -c isamax.c

gcc -O3 -DADD_ -c sasum.c

gcc -O3 -DADD_ -c saxpy.c

gcc -O3 -DADD_ -c scopy.c

gcc -O3 -DADD_ -c sdot.c

gcc -O3 -DADD_ -c snrm2.c

gcc -O3 -DADD_ -c srot.c

gcc -O3 -DADD_ -c srotg.c

gcc -O3 -DADD_ -c sscal.c

gcc -O3 -DADD_ -c sswap.c

gcc -O3 -DADD_ -c lsame.c

gcc -O3 -DADD_ -c xerbla.c

gcc -O3 -DADD_ -c sgemv.c

gcc -O3 -DADD_ -c sgbmv.c

gcc -O3 -DADD_ -c ssymv.c

gcc -O3 -DADD_ -c ssbmv.c

gcc -O3 -DADD_ -c sspmv.c

gcc -O3 -DADD_ -c strmv.c

gcc -O3 -DADD_ -c stbmv.c

gcc -O3 -DADD_ -c stpmv.c

gcc -O3 -DADD_ -c strsv.c

gcc -O3 -DADD_ -c stbsv.c

gcc -O3 -DADD_ -c stpsv.c

gcc -O3 -DADD_ -c sger.c

gcc -O3 -DADD_ -c ssyr.c

gcc -O3 -DADD_ -c sspr.c

gcc -O3 -DADD_ -c ssyr2.c

gcc -O3 -DADD_ -c sspr2.c

gcc -O3 -DADD_ -c sgemm.c

gcc -O3 -DADD_ -c ssymm.c

gcc -O3 -DADD_ -c ssyrk.c

gcc -O3 -DADD_ -c ssyr2k.c

gcc -O3 -DADD_ -c strmm.c

gcc -O3 -DADD_ -c strsm.c

ar cr  isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o srot.o srotg.o
sscal.o sswap.o lsame.o xerbla.o \

        sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o strmv.o stbmv.o stpmv.o
strsv.o stbsv.o stpsv.o sger.o ssyr.o sspr.o ssyr2.o sspr2.o sgemm.o ssymm.o
ssyrk.o ssyr2k.o strmm.o strsm.o 

make[2]: Leaving directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

ar: isamax.o: File format not recognized

make[2]: *** [single] Error 1

make[1]: *** [.build-conf] Error 2

make[1]: Leaving directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

make: *** [.build-impl] Error 2

 

BUILD FAILED (exit value 2, total time: 12s)

 

From: julie langou [mailto:julie@Domain.Removed] 
Sent: Wednesday, August 31, 2011 10:51 AM
To: Alan Thomas
Cc: blast-comm@Domain.Removed; lapack@Domain.Removed
Subject: Re: [Lapack] compiling cblas

 

Hi Alan,

In the make.inc, check the value of the following variables ;

#---------------------------------------------------------------------------
--

# Compilers

#---------------------------------------------------------------------------
--

 

CC = gcc

FC = gfortran

LOADER = $(FC)

 

#---------------------------------------------------------------------------
--

# Flags for Compilers

#---------------------------------------------------------------------------
--

 

CFLAGS = -O3 -DADD_

FFLAGS = -O3  

 

#---------------------------------------------------------------------------
--

# Archive programs and flags

#---------------------------------------------------------------------------
--

 

ARCH = ar

ARCHFLAGS = cr

RANLIB = ranlib

Reagards,

Julie

On Aug 29, 2011, at 6:55 PM, Alan Thomas wrote:





   I am trying to build cblas in the NetBeans 6.9.1 IDE using gcc/cygwin on
Windows 7.  The make does not complete.  I get this error (complete results
may be found below, along with the makefile:

 

make[2]: isamax.o: Command not found

 

   Can anyone help?

 

    I am new to cblas and not very experienced with C.  Please forgive me if
this is directed to the wrong community.

 

                            Thanks, Alan

 

"/usr/bin/make" -f nbproject/Makefile-Default.mk QMAKE= SUBPROJECTS=
.build-conf

make[1]: Entering directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

cd C\:/Users/thomasja/Documents/Programming/NetBeansProjects/cblas &&
/usr/bin/make -f Makefile

make[2]: Entering directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

cc  -c isamax.c

cc  -c sasum.c

cc  -c saxpy.c

cc  -c scopy.c

cc  -c sdot.c

cc  -c snrm2.c

cc  -c srot.c

cc  -c srotg.c

cc  -c sscal.c

cc  -c sswap.c

cc  -c sgemv.c

cc  -c sgbmv.c

cc  -c ssymv.c

cc  -c ssbmv.c

cc  -c sspmv.c

cc  -c strmv.c

cc  -c stbmv.c

cc  -c stpmv.c

cc  -c strsv.c

cc  -c stbsv.c

cc  -c stpsv.c

cc  -c sger.c

cc  -c ssyr.c

cc  -c sspr.c

cc  -c ssyr2.c

cc  -c sspr2.c

cc  -c sgemm.c

cc  -c ssymm.c

cc  -c ssyrk.c

cc  -c ssyr2k.c

cc  -c strmm.c

cc  -c strsm.c

isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o srot.o srotg.o sscal.o
sswap.o lsame.o xerbla.o \

        sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o strmv.o stbmv.o stpmv.o
strsv.o stbsv.o stpsv.o sger.o ssyr.o sspr.o ssyr2.o sspr2.o sgemm.o ssymm.o
ssyrk.o ssyr2k.o strmm.o strsm.o

make[2]: isamax.o: Command not found

make[2]: Leaving directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

make[1]: Leaving directory
`/cygdrive/c/Users/thomasja/Documents/Programming/NetBeansProjects/cblas'

make[2]: *** [single] Error 127

make[1]: *** [.build-conf] Error 2

make: *** [.build-impl] Error 2

 

BUILD FAILED (exit value 2, total time: 11s)

 

Makefile:

 

#include ../make.inc

 

######################################################################

#  This is the makefile to create a library for the BLAS.

#  The files are grouped as follows:

#

#       SBLAS1 -- Single precision real BLAS routines

#       CBLAS1 -- Single precision complex BLAS routines

#       DBLAS1 -- Double precision real BLAS routines

#       ZBLAS1 -- Double precision complex BLAS routines

#

#       CB1AUX -- Real BLAS routines called by complex routines

#       ZB1AUX -- D.P. real BLAS routines called by d.p. complex

#                 routines

#

#      ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS

#

#       SBLAS2 -- Single precision real BLAS2 routines

#       CBLAS2 -- Single precision complex BLAS2 routines

#       DBLAS2 -- Double precision real BLAS2 routines

#       ZBLAS2 -- Double precision complex BLAS2 routines

#

#       SBLAS3 -- Single precision real BLAS3 routines

#       CBLAS3 -- Single precision complex BLAS3 routines

#       DBLAS3 -- Double precision real BLAS3 routines

#       ZBLAS3 -- Double precision complex BLAS3 routines

#

#  The library can be set up to include routines for any combination

#  of the four precisions.  To create or add to the library, enter make

#  followed by one or more of the precisions desired.  Some examples:

#       make single

#       make single complex

#       make single double complex complex16

#  Alternatively, the command

#       make

#  without any arguments creates a library of all four precisions.

#  The library is called

#       blas.a

#

#  To remove the object files after the library is created, enter

#       make clean

#  To force the source files to be recompiled, enter, for example,

#       make single FRC=FRC

#

#---------------------------------------------------------------------

#

#  Edward Anderson, University of Tennessee

#  March 26, 1990

#  Susan Ostrouchov, Last updated September 30, 1994

#

#######################################################################

 

all: single double complex complex16

 

#---------------------------------------------------------

#  Comment out the next 6 definitions if you already have

#  the Level 1 BLAS.

#---------------------------------------------------------

SBLAS1 = isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o \

                srot.o srotg.o sscal.o sswap.o

$(SBLAS1): $(FRC)

 

CBLAS1 = scasum.o scnrm2.o icamax.o caxpy.o ccopy.o \

                cdotc.o cdotu.o csscal.o crotg.o cscal.o cswap.o

$(CBLAS1): $(FRC)

 

DBLAS1 = idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o \

                drot.o drotg.o dscal.o dswap.o

$(DBLAS1): $(FRC)

 

ZBLAS1 = dcabs1.o dzasum.o dznrm2.o izamax.o zaxpy.o zcopy.o \

                zdotc.o zdotu.o zdscal.o zrotg.o zscal.o zswap.o

$(ZBLAS1): $(FRC)

 

CB1AUX = isamax.o sasum.o saxpy.o scopy.o snrm2.o sscal.o

$(CB1AUX): $(FRC)

 

ZB1AUX = idamax.o dasum.o daxpy.o dcopy.o dnrm2.o dscal.o

$(ZB1AUX): $(FRC)

 

#---------------------------------------------------------------------

#  The following line defines auxiliary routines needed by both the

#  Level 2 and Level 3 BLAS.  Comment it out only if you already have

#  both the Level 2 and 3 BLAS.

#---------------------------------------------------------------------

ALLBLAS  = lsame.o xerbla.o

$(ALLBLAS) : $(FRC)

 

#---------------------------------------------------------

#  Comment out the next 4 definitions if you already have

#  the Level 2 BLAS.

#---------------------------------------------------------

SBLAS2 = sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o \

                strmv.o stbmv.o stpmv.o strsv.o stbsv.o stpsv.o \

                sger.o ssyr.o sspr.o ssyr2.o sspr2.o

$(SBLAS2): $(FRC)

 

CBLAS2 = cgemv.o cgbmv.o chemv.o chbmv.o chpmv.o \

                ctrmv.o ctbmv.o ctpmv.o ctrsv.o ctbsv.o ctpsv.o \

                cgerc.o cgeru.o cher.o chpr.o cher2.o chpr2.o

$(CBLAS2): $(FRC)

 

DBLAS2 = dgemv.o dgbmv.o dsymv.o dsbmv.o dspmv.o \

                dtrmv.o dtbmv.o dtpmv.o dtrsv.o dtbsv.o dtpsv.o \

                dger.o dsyr.o dspr.o dsyr2.o dspr2.o

$(DBLAS2): $(FRC)

 

ZBLAS2 = zgemv.o zgbmv.o zhemv.o zhbmv.o zhpmv.o \

                ztrmv.o ztbmv.o ztpmv.o ztrsv.o ztbsv.o ztpsv.o \

                zgerc.o zgeru.o zher.o zhpr.o zher2.o zhpr2.o

$(ZBLAS2): $(FRC)

 

#---------------------------------------------------------

#  Comment out the next 4 definitions if you already have

#  the Level 3 BLAS.

#---------------------------------------------------------

SBLAS3 = sgemm.o ssymm.o ssyrk.o ssyr2k.o strmm.o strsm.o

$(SBLAS3): $(FRC)

 

CBLAS3 = cgemm.o csymm.o csyrk.o csyr2k.o ctrmm.o ctrsm.o \

                chemm.o cherk.o cher2k.o

$(CBLAS3): $(FRC)

 

DBLAS3 = dgemm.o dsymm.o dsyrk.o dsyr2k.o dtrmm.o dtrsm.o

$(DBLAS3): $(FRC)

 

ZBLAS3 = zgemm.o zsymm.o zsyrk.o zsyr2k.o ztrmm.o ztrsm.o \

                zhemm.o zherk.o zher2k.o

$(ZBLAS3): $(FRC)

 

single: $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)

                $(ARCH) $(ARCHFLAGS) $(BLASLIB) $(SBLAS1) $(ALLBLAS) \

                $(SBLAS2) $(SBLAS3)

                $(RANLIB) $(BLASLIB)

 

double: $(DBLAS1) $(ALLBLAS) $(DBLAS2) $(DBLAS3)

                $(ARCH) $(ARCHFLAGS) $(BLASLIB) $(DBLAS1) $(ALLBLAS) \

                $(DBLAS2) $(DBLAS3)

                $(RANLIB) $(BLASLIB)

 

complex: $(CBLAS1) $(CB1AUX) $(ALLBLAS) $(CBLAS2) $(CBLAS3)

                $(ARCH) $(ARCHFLAGS) $(BLASLIB) $(CBLAS1) $(CB1AUX) \

                $(ALLBLAS) $(CBLAS2) $(CBLAS3)

                $(RANLIB) $(BLASLIB)

 

complex16: $(ZBLAS1) $(ZB1AUX) $(ALLBLAS) $(ZBLAS2) $(ZBLAS3)

                $(ARCH) $(ARCHFLAGS) $(BLASLIB) $(ZBLAS1) $(ZB1AUX) \

                $(ALLBLAS) $(ZBLAS2) $(ZBLAS3)

                $(RANLIB) $(BLASLIB)

 

FRC:

                @FRC=$(FRC)

 

clean:

                rm -f *.o

 

.c.o:

                $(CC) $(CFLAGS) -c $*.c

 

_______________________________________________
Lapack mailing list
Lapack@Domain.Removed
http://lists.eecs.utk.edu/mailman/listinfo/lapack

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20110901/0df88377/attachment-0001.html
 

<Prev in Thread] Current Thread [Next in Thread>


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or