Port-sh3 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 7 and segfault



I wrote:

> Maybe, sh3-target object compiled by gcc4.8 with -Os(or O1, O2,...) has 
> some promblems, not correct.

In addion,
I built NetBSD/sh3(landisk) with gcc4.5 by build.sh -V HAVE_GCC=45, and 
ran 'make  pkgsrc pkgtools/digest',
It is OK, built success.

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
Target: shle--netbsdelf
Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure
--target=shle--netbsdelf --enable-long-long --enable-threads --with-bugurl=
http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb1 20120
916' --with-system-zlib --enable-__cxa_atexit --with-mpc-lib=/var/obj/mknat
ive/hpcsh/usr/src/external/lgpl2/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mk
native/hpcsh/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/ob
j/mknative/hpcsh/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/
usr/src/external/lgpl2/mpc/dist/src --with-mpfr-include=/usr/src/external/l
gpl3/mpfr/dist --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/ar
ch/sh3el --enable-tls --disable-multilib --disable-symvers --disable-libstd
cxx-pch --build=x86_64-unknown-netbsd6.0. --host=shle--netbsdelf : (reconfi
gured) /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=s
hle--netbsdelf --enable-long-long --enable-threads --with-bugurl=http://www
.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb1 20120916' --wit
h-system-zlib --enable-__cxa_atexit --with-mpc-lib=/var/obj/mknative/hpcsh/
usr/src/external/lgpl2/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/hpc
sh/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative
/hpcsh/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/ex
ternal/lgpl2/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/
dist --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/sh3el -
-enable-tls --disable-multilib --disable-symvers --disable-libstdcxx-pch --
build=x86_64-unknown-netbsd6.0. --host=shle--netbsdelf
Thread model: posix
gcc version 4.5.4 (NetBSD nb1 20120916) 

# cd /usr/pkgsrc/pkgtools/digest; make

[...]

===> Building for digest-20121220
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"shle--netbsdelf\" -DVERSION=\"20121220\"  -Os -freorder-blocks -c digest.c -o digest.o

[...]

gcc -Os -freorder-blocks -Wl,-R/usr/pkg/lib -o digest digest.o md5c.o rmd160.o rmd160hl.o sha2.o sha2hl.o  md5hl.o sha1.o sha1hl.o tiger.o whirlpool.o 
=> Unwrapping files-to-be-installed.


The problem exists only in gcc 4.8 environment.


Thanks.
-- 
Yasushi Oshima


Home | Main Index | Thread Index | Old Index