these patches are from src.rpm in sh-linux.org. http://rpm.sh-linux.org/rpm-2004/target/SRPMS/ my Lantank works fine with these ebuild. FYI: Lantank http://supertank.iodata.jp/products/sotohdlwu/
Created attachment 62969 [details, diff] glibc-2.3.4.20041102-r2.patch
Created attachment 62970 [details, diff] files/2.3.2/glibc-2.3.2-fpscr_values.patch
Created attachment 62971 [details, diff] files/2.3.3/glibc-2.3.3-sh-nptl-multidir.patch
Created attachment 62972 [details, diff] files/2.3.3/glibc-2.3.3-sh-linux-fcntl_h.patch
Created attachment 62973 [details, diff] files/2.3.3/glibc-2.3.3-sh-tls.patch
Created attachment 62974 [details, diff] files/2.3.3/glibc-2.3.3-sh-linux-procfs.patch
Created attachment 62975 [details, diff] gcc-3.4.3-r2.patch
Created attachment 62976 [details, diff] files/3.4.1/gcc-3.4.1-PR16665.dpatch this is from debian patch
Created attachment 62977 [details, diff] files/3.4.1/gcc-3.4.1-sh-no-reorder-blocks.dpatch from debian patch
erm where's the openssl patch ? :)
Created attachment 63047 [details, diff] openssl-0.9.7e-r2.patch
Created attachment 63048 [details, diff] files/openssl-0.9.7e-sh.patch
When emerge glibc, you have to set "sh4-*" to CHOST instead of "sh-*". FYI: http://www.m17n.org/linux-sh/ml/linux-sh/2002-06/msg00017.html
then you should be using CHOST of sh4-* in your make.conf, not sh-* we cant assume sh-* -> sh4-* since that'll break sh2-* and sh3-*
Created attachment 64830 [details, diff] gcc-3.4.4.patch gcc-3.4.4 works.
Created attachment 64832 [details, diff] patch/71_all_sh-pr16665-fix.patch
Created attachment 64833 [details, diff] patch/72_all_sh-no-reorder-blocks.patch
Comment on attachment 64830 [details, diff] gcc-3.4.4.patch merged into current 3.4.4
sync up and try openssl-0.9.7g and see if it works for superh
Created attachment 64898 [details] openssl.log I cannot emerge openssl-0.9.7g. see openssl.log.
ah, sorry, I did emerge old openssl-0.9.7g. remerge now.
Created attachment 64940 [details] openssl.log
cannot emerge.
Created attachment 64941 [details] openssl.log
ok, syntax error fixed ... sync up and try again ;)
what is the changes? it seems to be fixed none.
the error was in openssl/files/gentoo.config-0.9.7g
cannot compile. gcc -c -I.. -I../.. -I../../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DL_ENDIAN -DTERMIO -Wall -O2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -o asm/mx86-elf.o asm/mx86-elf.s asm/mx86-elf.s: Assembler messages: asm/mx86-elf.s:11: Warning: alignment too large: 15 assumed asm/mx86-elf.s:15: Error: unknown opcode asm/mx86-elf.s:16: Error: unknown opcode ... asm/mx86-elf.s:684: Error: unknown opcode asm/mx86-elf.s:685: Error: unknown opcode make[2]: *** [asm/mx86-elf.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl-0.9.7g/crypto/md5' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl-0.9.7g/crypto' make: *** [sub_all] Error 1
Created attachment 65223 [details, diff] files/openssl-0.9.7g-superh.patch we should not use linux-elf because it has x86_elf_asm.
what about this change: --- files/gentoo.config-0.9.7g 2 Aug 2005 22:11:23 -0000 1.8 +++ files/gentoo.config-0.9.7g 7 Aug 2005 07:54:03 -0000 @@ -91,4 +91,4 @@ linux) sh64*) machine=elf;; - sh*b*) machine="elf -DB_ENDIAN";; - sh*) machine="elf -DL_ENDIAN";; + sh*b*) machine="elf-sh -DB_ENDIAN";; + sh*) machine="elf-sh -DL_ENDIAN";; sparc*v7*) machine=sparcv7;;
of course, we also need to fix gentoo.config. gentoo.config in Comment #30 works fine. fixed in cvs.