Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure make samin_k.o samax_k.o #308

Closed
wuhwyy opened this issue Oct 15, 2013 · 11 comments
Closed

failure make samin_k.o samax_k.o #308

wuhwyy opened this issue Oct 15, 2013 · 11 comments
Labels
Milestone

Comments

@wuhwyy
Copy link

wuhwyy commented Oct 15, 2013

Hi Xianyi,

Need your help! Thanks in advance

I failed to make samin_k.o samax_k.o.
Used gmake BINARY=64 CC=gcc USE_THREAD=0 -j8
come up with the following message:

gmake[1]: Entering directory /home/achy/preprocessor_SunOS/lib/OPENBLAS/xianyi-OpenBLAS-9c51cdf-USE_OPENMP/kernel' gmake[1]: warning: -jN forced in submake: disabling jobserver mode. /usr/local/bin/gcc -c -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DMAX_CPU_NUMBER=1 -DASMNAME=samax_k -DASMFNAME=samax_k_ -DNAME=samax_k_ -DCNAME=samax_k -DCHAR_NAME=\"samax_k_\" -DCHAR_CNAME=\"samax_k\" -DNO_AFFINITY -I.. -UDOUBLE -UCOMPLEX -UCOMPLEX -UDOUBLE -DUSE_ABS -UUSE_MIN ../kernel/x86_64/amax_sse.S -o samax_k.o /usr/local/bin/gcc -c -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DMAX_CPU_NUMBER=1 -DASMNAME=samin_k -DASMFNAME=samin_k_ -DNAME=samin_k_ -DCNAME=samin_k -DCHAR_NAME=\"samin_k_\" -DCHAR_CNAME=\"samin_k\" -DNO_AFFINITY -I.. -UDOUBLE -UCOMPLEX -UCOMPLEX -UDOUBLE -DUSE_ABS -DUSE_MIN ../kernel/x86_64/amax_sse.S -o samin_k.o Assembler: "/var/tmp//cc6_aW3r.s", line 254 : Syntax error Near line: " .size samin_k, .-samin_k; .section .note.GNU-stack,"",%progbits" Assembler: "/var/tmp//cc5_aO3r.s", line 254 : Syntax error Near line: " .size samax_k, .-samax_k; .section .note.GNU-stack,"",%progbits" gmake[1]: *** [samin_k.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: *** [samax_k.o] Error 1 gmake[1]: Leaving directory/home/achy/preprocessor_SunOS/lib/OPENBLAS/xianyi-OpenBLAS-9c51cdf-USE_OPENMP/kernel'
gmake: *** [libs] Error 1

Archy

@xianyi
Copy link
Collaborator

xianyi commented Oct 15, 2013

Hi Archy,

Could you try OpenBLAS develop branch? I think it fixed this issue.

Xianyi

@wuhwyy
Copy link
Author

wuhwyy commented Oct 15, 2013

thanks Xianyi,

Just tried the develop branch. The same error persists.
Did anyone else has this problem too?

Archy

@xianyi
Copy link
Collaborator

xianyi commented Oct 15, 2013

I think it looks like " .size samin_k, .-samin_k; .section .note.GNU-stack,"",@progbits"

What's your OS and gcc version?

@wuhwyy
Copy link
Author

wuhwyy commented Oct 15, 2013

Hi Xianyi,
I am running SunOS 5.11 using virtual machine in Win7
gcc is 4.7.3

thanks
Archy

@xianyi
Copy link
Collaborator

xianyi commented Oct 15, 2013

We didn't test building OpenBLAS on SunOS. Thus, we need setup the testbed.

@wuhwyy
Copy link
Author

wuhwyy commented Oct 15, 2013

Thanks all the same. the funny thing is I don't think I had this problem when the first time I successfully build OpenBLAS on the very same machine.

@xianyi
Copy link
Collaborator

xianyi commented Oct 15, 2013

Could you try to apply this patch? This patch removes executable stack markings.

diff --git a/common_x86_64.h b/common_x86_64.h
index 39e5a5e..741278d 100644
--- a/common_x86_64.h
+++ b/common_x86_64.h
@@ -372,10 +372,7 @@ REALNAME:
 #define PROFCODE
 #endif

-#define EPILOGUE \
-        .size   REALNAME, .-REALNAME; \
-        .section .note.GNU-stack,"",@progbits
-
+#define EPILOGUE .size   REALNAME, .-REALNAME

 #endif

@wuhwyy
Copy link
Author

wuhwyy commented Oct 15, 2013

Hi Xianyi,
I just tried it. Similar error happened.
But if I compile using gcc 4.5.2, no such error appears, but I ran into:

gcc -c -O2 -DEXPRECISION -m128bit-long-double -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DMAX_CPU_NUMBER=2 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME="_" -DCHAR_CNAME="" -DNO_AFFINITY -I. -DHAVE_LAPACK_CONFIG_H -I ../include -o lapacke_make_complex_float.o lapacke_make_complex_float.c

lapacke_make_complex_float.c:47:17: error: ‘_Imaginary_I’ undeclared (first use in this function)

gmake[3]: Leaving directory `/home/achy/preprocessor_SunOS/lib/OPENBLAS/OpenBLAS-develop/lapack-netlib/lapacke/utils'

I suppose SunOS doesn't have the correct header file? Do you have any idea?

Thanks
Archy

@xianyi
Copy link
Collaborator

xianyi commented Oct 16, 2013

Hi @wuhwyy ,

If you didn't need LAPACKE, you can make NO_LAPACKE=1

Or, you can try #305

@wuhwyy
Copy link
Author

wuhwyy commented Oct 16, 2013

thanks Xianyi. Will keep you updated.

@wuhwyy
Copy link
Author

wuhwyy commented Oct 16, 2013

Hi Xianyi,

So with gcc 4.5.2 and NO_LAPACKE=1, it successfully build on SunOS 5.11(or 11.0).
You can close this issue now.

I will keep on checking the problem of incorrect complex.h in SunOS, and keep you updated.

Thanks
Archy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants