Opened 4 years ago

Last modified 3 years ago

#62626 assigned defect

R @4.0.5 compile failure due to implicit declarations

Reported by: adfernandes (Andrew Fernandes) Owned by: kjellpk (Kjell Konis)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc: i0ntempest, cooljeanius (Eric Gallager)
Port: R

Description

Symlinked /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk to MacOSX11.2.sdk

sudo port -dv install R +accelerate-builtin_lapack+gcc10+recommended-openmp+tktcl+x11

/usr/bin/clang -I. -I../../../src/include -I../../../src/include -I. -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.2.sdk -DLOCALEDIR=\"\" -DLOCALEALIAS_PATH=\"\" -DIN_LIBINTL -DHAVE_CONFIG_H -I/System/Library/Frameworks/CoreFoundation.framework/Headers  -fPIC  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.2.sdk -arch x86_64   -c hash-string.c -o hash-string.o
/usr/bin/clang -I. -I../../../src/include -I../../../src/include -I. -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.2.sdk -DLOCALEDIR=\"\" -DLOCALEALIAS_PATH=\"\" -DIN_LIBINTL -DHAVE_CONFIG_H -I/System/Library/Frameworks/CoreFoundation.framework/Headers  -fPIC  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.2.sdk -arch x86_64   -c lock.c -o lock.o
ar -cr libtre.a regcomp.o regerror.o regexec.o tre-ast.o tre-compile.o tre-match-approx.o tre-match-backtrack.o tre-match-parallel.o tre-mem.o tre-parse.o tre-stack.o xmalloc.o
ar -cr libintl.a bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o loadmsgcat.o textdomain.o l10nflist.o explodename.o dcigettext.o dcngettext.o dngettext.o ngettext.o plural.o plural-exp.o langprefs.o localcharset.o localename.o printf.o osdep.o intl-compat.o hash-string.o lock.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: ranlib libtre.a
file: libintl.a(printf.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libintl.a(osdep.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libintl.a(lock.o) has no symbols
ranlib libintl.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libintl.a(printf.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libintl.a(osdep.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libintl.a(lock.o) has no symbols

Build log attached.

I searched Trac but didn't find anything definitive.

I have the latest libtool and cctools installed.

Attachments (1)

main.log (231.0 KB) - added by adfernandes (Andrew Fernandes) 4 years ago.
build log

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by adfernandes (Andrew Fernandes)

Attachment: main.log added

build log

comment:1 Changed 4 years ago by adfernandes (Andrew Fernandes)

Summary: compile failure, ranlib file has no symbols (sigh)R: compile failure, ranlib file has no symbols (sigh)

comment:2 Changed 4 years ago by adfernandes (Andrew Fernandes)

Summary: R: compile failure, ranlib file has no symbols (sigh)R @4.0.5 compile failure, ranlib file has no symbols (sigh)

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Cc: i0ntempest added; szf1234@… removed
Owner: changed from kjell.konis@… to kjellpk

comment:4 Changed 4 years ago by jmroot (Joshua Root)

Keywords: bigsur catalina added; ranlib removed
Summary: R @4.0.5 compile failure, ranlib file has no symbols (sigh)R @4.0.5 compile failure due to implicit declarations

The error actually appears to be:

:info:build blas00.c:6:5: error: implicit declaration of function 'dasum_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build     F77_CALL(dasum)();
:info:build     ^

comment:5 Changed 4 years ago by i0ntempest

Well implicit function declaration strikes again.

Possible workarounds: blacklist Xcode clang, or use openmp variant (which will blacklist Xcode clang).

comment:6 Changed 3 years ago by LenoreHorner

R @ 4.1.0 on Mojave with Xcode 11.3.1 still gives (on this OS with this Xcode):

Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:

_NL_LOCALE_NAME: found in R-4.1.0/config.log objc_lookup_class: found in R-4.1.0/config.log objc_lookUpClass: found in R-4.1.0/config.log

Because it built successfully, there's no log, but it seems like the implicit function declarations haven't been dealt with yet.

comment:7 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:8 in reply to:  6 Changed 3 years ago by cooljeanius (Eric Gallager)

Replying to LenoreHorner:

R @ 4.1.0 on Mojave with Xcode 11.3.1 still gives (on this OS with this Xcode):

Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:

_NL_LOCALE_NAME: found in R-4.1.0/config.log objc_lookup_class: found in R-4.1.0/config.log objc_lookUpClass: found in R-4.1.0/config.log

Because it built successfully, there's no log, but it seems like the implicit function declarations haven't been dealt with yet.

This part is #63387

Note: See TracTickets for help on using tickets.