gcc-4.5 notes

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Mon Aug 16 20:20:00 GMT 2010


Dave,

Several notes about gcc-4.5.0:

1) I'm using a new FIONREAD patch for Classpath which solves several
issues.  Matching patch for gcc-4.5 attached.

2) fix-libtool-scripts-for-latest-gcc-runtimes.sh doesn't actually do
anything; 's|echo sed|sed|g' fixes that.

3) libgnat import libs are missing:

$ gnatmake hello.adb -bargs -shared
gcc -c hello.adb
gnatbind -shared -x hello.ali
gnatlink hello.ali -shared-libgcc
/usr/lib/gcc/i686-pc-cygwin/4.5.0/../../../../i686-pc-cygwin/bin/ld:
cannot find -lgnat-4.5
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc.exe
gnatmake: *** link failed.

Looking at gcc/ada/gcc-interface/Makefile.in, it looks like there is
supposed to be a adalib/libgnat-4.5.dll.a symlink, but it's not quite
right.  Patch for 4.5.1 attached.

4) After creating said symlink, the resulting binary outputs "Hello,
world!" but does not exit, and requires kill -f to terminate.  The same
code linked statically (IOW w/o "-bargs -shared") runs and exits
correctly.

5) Several -4-suffixed programs have no unversioned alternatives; this
includes: aot-compile, gccbug, jcf-dump, rebuild-gcj-db.  (Of course, if
we drop gcc3, or at least its alternatives, then gcc4 can be
unversioned, making this point moot.)

6) Are the gcj tools working?  If not, perhaps they should just be
dropped until they get figured out.  An alternative would be for me to
ITP my Classpath-based stack.

7) jni.h and jni_md.h should probably be shipped with gcc4-java instead
of gcc4-core.

8) It would be helpful if gcc4-core would provide a libffi.pc pkg-config
file, since for us this is *the* libffi.

HTH,


Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: classpath-0.98-FIONREAD.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100816/e592ac85/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc45-libgnat-implib.patch
Type: text/x-patch
Size: 930 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100816/e592ac85/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.adb
Type: text/x-adasrc
Size: 100 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100816/e592ac85/attachment-0002.bin>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list