svn commit: r452497 - in head/devel: flang flang-clang flang/files

Johannes M Dieterich jmd at freebsd.org
Fri Oct 20 22:03:57 UTC 2017


Hi Joseph,

On Fri, 20 Oct 2017 16:04:59 -0300
Joseph Mingrone <jrm at FreeBSD.org> wrote:

> Johannes M Dieterich <jmd at FreeBSD.org> writes:
> 
> > Author: jmd
> > Date: Fri Oct 20 01:34:43 2017
> > New Revision: 452497
> > URL: https://svnweb.freebsd.org/changeset/ports/452497  
> 
> > Log:
> >   devel/flang-clang and devel/flang: Upgrade to later snapshots.
> > They bring a lot of fixed bugs inside of flang and support for
> > ejecting AVX512 operations. Removes dependency on lang/openmp since
> > devel/llvm40 brings its own (correct) libomp.so.  
> 
> >   Reviewed by:	swills (mentor)
> >   Approved by:	swills (mentor)
> >   Differential Revision:	https://reviews.freebsd.org/D12734  
> 
> Hello Johannes,
> 
> Something in this update has broken configure for math/R.  Is -lm
> missing somewhere?  I tried compiling the simple program below with
> -lm, but it didn't help.
Sorry to hear that. I'll make sure to also testcompile R in the future
before committing. Could you (if you have time, otherwise I'll check
tonight) add -lm to the flang wrapper script installed in
${LOCALBASE}/bin/flang?

flang seems to have trouble with finding its required libraries (I mean
to file a bug report with them).

On a related note: I have https://reviews.freebsd.org/D12735 up, which
upgrades the LLVM dependency to 5.0 (no version change for flang
itself).

Thanks for reporting,

Johannes

> J.
> 
> configure:6154: cc -O2 -pipe  -DLIBICONV_PLUG -fstack-protector
> -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG
> -I/usr/local/include -isystem /usr/local/include
> -L/usr/local/flang/lib -lflang -lexecinfo -L/usr/local/lib
> -fstack-protector conftest.c -L/usr/local/lib
> >&5 /usr/local/flang/lib/libflang.so: undefined reference to
> >`sincos' /usr/local/flang/lib/libflang.so: undefined reference to
> >`sincosf' cc: error: linker command failed with exit code 1 (use -v
> >to see invocation) configure:6158: $? = 1 configure:6196: result: no
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "R"
> | #define PACKAGE_TARNAME "R"
> | #define PACKAGE_VERSION "3.4.2"
> | #define PACKAGE_STRING "R 3.4.2"
> | #define PACKAGE_BUGREPORT "https://bugs.r-project.org"
> | #define PACKAGE_URL "https://www.r-project.org"
> | #define PACKAGE "R"
> | #define VERSION "3.4.2"
> | #define R_PLATFORM "amd64-portbld-freebsd11.1"
> | #define R_CPU "amd64"
> | #define R_VENDOR "portbld"
> | #define R_OS "freebsd11.1"
> | #define Unix 1
> | #define R_ARCH ""
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:6201: error: in `/wrkdirs/usr/ports/math/R/work/R-3.4.2':
> configure:6204: error: C compiler cannot create executables



More information about the svn-ports-all mailing list