Installing on Ubuntu 18.04

41 views
Skip to first unread message

Matthew John

unread,
Jun 25, 2018, 10:15:29 AM6/25/18
to upc-...@lbl.gov

Hi,


Running on Ubuntu 18.04 results in compile time errors such those given below. Is Ubuntu 18.04 and GCC 7 supported from running UPC?


Error during remote HTTP translation:
upcc: error during UPC-to-C translation (sgiupc stage):
In file included from /usr/local/berkeley_upc/opt/include/upcr_geninclude/stdlib.h:6,
                 from /usr/local/berkeley_upc/opt/include/upcr_preinclude/upc.h:68,
                 from Hello.upc:2:
/usr/include/stdlib.h:140: syntax error before `strtof32'
/usr/include/stdlib.h:146: syntax error before `strtof64'
/usr/include/stdlib.h:152: syntax error before `strtof128'
/usr/include/stdlib.h:158: syntax error before `strtof32x'
/usr/include/stdlib.h:164: syntax error before `strtof64x'
/usr/include/stdlib.h:233: syntax error before `_Float32'
/usr/include/stdlib.h:239: syntax error before `_Float64'
/usr/include/stdlib.h:245: syntax error before `_Float128'
/usr/include/stdlib.h:251: syntax error before `_Float32x'
/usr/include/stdlib.h:257: syntax error before `_Float64x'
In file included from /usr/local/berkeley_upc/opt/include/upcr_geninclude/stdlib.h:6,
                 from /usr/local/berkeley_upc/opt/include/upcr_preinclude/upc.h:68,
                 from Hello.upc:2:
/usr/include/stdlib.h:316: syntax error before `strtof32_l'
/usr/include/stdlib.h:323: syntax error before `strtof64_l'
/usr/include/stdlib.h:330: syntax error before `strtof128_l'
/usr/include/stdlib.h:337: syntax error before `strtof32x_l'
/usr/include/stdlib.h:344: syntax error before `strtof64x_l'

The output of upcc -V is:


This is upcc (the Berkeley Unified Parallel C compiler), v. 2.26.0
  (getting remote translator settings...)
----------------------+---------------------------------------------------------
 UPC Runtime          | v. 2.26.0, built on Jun 18 2018 at 11:47:06
----------------------+---------------------------------------------------------
 UPC-to-C translator  | <unable to determine>
----------------------+---------------------------------------------------------
 Translator location  | http://upc-translator.lbl.gov/upcc-2.26.0.cgi
----------------------+---------------------------------------------------------
 networks supported   | smp udp
----------------------+---------------------------------------------------------
 default network      | udp
----------------------+---------------------------------------------------------
 pthreads support     | available (if used, default is 2 pthreads per process)
----------------------+---------------------------------------------------------
 Configured with      | '--with-translator=http://upc-translator.lbl.gov/upcc-2
                      | .26.0.cgi' '--prefix=/usr/local/berkeley_upc/opt'
                      | '--with-multiconf-magic=opt'
----------------------+---------------------------------------------------------
 Configure features   | trans_bupc,pragma_upc_code,driver_upcc,runtime_upcr,
                      | gasnet,upc_collective,upc_io,upc_memcpy_async,
                      | upc_memcpy_vis,upc_ptradd,upc_thread_distance,upc_tick,
                      | upc_sem,upc_dump_shared,upc_trace_printf,upc_trace_mask,
                      | upc_local_to_shared,upc_all_free,pupc,upc_types,
                      | upc_castable,upc_nb,nodebug,notrace,nostats,
                      | nodebugmalloc,nogasp,nothrille,segment_fast,os_linux,
                      | cpu_x86_64,cpu_64,cc_gnu,packedsptr,upc_io_64
----------------------+---------------------------------------------------------
 Configure id         | buildsrv01vm Mon Jun 18 11:41:09 BST 2018 system
----------------------+---------------------------------------------------------
 Binary interface     | 64-bit x86_64-unknown-linux-gnu
----------------------+---------------------------------------------------------
 Runtime interface #  | Runtime supports 3.0 -> 3.12: Translator uses <unable
                      | to determine>
----------------------+---------------------------------------------------------
                      |  --- BACKEND SETTINGS (for udp network) ---
----------------------+---------------------------------------------------------
 C compiler           | /usr/bin/gcc
                      |   GNU/7.3.0/7.3.0
                      |   gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0 Copyright (C) 2017
                      |   Free Software Foundation, Inc.
----------------------+---------------------------------------------------------
 C compiler flags     | -O3 --param max-inline-insns-single=35000 --param
                      | inline-unit-growth=10000 --param
                      | large-function-growth=200000 -Winline -Wno-unused
                      | -Wno-unused-parameter -Wno-address
----------------------+---------------------------------------------------------
 linker               | /usr/bin/g++
                      |   GNU/7.3.0/7.3.0
                      |   g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0 Copyright (C) 2017
                      |   Free Software Foundation, Inc.
----------------------+---------------------------------------------------------
 linker flags         | -O2 -Wno-unused -Wno-unused-parameter -Wno-address
                      | -L/usr/local/berkeley_upc/opt/lib -lupcr-udp-seq
                      | -lumalloc -L/usr/local/berkeley_upc/opt/lib
                      | -lgasnet-udp-seq -lamudp -lrt
                      | -L/usr/lib/gcc/x86_64-linux-gnu/7 -lgcc -lm
----------------------+---------------------------------------------------------


Cheers,

Matt

Dan Bonachea

unread,
Jun 26, 2018, 12:11:46 AM6/26/18
to Matthew John, upc-...@lbl.gov

Hi Matt,


The problem you report looks like one we have fixed in our development tree, and is due to a change in GNU Libc versions 2.26 and newer (not specific to GCC-7 or Ubuntu 18.4).  We expect to have a new release of Berkeley UPC early in July. If you can wait that long, this might be the easiest solution for you.


If you do not wish to wait, you could apply the changes in this git commit to the runtime sources and re-run the Bootstrap script in the Berkeley UPC source distribution (then configure as usual).  That is explained neat the top of the INSTALL.TXT file, but does require that you have autoconf and automake (and possibly libtool) installed.

Hope this helps..
-D


--
You received this message because you are subscribed to the Google Groups "upc-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to upc-users+...@lbl.gov.
To post to this group, send email to upc-...@lbl.gov.
Visit this group at https://groups.google.com/a/lbl.gov/group/upc-users/.

Matthew John

unread,
Jun 26, 2018, 5:31:18 AM6/26/18
to Dan Bonachea, upc-...@lbl.gov

Hi Dan,


Thanks for the information. I will hang on for the new release in July.


Cheers,

Matt


From: Dan Bonachea <dobon...@lbl.gov>
Sent: 26 June 2018 05:11:01
To: Matthew John
Cc: upc-...@lbl.gov
Subject: Re: [upc-users] Installing on Ubuntu 18.04
 
Reply all
Reply to author
Forward
0 new messages