> On Oct 9, 2015, at 21:51, hbjbb...@yahoo.co.jp wrote: > > > Dear Developers of gcc5 (fink), > > Thank you very much for developing nice packages for MacOS X. > I have found that gcj in gcc5 (5.2.0-1) on MacOS X 10.11 (El capitan) does > not work properly. > It hangs in the compilation of the HelloWorld program. > Please fix this problem. > Thank you very much in advance. > > Sincerely yours, > > Satoshi Adachi > > P.S. > > The parallel execution of multiple jobs in building gcc5 seems to be unstable. > (I am using MacBook Pro (core i5). Activity Monitor.app displays 4 vertical > bars.) > The build process sometimes fails. The location of failure changes in each > build. > I repeated the build process of gcc5 several times. Twice, the build process > succeeded > to obtain the final executables. The reported behavior of gcj was observed in > both cases. > > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Last login: Sat Oct 10 13:11:17 on ttys010 > [wisdom4:~:1] adachi% cd work/642 > [wisdom4:~/work/642:2] adachi% ls > ./ ../ HelloWorld.java > [wisdom4:~/work/642:3] adachi% cat HelloWorld.java > /****************************************************************************** > * Compilation: javac HelloWorld.java > * Execution: java HelloWorld > * > * Prints "Hello, World". By tradition, this is everyone's first program. > * > * % java HelloWorld > * Hello, World > * > * These 17 lines of text are comments. They are not part of the program; > * they serve to remind us about its properties. The first two lines tell > * us what to type to compile and test the program. The next line describes > * the purpose of the program. The next few lines give a sample execution > * of the program and the resulting output. We will always include such > * lines in our programs and encourage you to do the same. > * > > ******************************************************************************/ > > public class HelloWorld { > > public static void main(String[] args) { > System.out.println("Hello, World"); > } > > } > [wisdom4:~/work/642:4] adachi% which gcj > /sw/bin/gcj > [wisdom4:~/work/642:5] adachi% gcj --version > gcj (GCC) 5.2.0 > Copyright (C) 2015 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > [wisdom4:~/work/642:6] adachi% fink list | grep gcc5 > i gcc5 5.2.0-1 GNU Compiler Collection Version 5 > i gcc5-compiler 5.2.0-1 Compiler Binaries for gcc5 > i gcc5-shlibs 5.2.0-1 Shared libraries for gcc4 > [wisdom4:~/work/642:7] adachi% sw_vers > ProductName: Mac OS X > ProductVersion: 10.11 > BuildVersion: 15A284 > [wisdom4:~/work/642:8] adachi% gcj -v --main=HelloWorld -o HelloWorld > HelloWorld.java > 組み込み spec を使用しています。 > /sw/lib/gcc5/lib/gcc/x86_64-apple-darwin15.0.0/5.2.0/../../../libgcj.spec から > spec を読み込んでいます > spec startfile を startfileorig に名前を変更します > spec lib を liborig に名前を変更します > COLLECT_GCC=gcj > COLLECT_LTO_WRAPPER=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin15.0.0/5.2.0/lto-wrapper > ターゲット: x86_64-apple-darwin15.0.0 > configure 設定: ../gcc-5.2.0/configure --prefix=/sw --prefix=/sw/lib/gcc5 > --mandir=/sw/share/man --infodir=/sw/lib/gcc5/info > --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw > --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib > --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib > --program-suffix=-fsf-5 --with-build-config=bootstrap-debug > スレッドモデル: posix > gcc バージョン 5.2.0 (GCC) > COLLECT_GCC_OPTIONS='-fsaw-java-file' '-mmacosx-version-min=10.11.0' '-v' > '-o' 'HelloWorld' > '-fbootclasspath=./:/sw/lib/gcc5/share/java/libgcj-5.2.0.jar' '-g1' > '-specs=libgcj.spec' '-shared-libgcc' '-mtune=core2' > /sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin15.0.0/5.2.0/ecj1 > HelloWorld.java -g1 > -fbootclasspath=./:/sw/lib/gcc5/share/java/libgcj-5.2.0.jar -g1 -fsource=1.5 > -ftarget=1.5 -fzip-dependency > /var/folders/pr/42nw3_x1551d8smz43jz42tr0000gn/T//cc4DBgCm.zip -fzip-target > /var/folders/pr/42nw3_x1551d8smz43jz42tr0000gn/T//ccHZMG3C.jar > ^C > [wisdom4:~/work/642:9] adachi% > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > ——————————————————————————————————————— > _______________________________________________
There’s a newer gcc5 available as of today—it’s version 5.2.0-2. I’m not sure whether it will help with your issue, but it may be worth a try. I found a post ( http://www.spinics.net/lists/gcchelp/msg44306.html <http://www.spinics.net/lists/gcchelp/msg44306.html> ) which suggests that this may not necessarily be specific to our gcj build.
------------------------------------------------------------------------------
_______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel