Hi Dave,

I know there were some discussions about this off-list. Were you able to find a 
solution to this issue?


We have had a handful of cases where users encountered issues installing Chapel 
1.17.1 on Ubuntu 18.04, but we have not been able to pinpoint a single cause 
for those issues yet. We are very interested in understanding this issue (and 
the solution, if found) if you have more information.


Thanks,


Ben

________________________________
From: Rob Upcraft <[email protected]>
Sent: Thursday, July 19, 2018 6:30:22 PM
To: David G. Wonnacott
Cc: Chapel Users Mailing List
Subject: Re: Compiling Chapel on Ubuntu 18.04

Hi Dave,

I'm currently on Ubuntu 18.04.  While this probably doesn't really help your 
situation, it looks like I can currently build from both master and that 
release version (1.17.1) with `make check` working in both cases.  For what 
it's worth, I'm including my gcc version information:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-16ubuntu3' 
--with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs 
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr 
--with-gcc-major-version-only --with-as=/usr/bin/x86_64-linux-gnu-as 
--with-ld=/usr/bin/x86_64-linux-gnu-ld --program-suffix=-7 
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--with-default-libstdcxx-abi=new --enable-gnu-unique-object 
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie 
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto 
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic 
--enable-offload-targets=nvptx-none --without-cuda-driver 
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
--target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)

I know I've been able to build with clang in the past as well, but I don't 
think I've tried it on 18.04 yet.  Either way, I don't build it with very much 
frequency, so I'll let those more experienced with the process chime in with 
suggestions.

On Thu, Jul 19, 2018 at 2:10 PM, David G. Wonnacott 
<[email protected]<mailto:[email protected]>> wrote:
I'm having trouble setting up Chapel 1.17.1 (freshly downloaded) on Ubuntu 
18.04. I went through the commands on the quickstart page

tar xzf chapel-1.17.1.tar.gz
cd /home/courses/chapel-1.17.1/
source util/quickstart/setchplenv.bash
make
make check

but the "make check" step failed as follows:

davew:/home/courses/chapel-1.17.1$ make check
[Info] Running minimal test script: $CHPL_HOME/util/test/checkChplInstall
[Info] Found executable chpl in /home/courses/chapel-1.17.1/bin/linux64/chpl.
[Info] Found $CHPL_HOME directory: /homes/courses/chapel-1.17.1
[Info] /homes/davew/.chpl does not exist. Creating it.
[Info] Temporary test job directory: /homes/davew/.chpl/chapel-test-Qq1rW
[Info] Compiling $CHPL_HOME/examples/hello6-taskpar-dist.chpl
[Fail] Test job failed to compile - Chapel is not installed correctly
[Fail] Compilation output:
/usr/bin/x86_64-linux-gnu-ld: 
/tmp/chpl-davew-24394.deleteme/hello6-taskpar-dist.tmp.o: relocation 
R_X86_64_32 against `.rodata' can not be used when making a PIE object; 
recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: 
/homes/courses/chapel-1.17.1/lib/linux64/gnu/arch-native/loc-flat/comm-none/tasks-fifo/tmr-generic/unwind-none/mem-cstdlib/atomics-intrinsics/gmp-none/none/none/fs-none/main.o:
 relocation R_X86_64_32 against symbol `chpl_executable_init' can not be used 
when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: 
/homes/courses/chapel-1.17.1/lib/linux64/gnu/arch-native/loc-flat/comm-none/tasks-fifo/tmr-generic/unwind-none/mem-cstdlib/atomics-intrinsics/gmp-none/none/none/fs-none/libchpl.a(chpl-linefile-support.o):
 relocation R_X86_64_32S against symbol `chpl_filenameTable' can not be used 
when making a PIE object; recompile with -fPIC
  (lots more like that)
/usr/bin/x86_64-linux-gnu-ld: 
/homes/courses/chapel-1.17.1/lib/linux64/gnu/arch-native/loc-flat/comm-none/tasks-fifo/tmr-generic/unwind-none/mem-cstdlib/atomics-intrinsics/gmp-none/none/none/fs-none/libchpl.a(deque.o):
 relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on 
output
collect2: error: ld returned 1 exit status
/homes/courses/chapel-1.17.1/runtime/etc/Makefile.exe:27: recipe for target 
'/tmp/chpl-davew-24394.deleteme/hello6-taskpar-dist.tmp' failed
make[1]: *** [/tmp/chpl-davew-24394.deleteme/hello6-taskpar-dist.tmp] Error 1
error: compiling generated source
Makefile:192: recipe for target 'check' failed
make: *** [check] Error 1

Is anyone else experiencing this problem? Is anyone succeeding with this 
pairing? Either way, any suggestion for what I should do?  I did a search on 
the chapel mailing list archive but didn't see anything about this.

Dave W

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/chapel-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to