From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Wed, 28 Jun 2000 12:41:21 +0000 From: Quinn Dunkan Message-ID: Subject: [9fans] cc and more Topicbox-Message-UUID: cc8665f8-eac8-11e9-9e20-41e7f4b1d025 I'm trying to port some unix programs to plan9, and having some odd problems with ape/cc and pcc. : /usr/quinn/c/t; cat >test.c main(){return(0);} : /usr/quinn/c/t; ape/cc -v -o test -lc test.c cpp -D__STDC__=1 -D_POSIX_SOURCE= -N -I/386/include/ape -I/sys/include/ape test.c | 8c -J -B -J -B -o libap.o 8l -o test -v /386/lib/ape/libap.a test.o HEADER = -H0x2 -T0x1020 -D0x0 -R0x1000 inuxi = 0 01 0123 fnuxi = 0123 01234567 0.00 ldobj: /386/lib/ape/libap.a [ ... loader noise ... ] ??none??: cannot open file: test.o cc: 8l: 8l 6104:error : /usr/quinn/c/t; /sys/src/ape/cmd/cc.c line 198 says append(&cc, changeext(objs.strings[i], "o")); I changed it to append(&cc, changeext(srcs.strings[i], "o")); and now things seem to work. The same applies to pcc. Also, plan9 won't run during the day. If I run it when it is still light outside, I quickly get random suicides, with strange results, including filesystem corruption, and the occaisional kernel panic. When I run it after hours all is fine. I'm adjusting my sleep schedule accordingly. I can only think of heat. It does get quite warm during the day, but linux on the same machine never has a problem. Perhaps plan9 uses the hardware or memory differently that is in some obscure way more sensitive to the heat. Also, booting plan9 with lilo works just fine, although there is a brief pause after 'PBS...Plan 9 from Bell Labs'. And... I'm getting corruption on certain files coming off of dos partitions. For example, the wrap.tgz update worked fine, but the 06070617.9gz doesn't come over as a valid gzip (works fine from linux, though). Someone else on the list mentioned something that sounded similar. And I'm happily using /dev/kbdmap since I can only type in dvorak. Thanks presotto! Unfortunately it doesn't work with control keys so well, since you can't tell the difference between '\010' produced by the backspace key and '\010' produced by ^H, so when you try to map ^H to ^D where it should go, things go wrong when you hit backspace. Oh well. Lastly, is there an official 9fans archive? I found one that goes back a little ways on mailgate.org, but maybe there's something better out there... And really lastly, what happened to ext2srv (or whatever) used on the install floppy? It doesn't seem to be in the distribution... thanks