Data build for MacOSX broken

Description

The symptoms are that the build appears to be successful (return code 0) but the icudata dylib has no data inside it. All the ICU commands that require data return error codes instead.

1. Checkout ICU from https://github.com/unicode-org/icu
2. Run:

$ ./runConfigureICU MacOSX --enable-debug --disable-release --prefix=/path/to/install
export CPP= CC= CXX= CPPFLAGS= CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS= MAKE=
Running ./configure --enable-debug --disable-release --prefix=/path/to/install for MacOS X (Darwin) using the default compiler

checking for ICU version numbers... release 64.1, library 64.1, unicode version 12.0
checking build system type... x86_64-apple-darwin18.5.0
checking host system type... x86_64-apple-darwin18.5.0
checking whether to build debug libraries... yes
[snip]
config.status: creating samples/cal/Makefile
config.status: creating samples/layout/Makefile
Spawning Python to generate data/rules.mk...
Spawning Python to generate test/testdata/rules.mk...

ICU for C/C++ 64.1 is ready to be built.
[snip]

$ gnumake install
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake[0]: Making `install' in `stubdata'
/bin/sh ../mkinstalldirs /path/to/install/lib
mkdir /path/to/install/lib
/usr/bin/install -c libicudata.64.1.dylib /path/to/install/lib
[snip]
echo timestamp > build-local
DYLD_LIBRARY_PATH=../stubdata:../tools/ctestfw:../lib:$DYLD_LIBRARY_PATH ../bin/pkgdata -O ../data/icupkg.inc -q -c -s /path/to/source/data/out/build/icudt64l -d ../lib -e icudt64 -T ./out/tmp -p icudt64l -m dll -r 64.1 -L icudata ./out/tmp/icudata.lst
pkgdata: clang -DU_ATTRIBUTE_DEPRECATED= -DU_DEBUG=1 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -fno-common -c -I../common -I../common -dynamic -o ./out/tmp/icudt64l_dat.o ./out/tmp/icudt64l_dat.S
pkgdata: clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -o ../lib/libicudata.64.1.dylib ./out/tmp/icudt64l_dat.o -Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.1 -install_namelibicudata.64.dylib
clang: error: unknown argument: '-install_namelibicudata.64.dylib'
– return status = 256
Error generating library file. Failed command: clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -o ../lib/libicudata.64.1.dylib ./out/tmp/icudt64l_dat.o -Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.1 -install_namelibicudata.64.dylib
Error generating assembly code for data.
echo timestamp > packagedata
/bin/sh ../mkinstalldirs /path/to/install/lib
DYLD_LIBRARY_PATH=../stubdata:../tools/ctestfw:../lib:$DYLD_LIBRARY_PATH ../bin/pkgdata -O ../data/icupkg.inc -q -c -s /path/to/source/data/out/build/icudt64l -d ../lib -m dll -r 64.1 -e icudt64 -T ./out/tmp -s ./out/build/icudt64l -p icudt64l -L icudata ./out/tmp/icudata.lst -I /path/to/source/install/lib
pkgdata: clang -DU_ATTRIBUTE_DEPRECATED= -DU_DEBUG=1 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -fno-common -c -I../common -I../common -dynamic -o ./out/tmp/icudt64l_dat.o ./out/tmp/icudt64l_dat.S
pkgdata: clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -o ../lib/libicudata.64.1.dylib ./out/tmp/icudt64l_dat.o -Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.1 -install_namelibicudata.64.dylib
clang: error: unknown argument: '-install_namelibicudata.64.dylib'
– return status = 256
Error generating library file. Failed command: clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -o ../lib/libicudata.64.1.dylib ./out/tmp/icudt64l_dat.o -Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.1 -install_namelibicudata.64.dylib
Error generating assembly code for data.
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake[0]: Making `install' in `extra'
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake[1]: Making `install' in `uconv'

Assignee

Steven R. Loomis

Reporter

Myles C. Maxfield

Components

Labels

None

Reviewer

None

Priority

blocker

Time Needed

Minutes

Fix versions

Configure