From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65604 invoked by alias); 9 Mar 2018 13:38:19 -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 64176 invoked by uid 89); 9 Mar 2018 13:38:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SEM_URIRED,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mail-yw0-f171.google.com Received: from mail-yw0-f171.google.com (HELO mail-yw0-f171.google.com) (209.85.161.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Mar 2018 13:38:16 +0000 Received: by mail-yw0-f171.google.com with SMTP id g198so1094549ywb.3 for ; Fri, 09 Mar 2018 05:38:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Eq7pWsTAQnHFUhyXg0Eryx3e70qfzL9gHiBqzHGMbLg=; b=gqsxMVqxVeNitffoLfhVY69pnVFodY9AfdcHawYHAnc4hb2W+dRh7WDXNUvyM2M8xk UU/++8EirHNTdMjyKDbglaiO6hHRQT7CV3TD48gvbVA52gLUcIiC86EolHhTXxBIoosB YCXbGs6yanxaRfAGqvMDdp5rHCl6umBao42ocKoOJ8I45m+Xk/qJ9WsdQ7VArtBkfExs /hQo4xthoWRDaO/Cx2VkryWlC8OJRkmI5R3m7N5nYMMb1D4AwNptFUTZOxIT6J/Jf+s/ 8LVTYqgGQDFeMTXIQbxXk0qGxGJAJ/yayCNyaRwcWQp8CpjBAt7VfT0/HiqSDvwX/gIy K8nw== X-Gm-Message-State: APf1xPDOTFekPh/cic6utmnGJC8KScr+9GCMTDg/8Vfa3Lyfl1GnPRwN 8zGQtSB3l2QF8dSFzorQ4EsTNSYGczcNZ9AfJ42qd0Zz X-Google-Smtp-Source: AG47ELsHmLHxJ2rHfWVitlEXd69lPav3JKvYYruRPpEJegnTB6KWHwWjQMHl9brGeLm2Lr6n9XgeMOTfQ7WSSaoNZrY= X-Received: by 10.129.154.10 with SMTP id r10mr19321453ywg.163.1520602694301; Fri, 09 Mar 2018 05:38:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.122.23 with HTTP; Fri, 9 Mar 2018 05:38:13 -0800 (PST) In-Reply-To: <9ffcc278-958a-f711-f435-b3aa184bb9e9@informatik.hs-fulda.de> References: <9ffcc278-958a-f711-f435-b3aa184bb9e9@informatik.hs-fulda.de> From: Ian Lance Taylor Date: Fri, 09 Mar 2018 13:38:00 -0000 Message-ID: Subject: Re: gcc-8-20180225: "go" breaks building OpenMP To: Siegmar Gross Cc: GCC Development Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00116.txt.bz2 On Thu, Mar 8, 2018 at 10:56 PM, Siegmar Gross wrote: > > some days ago I've installed gcc-8-20180225 with accelerator support > on my "SUSE Linux Enterprise Server 12.3 (x86_64)" with gcc-6.4.0. > Yesterday I tried to add the languages objc, obj-c++, and go to my > installation. Unfortunately, I lost the OpenMP support. Adding the > languages step-by-step, I found out that "go" is responsible for the > problem. > > loki local 111 diff -rq gcc-8.0.0_2/nvptx-none/lib/ > gcc-8.0.0_3/nvptx-none/lib/ |& grep -v differ > Only in gcc-8.0.0_2/nvptx-none/lib/: libgfortran.a > Only in gcc-8.0.0_2/nvptx-none/lib/: libgfortran.la > Only in gcc-8.0.0_2/nvptx-none/lib/: libgfortran.spec > Only in gcc-8.0.0_2/nvptx-none/lib/: libgomp.a > Only in gcc-8.0.0_2/nvptx-none/lib/: libgomp.la > Only in gcc-8.0.0_2/nvptx-none/lib/: libgomp.spec > Only in gcc-8.0.0_2/nvptx-none/lib/mgomp: libgfortran.a > Only in gcc-8.0.0_2/nvptx-none/lib/mgomp: libgfortran.la > Only in gcc-8.0.0_2/nvptx-none/lib/mgomp: libgfortran.spec > Only in gcc-8.0.0_2/nvptx-none/lib/mgomp: libgomp.a > Only in gcc-8.0.0_2/nvptx-none/lib/mgomp: libgomp.la > Only in gcc-8.0.0_2/nvptx-none/lib/mgomp: libgomp.spec > loki local 112 > > > > My make-directories show the following differences. > > loki gcc-8.0.0 115 diff -rq make_nvptx-tools_2 make_nvptx-tools_3 |& grep -v > differ | sort > > > loki gcc-8.0.0 116 diff -rq gcc-8.0.0_build_2 gcc-8.0.0_build_3 |& grep -v > differ | sort > Only in gcc-8.0.0_build_2/gcc: b-header-vars > Only in gcc-8.0.0_build_2/gcc: s-header-vars > Only in gcc-8.0.0_build_2/nvptx-none/libgomp/testsuite: > libgomp-test-support.exp > Only in gcc-8.0.0_build_2/nvptx-none/libgomp: .libs > Only in gcc-8.0.0_build_2/nvptx-none/libgomp: affinity.lo > Only in gcc-8.0.0_build_2/nvptx-none/libgomp: affinity.o > ... > Only in gcc-8.0.0_build_2/nvptx-none/libgomp: work.lo > Only in gcc-8.0.0_build_2/nvptx-none/libgomp: work.o > Only in gcc-8.0.0_build_2/nvptx-none/mgomp/libgomp/testsuite: > libgomp-test-support.exp > Only in gcc-8.0.0_build_2/nvptx-none/mgomp/libgomp: .libs > Only in gcc-8.0.0_build_2/nvptx-none/mgomp/libgomp: affinity.lo > Only in gcc-8.0.0_build_2/nvptx-none/mgomp/libgomp: affinity.o > ... > Only in gcc-8.0.0_build_2/nvptx-none/mgomp/libgomp: work.lo > Only in gcc-8.0.0_build_2/nvptx-none/mgomp/libgomp: work.o > Only in gcc-8.0.0_build_2/nvptx-none/mgomp: libgfortran > Only in gcc-8.0.0_build_2/nvptx-none: libgfortran > Only in gcc-8.0.0_build_3/gcc/doc: gccgo.1 > Only in gcc-8.0.0_build_3/gcc/doc: gccgo.info > Only in gcc-8.0.0_build_3/gcc/go/.deps: ast-dump.Po > Only in gcc-8.0.0_build_3/gcc/go/.deps: escape.Po > Only in gcc-8.0.0_build_3/gcc/go/.deps: export.Po > ... > Only in gcc-8.0.0_build_3/gcc/go: unsafe.o > Only in gcc-8.0.0_build_3/gcc/go: wb.o > Only in gcc-8.0.0_build_3/gcc: gccgo > Only in gcc-8.0.0_build_3/gcc: gccgo-cross > Only in gcc-8.0.0_build_3/gcc: go1 > Only in gcc-8.0.0_build_3/nvptx-none: libffi > Only in gcc-8.0.0_build_3: gotools > > > > loki gcc-8.0.0 117 diff -rq gcc-8.0.0_host_build_2 gcc-8.0.0_host_build_3 |& > grep -v differ | sort > Only in gcc-8.0.0_host_build_3/gcc/doc: gccgo.1 > Only in gcc-8.0.0_host_build_3/gcc/doc: gccgo.info > Only in gcc-8.0.0_host_build_3/gcc/go/.deps: ast-dump.Po > Only in gcc-8.0.0_host_build_3/gcc/go/.deps: escape.Po > ... > Only in gcc-8.0.0_host_build_3/gcc/go: unsafe.o > Only in gcc-8.0.0_host_build_3/gcc/go: wb.o > Only in gcc-8.0.0_host_build_3/gcc: gccgo > Only in gcc-8.0.0_host_build_3/gcc: go1 > Only in gcc-8.0.0_host_build_3/prev-gcc/doc: gccgo.1 > Only in gcc-8.0.0_host_build_3/prev-gcc/doc: gccgo.info > Only in gcc-8.0.0_host_build_3/prev-gcc/go/.deps: ast-dump.Po > Only in gcc-8.0.0_host_build_3/prev-gcc/go/.deps: escape.Po > ... > Only in gcc-8.0.0_host_build_3/prev-gcc/go: wb.o > Only in gcc-8.0.0_host_build_3/prev-gcc: gccgo > Only in gcc-8.0.0_host_build_3/prev-gcc: go1 > Only in gcc-8.0.0_host_build_3/x86_64-pc-linux-gnu/32: libffi > Only in gcc-8.0.0_host_build_3/x86_64-pc-linux-gnu/32: libgo > Only in gcc-8.0.0_host_build_3/x86_64-pc-linux-gnu: libffi > Only in gcc-8.0.0_host_build_3/x86_64-pc-linux-gnu: libgo > Only in gcc-8.0.0_host_build_3: gotools > loki gcc-8.0.0 118 > > > > The commands to build both versions are only different for the language > part. > > loki gcc-8.0.0 118 diff README-gcc-8.0.0_2 README-gcc-8.0.0_3 > 77c77 > < --enable-languages=c,c++,objc,obj-c++,fortran,lto \ > --- >> --enable-languages=c,c++,objc,obj-c++,fortran,go,lto \ > 91c91 > < --enable-languages=c,c++,objc,obj-c++,fortran,lto \ > --- >> --enable-languages=c,c++,objc,obj-c++,fortran,go,lto \ > loki gcc-8.0.0 119 > > > > I used the following commands to 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 ) > > mkdir make_nvptx-tools > cd make_nvptx-tools > ../nvptx-tools/configure --prefix=/usr/local/gcc-8.0.0 \ > |& tee log.configure > make |& tee log.make > make install |& tee log.make-install > cd .. > > mkdir gcc-8.0.0_build > cd gcc-8.0.0_build > ../gcc-8.0.0/configure --prefix=/usr/local/gcc-8.0.0 \ > --target=nvptx-none \ > --enable-as-accelerator-for=x86_64-pc-linux-gnu \ > --with-build-time-tools=/usr/local/gcc-8.0.0/nvptx-none/bin \ > --disable-sjlj-exceptions \ > --with-newlib \ > --enable-newlib-io-long-long \ > --enable-languages=c,c++,objc,obj-c++,fortran,go,lto \ > |& tee log.configure > make -j 6 |& tee log.make > make -j 6 install |& tee log.make-install > > mkdir ../gcc-8.0.0_host_build > cd ../gcc-8.0.0_host_build > ../gcc-8.0.0/configure --prefix=/usr/local/gcc-8.0.0 \ > --build=x86_64-pc-linux-gnu \ > --host=x86_64-pc-linux-gnu \ > --target=x86_64-pc-linux-gnu \ > --enable-offload-targets=nvptx-none=/usr/local/gcc-8.0.0/bin \ > --with-cuda-driver=/usr/local/cuda/ \ > --enable-languages=c,c++,objc,obj-c++,fortran,go,lto \ > --enable-nls \ > --enable-threads=posix \ > --with-gmp-lib=/usr/local/lib64 \ > --with-gmp-include=/usr/local/include \ > --with-mpfr-lib=/usr/local/lib64 \ > --with-mpfr-include=/usr/local/include \ > --with-mpc-lib=/usr/local/lib64 \ > --with-mpc-include=/usr/local/include \ > --with-isl-lib=/usr/local/lib64 \ > --with-isl-include=/usr/local/include \ > |& tee log.configure > make -j 6 |& tee log.make > make -j 6 install |& tee log.make-install > > > Using "make" instead of "make -j 6" didn't change the result. Does anybody > know why "go" prohibts a correct build process for OpenMP? Do you need > any files from my build-directories to investigate the problem? I would be > grateful, if somebody knows a solution or can fix the problem. Thank you > very much for any help in advance. Are there any errors during the `make` or `make install`? Ian