9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ape under arm
@ 2012-02-07 16:27 Jeff Sickel
  2012-02-07 21:40 ` [9fans] new zlib (1.2.6) support &| build Jeff Sickel
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Sickel @ 2012-02-07 16:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Just a quick question for other users of ARM based machines:

Should the ape/lib/openssl be ignored for ARM, or is there a decent alternative for objtype=arm when trying to 
build it?  The current build fails as /sys/include/ape/openssl/opensslconf.h errors out with 'unknown objtype'.

Otherwise, I can get ape/lib/openssl to build (though not necessarily be viable) by the subtle change below:

term% cd /sys/include/ape/openssl
term% diffy opensslconf.h
85c85,86
< #if defined(PLAN9) && defined(T386)
---
> #if defined(PLAN9)
> #if defined(T386)
86a88,89
> #elif defined(Tarm)
> #define ARM_ONLY
89a93,94
> #endif
> 


This small change has made it a lot easier to populate my arm tree.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [9fans] new zlib (1.2.6) support &| build
  2012-02-07 16:27 [9fans] ape under arm Jeff Sickel
@ 2012-02-07 21:40 ` Jeff Sickel
  2012-02-07 21:50   ` Jeff Sickel
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Sickel @ 2012-02-07 21:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

While hitting some ape pcc errors while building my arm tree,
I realized that zlib was quite a bit out of date.  The latest
zlib-1.2.6 can be pulled down and installed in

	/sys/src/cmd/gs/zlib

You'll need to remove gzio.c if you didn't do a complete replace,
and then modify the following:

term% pwd
/sys/src/ape/lib/z
term% diffy *
diff /n/dump/2012/0207/sys/src/ape/lib/z/mkfile ./mkfile
11c11,14
< 	gzio.$O\
---
> 	gzclose.$O\
> 	gzlib.$O\
> 	gzread.$O\
> 	gzwrite.$O\
39c42
< CFLAGS=-c
---
> CFLAGS=-c -D_POSIX_SOURCE -D_C99_SNPRINTF_EXTENSION
diff /n/dump/2012/0207/sys/src/ape/lib/z/z.proto ./z.proto
5a6,9
> arm	- sys sys
> 	lib	- sys sys
> 		ape	- sys sys
> 			libz.a	- sys sys



libz.a is a dependency for quite a few other components, so I'll
post something new after more testing.

-jas




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] new zlib (1.2.6) support &| build
  2012-02-07 21:40 ` [9fans] new zlib (1.2.6) support &| build Jeff Sickel
@ 2012-02-07 21:50   ` Jeff Sickel
  2012-02-08  0:18     ` Jeff Sickel
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Sickel @ 2012-02-07 21:50 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

don't forget to update /sys/include/ape/zlib.h




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] new zlib (1.2.6) support &| build
  2012-02-07 21:50   ` Jeff Sickel
@ 2012-02-08  0:18     ` Jeff Sickel
  2012-02-08  0:21       ` erik quanstrom
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Sickel @ 2012-02-08  0:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Feb 7, 2012, at 3:50 PM, Jeff Sickel wrote:

> don't forget to update /sys/include/ape/zlib.h


And for /sys/src/cmd/gs:

% diffy mkfile src/ld.tr
diff /n/dump/2012/0207/sys/src/cmd/gs/mkfile mkfile
141c141
< 	$CC $CFLAGS zlib/$stem.c; mv $stem.$O obj
---
> 	$CC $CFLAGS -D_C99_SNPRINTF_EXTENSION zlib/$stem.c; mv $stem.$O obj
diff /n/dump/2012/0207/sys/src/cmd/gs/src/ld.tr src/ld.tr
268a269,271
> ./obj/gzlib.o \
> ./obj/gzread.o \
> ./obj/gzwrite.o \


Now gs builds (untested) on/for arm.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] new zlib (1.2.6) support &| build
  2012-02-08  0:18     ` Jeff Sickel
@ 2012-02-08  0:21       ` erik quanstrom
  2012-02-08  2:48         ` Jeff Sickel
  0 siblings, 1 reply; 8+ messages in thread
From: erik quanstrom @ 2012-02-08  0:21 UTC (permalink / raw)
  To: 9fans

>
> Now gs builds (untested) on/for arm.

gs already built/works on arm.  did someone break it?
it is too slow to use, though.  does anyone know what's
wrong with gs on amd64?

- erik



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] new zlib (1.2.6) support &| build
  2012-02-08  0:21       ` erik quanstrom
@ 2012-02-08  2:48         ` Jeff Sickel
  2012-02-08  2:52           ` Jeff Sickel
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Sickel @ 2012-02-08  2:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Feb 7, 2012, at 6:21 PM, erik quanstrom wrote:

>>
>> Now gs builds (untested) on/for arm.
>
> gs already built/works on arm.  did someone break it?
> it is too slow to use, though.  does anyone know what's
> wrong with gs on amd64?

not sure, but it as also failing to build for 386 even
with a recent pull.

-jas




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] new zlib (1.2.6) support &| build
  2012-02-08  2:48         ` Jeff Sickel
@ 2012-02-08  2:52           ` Jeff Sickel
  2012-02-08  3:50             ` Jeff Sickel
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Sickel @ 2012-02-08  2:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Feb 7, 2012, at 8:48 PM, Jeff Sickel wrote:

>
> On Feb 7, 2012, at 6:21 PM, erik quanstrom wrote:
>
>>>
>>> Now gs builds (untested) on/for arm.
>>
>> gs already built/works on arm.  did someone break it?
>> it is too slow to use, though.  does anyone know what's
>> wrong with gs on amd64?
>
> not sure, but it as also failing to build for 386 even
> with a recent pull.

It's not so much that gs builds/works, but that zlib was
failing to build.  That failure causes ape to fail, and
then a whole slew of other files never get built.

-jas




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] new zlib (1.2.6) support &| build
  2012-02-08  2:52           ` Jeff Sickel
@ 2012-02-08  3:50             ` Jeff Sickel
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Sickel @ 2012-02-08  3:50 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Feb 7, 2012, at 8:52 PM, Jeff Sickel wrote:

>
> On Feb 7, 2012, at 8:48 PM, Jeff Sickel wrote:
>
>>
>> On Feb 7, 2012, at 6:21 PM, erik quanstrom wrote:
>>
>>>>
>>>> Now gs builds (untested) on/for arm.
>>>
>>> gs already built/works on arm.  did someone break it?
>>> it is too slow to use, though.  does anyone know what's
>>> wrong with gs on amd64?
>>
>> not sure, but it as also failing to build for 386 even
>> with a recent pull.
>
> It's not so much that gs builds/works, but that zlib was
> failing to build.  That failure causes ape to fail, and
> then a whole slew of other files never get built.

aha, technically this was because I had python and some
other contrib packages lumped in w/ my main fossil.

-jas




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-08  3:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 16:27 [9fans] ape under arm Jeff Sickel
2012-02-07 21:40 ` [9fans] new zlib (1.2.6) support &| build Jeff Sickel
2012-02-07 21:50   ` Jeff Sickel
2012-02-08  0:18     ` Jeff Sickel
2012-02-08  0:21       ` erik quanstrom
2012-02-08  2:48         ` Jeff Sickel
2012-02-08  2:52           ` Jeff Sickel
2012-02-08  3:50             ` Jeff Sickel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).