Opened 13 days ago

Last modified 12 days 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
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) 13 days ago.
build log

Download all attachments as: .zip

Change History (6)

Changed 13 days ago by adfernandes (Andrew Fernandes)

Attachment: main.log added

build log

comment:1 Changed 13 days 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 13 days 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 13 days ago by mf2k (Frank Schima)

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

comment:4 Changed 12 days 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 12 days ago by i0ntempest

Well implicit function declaration strikes again.

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

Note: See TracTickets for help on using tickets.