Strange behaviour of stock gcc FreeBSD 7/CURRENT

Boris Samorodov bsam at ipt.ru
Tue Jan 8 03:32:40 PST 2008


Hi All,


I've just noticed some new patches for OpenOffice.org which contains:
-----
+Strange behaviour of stock gcc of FreeBSD 7.
+
+# gcc -print-file-name=libgcc_s.so
+/usr/lib/libgcc_s.so
+# gcc -print-file-name=libgcc_s.so.1
+libgcc_s.so.1
+. This sould be
+# gcc -print-file-name=libgcc_s.so.1
+/lib/libgcc_s.so.1
+
+However gcc42 from ports behaves correctly;
+and
+# gcc42 -print-file-name=libgcc_s.so.1
+/usr/local/lib/gcc-4.2.3/gcc/i386-portbld-freebsd7.0/4.2.3/../../../libgcc_s.so.1
+# gcc42 -print-file-name=libgcc_s.so
+/usr/local/lib/gcc-4.2.3/gcc/i386-portbld-freebsd7.0/4.2.3/../../../libgcc_s.so
+.
-----

It's true for both i386 and amd64 CURRENT. For i386:
-----
tb% uname -a
FreeBSD tb.ipt.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Jan  5 15:55:54 MSK 2008     root at tb.ipt.ru:/usr/obj/usr/src/sys/GENERIC  i386
tb% gcc -print-file-name=libgcc_s.so
/usr/lib/libgcc_s.so
tb% gcc -print-file-name=libgcc_s.so.1
libgcc_s.so.1
tb% 
-----

Is it a known bug/feature/else? Thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-current mailing list