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

Building x86 toolchain #2

Closed
bubiche opened this issue May 31, 2016 · 7 comments
Closed

Building x86 toolchain #2

bubiche opened this issue May 31, 2016 · 7 comments
Assignees

Comments

@bubiche
Copy link

bubiche commented May 31, 2016

Hi,
I followed your guide and I can make the toolchain for armeabi and mips but when I I do ./build --toolchain x86 I got the following error: http://paste.ubuntu.com/16861425/ Can you help me with it please.

My setup:

  • Ubuntu 16.04 64bit
  • gcc 4.8.5 (newer versions seems to cause errors)
  • g++ 4.8.5

Thank you very much!

@buffer51
Copy link
Owner

Hi @bubiche,

I had the same error when I tried. I found a quickfix which allowed me to build successfully (download here), however I am not sure it's ideal.

Could you check if the resulting toolchain works for you? If so I'll update the steps to include the x86 case.

I filled a bug on the GNU GCC Bugzilla, I'm hoping they'll answer even though it's Google's GCC. I've never had luck in getting support from Google, since they don't include Fortran to the NDK.

@buffer51 buffer51 self-assigned this May 31, 2016
@bubiche
Copy link
Author

bubiche commented Jun 1, 2016

Thank you mate.

I tried using your toolchain to build OpenBLAS with make TARGET=ATOM HOSTCC=gcc CC=i686-linux-android-gcc FC=i686-linux-android-gfortran but it doesn't work, I keep getting the error http://paste.ubuntu.com/16884681/ although I checked in the folder and there is a file called sblat there. Am I doing something wrong?

@buffer51
Copy link
Owner

buffer51 commented Jun 1, 2016

Can you post your Makefile.conf? It should have the CROSS flag set, but apparently it's not. When it is, it doesn't try to run test because they won't run on your machine (which is what happens here).

Anyway this is an OpenBLAS problem, and the libraries are built fine. To check that, add libs to your build command, the error should disappear. After that you can do make PREFIX=/path/to/install install to create an install directory.

@bubiche
Copy link
Author

bubiche commented Jun 1, 2016

Yeah, everything works fine now. I tried some other libraries and your toolchain totally works. Thank you very much.

@buffer51
Copy link
Owner

buffer51 commented Jun 1, 2016

Awesome :) I will commit the temporary steps, awaiting an answer from the GNU guys.

buffer51 added a commit that referenced this issue Jun 5, 2016
@buffer51
Copy link
Owner

buffer51 commented Jun 5, 2016

I pushed the steps, as GNU support said it's a won't fix.

@buffer51 buffer51 closed this as completed Jun 5, 2016
@mhsmith
Copy link

mhsmith commented Jan 2, 2020

In case the pastebin goes away, here's the original error:

/toolchain/build/../gcc/gcc-4.9/libgfortran/intrinsics/cshift0.c: In function 'cshift0':
/toolchain/build/../gcc/gcc-4.9/libgfortran/intrinsics/cshift0.c:150:5: error: duplicate case value
     case GFC_DTYPE_REAL_16:
     ^
/toolchain/build/../gcc/gcc-4.9/libgfortran/intrinsics/cshift0.c:131:5: error: previously used here
     case GFC_DTYPE_REAL_8:
     ^
/toolchain/build/../gcc/gcc-4.9/libgfortran/intrinsics/cshift0.c:180:5: error: duplicate case value
     case GFC_DTYPE_COMPLEX_16:
     ^
/toolchain/build/../gcc/gcc-4.9/libgfortran/intrinsics/cshift0.c:161:5: error: previously used here
     case GFC_DTYPE_COMPLEX_8:
     ^

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

No branches or pull requests

3 participants