From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103882 invoked by alias); 24 Feb 2018 16:20:38 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 103867 invoked by uid 89); 24 Feb 2018 16:20:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*r:172.16.10, sk:all-tar, multido, sk:alltar X-HELO: postfix2.rz.hs-fulda.de Received: from mailout.hs-fulda.de (HELO postfix2.rz.hs-fulda.de) (193.174.25.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 24 Feb 2018 16:20:35 +0000 Received: from sea2.rz.hs-fulda.de (sea2.rz.hs-fulda.de [192.168.10.154]) by postfix2.rz.hs-fulda.de (Postfix) with ESMTP id A933E15252B for ; Sat, 24 Feb 2018 17:20:27 +0100 (CET) Received: from dvzgwia4.rz.hs-fulda.de (dvzgwia4.rz.hs-fulda.de [193.174.31.6]) by sea2.rz.hs-fulda.de (Sophos Email Appliance) with ESMTP id 654EAA4111_A9190C8F for ; Sat, 24 Feb 2018 16:20:24 +0000 (GMT) Received: from [172.16.10.106] ([172.16.10.106]) by dvzgwia4.rz.hs-fulda.de with ESMTP (TLS encrypted); Sat, 24 Feb 2018 17:20:19 +0100 From: Siegmar Gross Subject: gcc-7.3.0: ptxas lib_a-hash_func.o, line 11; fatal : Invalid initial value expression To: gcc@gcc.gnu.org Message-ID: <42eea911-d662-4c5c-1df6-306389ac0a95@informatik.hs-fulda.de> Date: Sat, 24 Feb 2018 16:20:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-DVZ-HFD-Virus-Checked: Checked by SophosAV on sea1 X-SASI-RCODE: 200 X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00172.txt.bz2 Hi, today I tried to install gcc-7.3.0 with accelerator support 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. setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/cuda/lib64 setenv CUDA_INC_PATH /usr/local/cuda/include setenv CUDA_LIB_PATH /usr/local/cuda/lib64 set path = ( ${path} /usr/local/cuda/bin ) git clone https://github.com/MentorEmbedded/nvptx-tools git clone https://github.com/MentorEmbedded/nvptx-newlib wget ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.xz tar xf gcc-7.3.0.tar.xz cd gcc-7.3.0 ln -s ../nvptx-newlib/newlib newlib cd .. mkdir make_nvptx-tools cd make_nvptx-tools ../nvptx-tools/configure --prefix=/usr/local/gcc-7.3.0 \ |& tee log.configure make |& tee log.make make install |& tee log.make-install cd .. mkdir gcc-7.3.0_build cd gcc-7.3.0_build ../gcc-7.3.0/configure --prefix=/usr/local/gcc-7.3.0 \ --target=nvptx-none \ --enable-as-accelerator-for=x86_64-pc-linux-gnu \ --with-build-time-tools=/usr/local/gcc-7.3.0/nvptx-none/bin \ --disable-sjlj-exceptions \ --with-newlib \ --enable-newlib-io-long-long \ --enable-languages=c,c++,fortran,lto \ |& tee log.configure make |& tee log.make Unfortunately, "make" breaks with the following error. loki gcc-7.3.0_build 117 tail -31 log.make /export2/src/gcc-7.3.0/gcc-7.3.0_build/./gcc/xgcc -B/export2/src/gcc-7.3.0/gcc-7.3.0_build/./gcc/ -nostdinc -B/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib/ -isystem /export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib/targ-include -isystem /export2/src/gcc-7.3.0/gcc-7.3.0/newlib/libc/include -B/usr/local/gcc-7.3.0/nvptx-none/bin/ -B/usr/local/gcc-7.3.0/nvptx-none/lib/ -isystem /usr/local/gcc-7.3.0/nvptx-none/include -isystem /usr/local/gcc-7.3.0/nvptx-none/sys-include -mgomp -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.1.0\" -DPACKAGE_STRING=\"newlib\ 2.1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../gcc-7.3.0/newlib/libc/search -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -mgomp -c -o lib_a-hash_buf.o `test -f 'hash_buf.c' || echo '../../../../../../gcc-7.3.0/newlib/libc/search/'`hash_buf.c /export2/src/gcc-7.3.0/gcc-7.3.0_build/./gcc/xgcc -B/export2/src/gcc-7.3.0/gcc-7.3.0_build/./gcc/ -nostdinc -B/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib/ -isystem /export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib/targ-include -isystem /export2/src/gcc-7.3.0/gcc-7.3.0/newlib/libc/include -B/usr/local/gcc-7.3.0/nvptx-none/bin/ -B/usr/local/gcc-7.3.0/nvptx-none/lib/ -isystem /usr/local/gcc-7.3.0/nvptx-none/include -isystem /usr/local/gcc-7.3.0/nvptx-none/sys-include -mgomp -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.1.0\" -DPACKAGE_STRING=\"newlib\ 2.1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../gcc-7.3.0/newlib/libc/search -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -mgomp -c -o lib_a-hash_func.o `test -f 'hash_func.c' || echo '../../../../../../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 make[8]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib/libc/search' Makefile:635: recipe for target 'all-recursive' failed make[7]: *** [all-recursive] Error 1 make[7]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib/libc' Makefile:627: recipe for target 'all-recursive' failed make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib' Makefile:450: recipe for target 'all' failed make[5]: *** [all] Error 2 make[5]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/mgomp/newlib' Makefile:1188: recipe for target 'multi-do' failed make[4]: *** [multi-do] Error 1 make[4]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/newlib' Makefile:1104: recipe for target 'all-multi' failed make[3]: *** [all-multi] Error 2 make[3]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/newlib' Makefile:450: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build/nvptx-none/newlib' Makefile:11097: recipe for target 'all-target-newlib' failed make[1]: *** [all-target-newlib] Error 2 make[1]: Leaving directory '/export2/src/gcc-7.3.0/gcc-7.3.0_build' Makefile:873: recipe for target 'all' failed make: *** [all] Error 2 loki gcc-7.3.0_build 118 I was able to build that part for gcc-7.2.0 with the same commands. /export2/src/gcc-7.2.0/gcc-7.2.0_build/./gcc/xgcc -B/export2/src/gcc-7.2.0/gcc-7.2.0_build/./gcc/ -nostdinc -B/export2/s rc/gcc-7.2.0/gcc-7.2.0_build/nvptx-none/mgomp/newlib/ -isystem /export2/src/gcc-7.2.0/gcc-7.2.0_build/nvptx-none/mgomp/n ewlib/targ-include -isystem /export2/src/gcc-7.2.0/gcc-7.2.0/newlib/libc/include -B/usr/local/gcc-7.2.0/nvptx-none/bin/ -B/usr/local/gcc-7.2.0/nvptx-none/lib/ -isystem /usr/local/gcc-7.2.0/nvptx-none/include -isystem /usr/local/gcc-7.2.0/nv ptx-none/sys-include -mgomp -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.1.0\" -DPACKAG E_STRING=\"newlib\ 2.1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../gcc-7.2.0/newlib/libc/sea rch -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -mgomp -c -o lib_a-hash_func.o `test -f 'hash_fu nc.c' || echo '../../../../../../gcc-7.2.0/newlib/libc/search/'`hash_func.c /export2/src/gcc-7.2.0/gcc-7.2.0_build/./gcc/xgcc -B/export2/src/gcc-7.2.0/gcc-7.2.0_build/./gcc/ -nostdinc -B/export2/s rc/gcc-7.2.0/gcc-7.2.0_build/nvptx-none/mgomp/newlib/ -isystem /export2/src/gcc-7.2.0/gcc-7.2.0_build/nvptx-none/mgomp/n ewlib/targ-include -isystem /export2/src/gcc-7.2.0/gcc-7.2.0/newlib/libc/include -B/usr/local/gcc-7.2.0/nvptx-none/bin/ -B/usr/local/gcc-7.2.0/nvptx-none/lib/ -isystem /usr/local/gcc-7.2.0/nvptx-none/include -isystem /usr/local/gcc-7.2.0/nv ptx-none/sys-include -mgomp -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.1.0\" -DPACKAG E_STRING=\"newlib\ 2.1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../gcc-7.2.0/newlib/libc/sea rch -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -mgomp -c -o lib_a-hash_log2.o `test -f 'hash_lo g2.c' || echo '../../../../../../gcc-7.2.0/newlib/libc/search/'`hash_log2.c loki gcc-7.3.0 143 diff nvptx-newlib/newlib/libc/search/hash_func.c ../gcc-7.2.0/nvptx-newlib/newlib/libc/search/hash_func.c loki gcc-7.3.0 144 I would be grateful, if somebody knows a solution or can fix the problem. Do you need anything else? Thank you very much for any help in advance. Kind regards Siegmar