This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-7.3.0: ptxas lib_a-hash_func.o, line 11; fatal : Invalid initial value expression
- From: Thomas Schwinge <thomas at codesourcery dot com>
- To: Siegmar Gross <siegmar dot gross at informatik dot hs-fulda dot de>
- Cc: <gcc at gcc dot gnu dot org>, Tom de Vries <tom at codesourcery dot com>, Cesar Philippidis <cesar at codesourcery dot com>
- Date: Sat, 24 Feb 2018 23:18:45 +0100
- Subject: Re: gcc-7.3.0: ptxas lib_a-hash_func.o, line 11; fatal : Invalid initial value expression
- Authentication-results: sourceware.org; auth=none
- References: <42eea911-d662-4c5c-1df6-306389ac0a95@informatik.hs-fulda.de>
Hi!
On Sat, 24 Feb 2018 17:20:13 +0100, Siegmar Gross <siegmar.gross@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