obuildfactory icon indicating copy to clipboard operation
obuildfactory copied to clipboard

OpenJDK 7 fails to build on macOS Mojava version 10.14.2 (18C54)

Open nelsnelson opened this issue 6 years ago • 1 comments

I followed the instructions here:

https://github.com/hgomez/obuildfactory/wiki/Building-and-Packaging-OpenJDK7-for-OSX

The gcc version:

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Xcode is Version 10.1 (10B61).

$ xcode-select --version
xcode-select version 2354.

The build invocation:

$ COMPILER_WARNINGS_FATAL=false JAVAC_WARNINGS_FATAL=false XBUILD=true ./obuildfactory/openjdk7/macosx/standalone-job.sh
...
FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    cc
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `/Applications/Xcode.app/Contents/Developer/usr/bin/make' again to build the library,
or `/Applications/Xcode.app/Contents/Developer/usr/bin/make refdoc' to build the API reference (the latter needs python).

Generating modules list in ./objs/ftmodule.h...
* module: truetype  (Windows/Mac font files with extension *.ttf or *.ttc)
* module: type1     (Postscript font files with extension *.pfa or *.pfb)
* module: cff       (OpenType fonts with extension *.otf)
* module: cid       (Postscript CID-keyed fonts, no known extension)
* module: pfr       (PFR/TrueDoc font files with extension *.pfr)
* module: type42    (Type 42 font files with no known extension)
* module: winfnt    (Windows bitmap fonts with extension *.fnt or *.fon)
* module: pcf       (pcf bitmap fonts)
* module: bdf       (bdf bitmap fonts)
* module: sfnt      (helper module for TrueType & OpenType formats)
* module: autofit   (automatic hinting module)
* module: pshinter  (Postscript hinter module)
* module: raster    (monochrome bitmap renderer)
* module: smooth    (anti-aliased bitmap renderer)
* module: smooth    (anti-aliased bitmap renderer for LCDs)
* module: smooth    (anti-aliased bitmap renderer for vertical LCDs)
* module: otvalid   (OpenType validation module)
* module: psaux     (Postscript Type 1 & Type 2 helper module)
* module: psnames   (Postscript & Unicode Glyph name handling)
done.
cd builds/unix; ./configure  '--prefix=/Users/nels.nelson/Documents/code/openjdkathome/OBF_DROP_DIR/freetype' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch i386 -arch x86_64' 'LDFLAGS=-arch i386 -arch x86_64' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch i386 -arch x86_64' '--disable-static' '--with-old-mac-fonts'
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking for gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/Users/nels.nelson/Documents/code/openjdkathome/freetype-2.4.10/builds/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [setup] Error 77

nelsnelson avatar Jan 20 '19 03:01 nelsnelson

sadly Openjdk 7 didnt build with recent xcode 😪

hgomez avatar Jan 20 '19 20:01 hgomez