[go: nahoru, domu]

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

gcc4.9.0 build error: insn does not satisfy its constraints #36569

Closed
haolujun opened this issue Feb 8, 2020 · 4 comments
Closed

gcc4.9.0 build error: insn does not satisfy its constraints #36569

haolujun opened this issue Feb 8, 2020 · 4 comments
Assignees
Labels
stat:awaiting response Status - Awaiting response from author TF 1.14 for issues seen with TF 1.14 type:build/install Build and install issues

Comments

@haolujun
Copy link
haolujun commented Feb 8, 2020

HI :
I want to use avx512 to compile tensorflow, so get update gcc from 4.8.5 to 4.9.0, tensorflow is 1.14.

bazel command:

bazel build tensorflow:libtensorflow_cc.so -c opt --copt=-march=native --copt=-mfpmath=both  --copt=-mfma --copt=-mavx --copt=-mavx2 --copt=-mavx512f

error:

external/fft2d/fft/fftsg.c: In function 'cftf162':
external/fft2d/fft/fftsg.c:3028:1: error: insn does not satisfy its constraints:
 }
 ^
(insn 488 487 335 2 (set (reg:DF 28 xmm7 [orig:225 D.7431 ] [225])
        (plus:DF (reg:DF 28 xmm7 [orig:225 D.7431 ] [225])
            (reg:DF 55 xmm18 [orig:225 D.7431 ] [225]))) external/fft2d/fft/fftsg.c:2937 764 {*fop_df_comm_mixed}
     (nil))
external/fft2d/fft/fftsg.c:3028:1: internal compiler error: in copyprop_hardreg_forward_1, at regcprop.c:775
0x82e7d8 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
	../../gcc/rtl-error.c:109
0x82e7ff _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
	../../gcc/rtl-error.c:120
0x8098a1 copyprop_hardreg_forward_1
	../../gcc/regcprop.c:775
0x8098a1 copyprop_hardreg_forward
	../../gcc/regcprop.c:1110
0x8098a1 execute
	../../gcc/regcprop.c:1283
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Target //tensorflow:libtensorflow_cc.so failed to build
Use --verbose_failures to see the command lines of failed build steps.

it seemd that fftsg.c may be has error, but when I compile fftsg.c only, there was no error.

gcc fftsg.c -mavx -mavx2 -mavx512f -march=native -mfma -lm //it's ok
@haolujun
Copy link
Author
haolujun commented Feb 9, 2020

I use gcc-7.3.0 and build succeed. so I think, this is a gcc bug.

@gadagashwini-zz gadagashwini-zz added TF 1.14 for issues seen with TF 1.14 type:build/install Build and install issues labels Feb 10, 2020
@gadagashwini-zz
Copy link
Contributor

@haolujun, Glad that its resolved. Tensorflow tested build configuration doc says Tensorflow supports GCC 7.3.1. Please take a look at doc here. Thanks

@gadagashwini-zz gadagashwini-zz added the stat:awaiting response Status - Awaiting response from author label Feb 10, 2020
@gadagashwini-zz
Copy link
Contributor

@haolujun, Closing since its resolved.

@tensorflow-bot
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting response Status - Awaiting response from author TF 1.14 for issues seen with TF 1.14 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants