public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC cross compiling issue
@ 2019-12-09  4:41 Jin Zhang
  2019-12-09  8:45 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Jin Zhang @ 2019-12-09  4:41 UTC (permalink / raw)
  To: gcc-help

Hi There,

We are trying to compile gcc 8.3.0 in our new build system which have AVX512 feature.
The program itself compiled without any problem.
However, when I tried to run it on our old nodes (avx2), it get

"mpi-pingpong.c: In function ‘main’:
mpi-pingpong.c:20:4: internal compiler error: Illegal instruction
    double max_rate = 0.0, min_latency = 10e6;
    ^~~~~~
0xa782ef crash_signal
../../gcc/toplev.c:325
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions."

It works fine on our new avx512 nodes.
We tried set BOOT_CFLAGS, disable-bootstrap and set up CFLAGS, but none of them works.

Does anyone have experience on these, thanks?

Regards,

Jin Zhang


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GCC cross compiling issue
  2019-12-09  4:41 GCC cross compiling issue Jin Zhang
@ 2019-12-09  8:45 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2019-12-09  8:45 UTC (permalink / raw)
  To: Jin Zhang; +Cc: gcc-help

On Mon, 9 Dec 2019 at 04:41, Jin Zhang wrote:
>
> Hi There,
>
> We are trying to compile gcc 8.3.0 in our new build system which have AVX512 feature.
> The program itself compiled without any problem.
> However, when I tried to run it on our old nodes (avx2), it get
>
> "mpi-pingpong.c: In function ‘main’:
> mpi-pingpong.c:20:4: internal compiler error: Illegal instruction
>     double max_rate = 0.0, min_latency = 10e6;
>     ^~~~~~
> 0xa782ef crash_signal
> ../../gcc/toplev.c:325
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions."
>
> It works fine on our new avx512 nodes.
> We tried set BOOT_CFLAGS, disable-bootstrap and set up CFLAGS, but none of them works.
>
> Does anyone have experience on these, thanks?
>

It usually means that one of GMP, MPFR, or MPC was compiled for the
build machine, not the host machine. You didn't tell us how you
configured it though, so we can only guess.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-09  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09  4:41 GCC cross compiling issue Jin Zhang
2019-12-09  8:45 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).