Hi!

On Sat, 24 Feb 2018 17:20:13 +0100, Siegmar Gross 
<siegmar.gr...@informatik.hs-fulda.de> wrote:
> today I tried to install gcc-7.3.0 with accelerator support

Thanks for giving that a try and reporting back!

> on my "SUSE Linux Enterprise Server 12.3 (x86_64)" with
> gcc-6.4.0. I used the following commands to download and build
> everything.

Thanks for providing these (but I have not yet reviewed them in detail,
because the problem might be solved already, see below).

> '../../../../../../gcc-7.3.0/newlib/libc/search/'`hash_func.c
> ptxas lib_a-hash_func.o, line 11; fatal   : Invalid initial value expression
> ptxas fatal   : Ptx assembly aborted due to errors
> nvptx-as: ptxas returned 255 exit status
> Makefile:413: recipe for target 'lib_a-hash_func.o' failed
> make[8]: *** [lib_a-hash_func.o] Error 1

Am I right guessing that you're using CUDA 9?  Then it'd most likely be
the issue discussed in <https://gcc.gnu.org/PR83790> "Update nvptx target
to work with cuda 9".  By now, there has a fix been committed to GCC
trunk, and I assume the same would also work on earlier GCC
releases/branches.

> I was able to build that part for gcc-7.2.0 with the same commands.

Interesting.  Or, maybe you've not been using CUDA 9 in that build?


Grüße
 Thomas

Reply via email to