Skip to contentSkip to conversation

should we teach gcc some new tricks?

parisc-linux Randolph Chung 7 participants 29 messages Mar 24, 2005 – Jun 23, 2005 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

i've been looking at the extreme slowness of ext3 during some workloads. came across this bit of code... not that it will make any difference, but i wonder if we can make gcc a bit smarter?

given this bit of C code:

static inline int test_bit(int nr, const void * addr)

{
	const unsigned char *ADDR = (const unsigned char *) addr;
	return (ADDR[nr >> 3] >> (nr & 7)) & 1;
}

int proc1(int nr, int foo)

{
	int ret;
	char *buf1, *buf2;

	if (test_bit(nr, buf1))
		return 0;

	if (foo)
		ret = 1;
	else
		ret = !test_bit(nr, buf2);
	return ret;
}

int proc2(int nr, int foo)

{
	char *buf1, *buf2;

	if (test_bit(nr, buf1))
		return 0;

	if (foo)
		return 1;
	else
		return !test_bit(nr, buf2);
}

i would have expected gcc to produce the same code for proc1() and proc2() (and in fact it does for 32-bit), but for 64-bit, proc2() is 2 insn shorter than proc1(). it seems like there are also some opportunities for further optimizations if gcc can recognize that the return value can only be 0 or 1, so the sign extension (?) extrd insn at the end is not needed, and we can deposit the result directly into ret0 instead of r20. that should save us 2 insns.

.globl proc2
.type proc2, @function
proc2:

	.PROC
	.CALLINFO FRAME=0,NO_CALLS
	.ENTRY
	extrd,s %r26,63,32,%r26
	extrw,u %r26,31,3,%r19
	extrd,s %r25,63,32,%r25
	mtsarcm %r19
	extrd,s %r26,60,61,%r26
	ldb %r26(%r20),%r19
	extrw,s %r19,%sar,32,%r19
	bb,*< %r19,63,.L10
	ldi 0,%r28
	ldi 1,%r28
	cmpb,*<> %r0,%r25,.L10
	ldi 0,%r20
	ldb %r26(%r21),%r19
	extrw,s %r19,%sar,32,%r19
	extrd,s,*< %r19,63,1,%r0
	ldi 1,%r20
	extrd,s %r20,63,32,%r28
.L10:
	bve,n (%r2)
	.EXIT
	.PROCEND

is this worth looking into? :)
randolph

Signature · 7 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#1 lore raw
Quoted 28 lines · Randolph Chung

i've been looking at the extreme slowness of ext3 during some workloads. came across this bit of code... not that it will make any difference, but i wonder if we can make gcc a bit smarter?

given this bit of C code:

static inline int test_bit(int nr, const void * addr)

{
	const unsigned char *ADDR = (const unsigned char *) addr;
	return (ADDR[nr >> 3] >> (nr & 7)) & 1;
}

int proc1(int nr, int foo)

{
	int ret;
	char *buf1, *buf2;

	if (test_bit(nr, buf1))
		return 0;

	if (foo)
		ret = 1;
	else
		ret = !test_bit(nr, buf2);
	return ret;
}

int proc2(int nr, int foo)

Quoted 12 lines
{
	char *buf1, *buf2;

	if (test_bit(nr, buf1))
		return 0;

	if (foo)
		return 1;
	else
		return !test_bit(nr, buf2);
}

GCC 4 already produces the same code for these functions*. Attached is the
final_cleanup dumb of an O2 build of this file.

* I only checked that the assembly was the exact same on ia64, but the
tree dumps only differ in the names of the ret variable.

Signature · 82 lines
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim

;; Function proc1 (proc1)

proc1 (nr, foo)
{
  int D.1253;
  const unsigned char * D.1249;
  char * buf2;
  char * buf1;
  int ret;

<bb 0>:
  D.1249 = (const unsigned char *) (long unsigned int) (nr >> 3);
  D.1253 = nr & 7;
  if (((int) *((const unsigned char *) buf1 + D.1249) >> D.1253 & 1) != 0) goto <L10>; else goto <L2>;

<L10>:;
  ret = 0;
  goto <bb 5> (<L7>);

<L2>:;
  if (foo != 0) goto <L11>; else goto <L4>;

<L11>:;
  ret = 1;
  goto <bb 5> (<L7>);

<L4>:;
  ret = ((int) *(D.1249 + (const unsigned char *) buf2) >> D.1253 & 1) == 0;

<L7>:;
  return ret;

}



;; Function proc2 (proc2)

proc2 (nr, foo)
{
  int D.1291;
  const unsigned char * D.1287;
  char * buf2;
  char * buf1;
  int D.1239;

<bb 0>:
  D.1287 = (const unsigned char *) (long unsigned int) (nr >> 3);
  D.1291 = nr & 7;
  if (((int) *((const unsigned char *) buf1 + D.1287) >> D.1291 & 1) != 0) goto <L9>; else goto <L2>;

<L9>:;
  D.1239 = 0;
  goto <bb 5> (<L6>);

<L2>:;
  if (foo != 0) goto <L10>; else goto <L4>;

<L10>:;
  D.1239 = 1;
  goto <bb 5> (<L6>);

<L4>:;
  D.1239 = ((int) *(D.1287 + (const unsigned char *) buf2) >> D.1291 & 1) == 0;

<L6>:;
  return D.1239;

}


_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#2 lore raw
Quoted 2 lines

GCC 4 already produces the same code for these functions*. Attached is the
final_cleanup dumb of an O2 build of this file.

My impression is that GCC 4 is doing a better job with 64-bit code than previous versions although I haven't run any benchmarks. It could be as much as a 10% improvement in performance on average. However, 64-bit code is still slower than 32-bit code.

Quoted 1 line
Quoted 1 line

From a PA standpoint, GCC 4 is ready for serious testing. All testsuite

bugs have been squashed in C and C++.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#3 lore raw

On Thu, Mar 24, 2005 at 11:19:28AM -0500, John David Anglin wrote:
...

Quoted 2 lines

From a PA standpoint, GCC 4 is ready for serious testing. All testsuite bugs have been squashed in C and C++.

Is there a .deb or tarball available I can drop on a bunch of machines?

I'd be happy to test for kernel builds.

thanks,
grant
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#4 lore raw
Quoted 6 lines · John David Anglin

...

Quoted 2 lines

From a PA standpoint, GCC 4 is ready for serious testing. All testsuite bugs have been squashed in C and C++.

Is there a .deb or tarball available I can drop on a bunch of machines?

There is a recent build in /home/dave/opt/gnu/gcc/gcc-4.0.0 on gsyprf11. Unfortunately, it was built using --with-as= and --with-ld=, so it isn't very portable. I could do a build with the system's as and ld that would be more portable. I'm not setup to generate a .deb that would be system installable.

You are welcome to try the version in /home/dave/opt/gnu/gcc/gcc-4.0.0. It's easily turned into a tarball.

Quoted 1 line

I'd be happy to test for kernel builds.

That would provide useful. In the past, there usually have been new features or deprecated features that have caused problems. 4.0 has a new option, -mfixed_range=, that was introduced so that a small range of fp registers could be used for the xmpyu multiplication insn. It might be useful to experiment with this option to see if it useful. This was borrowed from ia64.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#5 lore raw
Quoted 8 lines · John David Anglin
Quoted 6 lines · John David Anglin

...

Quoted 2 lines

From a PA standpoint, GCC 4 is ready for serious testing. All testsuite bugs have been squashed in C and C++.

Is there a .deb or tarball available I can drop on a bunch of machines?

There is a recent build in /home/dave/opt/gnu/gcc/gcc-4.0.0 on gsyprf11.

Randolph Chung pointed to another gcc-4.0 build on gsyprf7. That's fine for me...but several other people would probably want to try this out on other machines. And I like to make use of distcc. gcc-4.0 must be in the same place on several machines for distcc to work.

Quoted 4 lines

Unfortunately, it was built using --with-as= and --with-ld=, so it isn't very portable. I could do a build with the system's as and ld that would be more portable. I'm not setup to generate a .deb that would be system installable.

A tarball will do for now. Let someone good at debian packaging worry about that bit.
My preference is the tarball use directory names/places like existing gcc-3.x versions do:

grundler@gsyprf11:~$ ls /usr/bin/*3.4
/usr/bin/cpp-3.4*     /usr/bin/hppa-linux-cpp-3.4@
/usr/bin/g++-3.4*     /usr/bin/hppa-linux-g++-3.4@
/usr/bin/gcc-3.4*     /usr/bin/hppa-linux-gcc-3.4@
/usr/bin/gccbug-3.4*  /usr/bin/hppa64-linux-cpp-3.4*
/usr/bin/gcov-3.4*    /usr/bin/hppa64-linux-gcc-3.4*
grundler@gsyprf11:~$ ls /usr/lib/gcc*/hppa*-linux/
/usr/lib/gcc-lib/hppa-linux/:
3.0.4/  3.3.5/

/usr/lib/gcc-lib/hppa64-linux/:
3.0.4/ 3.3.3/ 3.3.5/

/usr/lib/gcc/hppa-linux/:
3.4.4/

/usr/lib/gcc/hppa64-linux/:
3.4.4/

My assumption is a gcc-4.0 tarball won't clobber any existing files. So if that's not possible with the above locations, /opt/gnu would be fine too.

Quoted 1 line

You are welcome to try the version in /home/dave/opt/gnu/gcc/gcc-4.0.0.

Ok - I will over the next couple of days.

Quoted 1 line

It's easily turned into a tarball.

BTW, you can host the tarball on http://gsyprf11.e.h.c/~dave/.
Just "mkdir ~/public_html" and start dropping stuff in there. Alternate URL is http://iou.parisc-linux.org/~dave/

Please advertise where/when a suitable one is available.

Quoted 4 lines
Quoted 1 line

I'd be happy to test for kernel builds.

That would provide useful. In the past, there usually have been new features or deprecated features that have caused problems.

ok

Quoted 4 lines

4.0 has a
new option, -mfixed_range=, that was introduced so that a small range of fp registers could be used for the xmpyu multiplication insn. It might be useful to experiment with this option to see if it useful.

I don't know enough about ABI to understand the issues here. AFAIK, we currently are using FP registers because that's the way multiplication is implemented in the integer math libs we inherited.

Quoted 1 line

This was borrowed from ia64.

*nod*. I expect hppa can benefit for the same reasons: hppa has quite a few FP regs and some things FP can just do alot faster. I just don't know what "some things" consists of.

thanks,
grant

Quoted 5 lines

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 5 lines · John David Anglin
Quoted 5 lines
Quoted 4 lines

4.0 has a
new option, -mfixed_range=, that was introduced so that a small range of fp registers could be used for the xmpyu multiplication insn. It might be useful to experiment with this option to see if it useful.

Quoted 7 lines
Quoted 4 lines

I don't know enough about ABI to understand the issues here. AFAIK, we currently are using FP registers because that's the way multiplication is implemented in the integer math libs we inherited.

No. Currently in kernel builds, the use of FP registers is completely disabled and integer multiplication is done using the millicode library.

Erm...objdump disagrees:
grundler <541>hppa64-linux-objdump -rD vmlinux | fgrep xmpy | wc
1654 11578 82683

First occurance is here:
000000001010bca0 <__muldi3>:

    1010bca0:   37 de 00 80     ldo 40(sp),sp
    1010bca4:   db 56 07 e0     extrd,s r26,31,32,r22
    1010bca8:   73 d6 3f 91     std r22,-38(sp)
    1010bcac:   53 d6 3f 93     fldd -38(sp),fr22
    1010bcb0:   73 d9 3f 91     std r25,-38(sp)
    1010bcb4:   53 d7 3f 93     fldd -38(sp),fr23
    1010bcb8:   3a d7 57 96     xmpyu fr22R,fr23R,fr22
    1010bcbc:   d3 53 1b f0     extrw,u r26,31,16,r19
    1010bcc0:   73 d6 3f 93     fstd fr22,-38(sp)
    1010bcc4:   53 d6 3f 91     ldd -38(sp),r22

...

objdump output is on still on gsyprf11:/tmp/2.6.12-rc1-objdump In case you want to browse it more.

Quoted 4 lines

However with a few FP regs, integer multiplication (32 bit) can be done in hardware except of course on machines that don't have FP hardware. The downside is that the kernel has to save whatever FP registers it uses.

Yeah, I thought that was happening already.
I'm hoping "save_fp %r25" in arch/parisc/kernel/entry.S
takes care of that.

Quoted 2 lines

The -mfixed_range= option "fixes" a range if registers. GCC won't use registers that are fixed.

Yeah, it might make sense to "document" current usage and limit which FP regs the kernel can use. Ie we could reduce FP state that needs to be save when entering the kernel. Context switch would need to save the rest.

thanks,
grant
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#8 lore raw
Quoted 9 lines
Quoted 2 lines

No. Currently in kernel builds, the use of FP registers is completely disabled and integer multiplication is done using the millicode library.

Erm...objdump disagrees:
grundler <541>hppa64-linux-objdump -rD vmlinux | fgrep xmpy | wc
1654 11578 82683

First occurance is here:
000000001010bca0 <__muldi3>:

Not good. This is from libgcc. I see that the muldi3 expander is disabled when we disable FP regs. I'm not sure why but it doesn't seem right. Using the expander, would cause the use of the millicode routine when FP regs are disabled.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#9 lore raw
Quoted 4 lines

Not good. This is from libgcc. I see that the muldi3 expander is disabled when we disable FP regs. I'm not sure why but it doesn't seem right. Using the expander, would cause the use of the millicode routine when FP regs are disabled.

We *do not* disable fpregs in the kernel. We would like to though.

The problem is precisely libgcc - even if we compile the kernel with --disable-fpregs, millicode calls generated by gcc will still use fpregs. One proposal that has been talked about before is if we can compile a version of the millicode lib that uses limited fpregs range and compile the kernel using this new option that Dave is talking about, then we will be able to get by using a (much) smaller subset of fp regs and we won't have to save/restore them in the kernel.

randolph

Signature · 7 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#10 lore raw
Quoted 1 line

We *do not* disable fpregs in the kernel. We would like to though.

I should add that in somewhat recent versions of the kernel, we actually actively use fpregs in some of the kernel code. The "new" pa_memcpy code uses fpregs to copy 8-bytes at a time on both 32-bit and 64-bit machines.

randolph

Signature · 7 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#11 lore raw
In reply to Randolph Chung
Quoted 7 lines
Quoted 4 lines

Not good. This is from libgcc. I see that the muldi3 expander is disabled when we disable FP regs. I'm not sure why but it doesn't seem right. Using the expander, would cause the use of the millicode routine when FP regs are disabled.

We *do not* disable fpregs in the kernel. We would like to though.

Quoted 7 lines

The problem is precisely libgcc - even if we compile the kernel with --disable-fpregs, millicode calls generated by gcc will still use fpregs. One proposal that has been talked about before is if we can compile a version of the millicode lib that uses limited fpregs range and compile the kernel using this new option that Dave is talking about, then we will be able to get by using a (much) smaller subset of fp regs and we won't have to save/restore them in the kernel.

The millicode routines don't use fpregs. Various libgcc functions will use them. However, I think it's a backend bug that causes __muldi3 to get pulled in when the kernel is linked.

The -mfixed-range option should allow you to reduce the set of used fpregs but we need to be sure that the libgcc routines don't get used. Otherwise, we would have to build libgcc with a reduce set of fpregs.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#12 lore raw
In reply to a message not in the archive

Hello Dave,

Quoted 18 lines · John David Anglin
Quoted 9 lines
Quoted 4 lines

4.0 has a
new option, -mfixed_range=, that was introduced so that a small range of fp registers could be used for the xmpyu multiplication insn. It might be useful to experiment with this option to see if it useful.

I don't know enough about ABI to understand the issues here. AFAIK, we currently are using FP registers because that's the way multiplication is implemented in the integer math libs we inherited.

No. Currently in kernel builds, the use of FP registers is completely disabled and integer multiplication is done using the millicode library. However with a few FP regs, integer multiplication (32 bit) can be done in hardware except of course on machines that don't have FP hardware. The downside is that the kernel has to save whatever FP registers it uses.

Quoted 3 lines

The -mfixed_range= option "fixes" a range if registers. GCC won't use registers that are fixed.

Sorry to come back so late with this question but what would be the range of fp registers? or how may I try to define it as accurately as possible?
(I objdump a operating 2.6.12-rc.-pa. 64bit to grep some 'fr[12][0..9]' and all of them seems to be used? Do I have to look elsewhere; tausq also spoke about: sic
[...]One proposal that has been talked about before is if we can
compile a version of the millicode lib that uses limited fpregs range
and compile the kernel using this new option that Dave is talking about,
then we will be able to get by using a (much) smaller subset of fp regs
and we won't have to save/restore them in the kernel. )

Thanks,
Joel
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#13 lore raw
Quoted 9 lines

Sorry to come back so late with this question but what would be the range of fp registers? or how may I try to define it as accurately as possible?
(I objdump a operating 2.6.12-rc.-pa. 64bit to grep some 'fr[12][0..9]' and all of them seems to be used? Do I have to look elsewhere; tausq also spoke about: sic
[...]One proposal that has been talked about before is if we can
compile a version of the millicode lib that uses limited fpregs range
and compile the kernel using this new option that Dave is talking about,
then we will be able to get by using a (much) smaller subset of fp regs
and we won't have to save/restore them in the kernel. )

/* Parse the -mfixed-range= option string. */

static void
fix_range (const char *const_str)
{
int i, first, last;
char *str, *dash, *comma;

/* str must be of the form REG1'-'REG2{,REG1'-'REG} where REG1 and REG2 are either register names or register numbers. The effect of this option is to mark the registers in the range from REG1 to REG2 as ``fixed'' so they won't be used by the compiler. This is used, e.g., to ensure that kernel mode code doesn't use f32-f127. */

You are probably best to use register names. There are 28 fp registers starting at fr4. The number for fr4 is 32. I see there is a typo in the comment regarding the range, "f32-f127". This is a cut and paste error.

The millicode routines don't use the fp regs. However, libgcc does and the kernel is linked against libgcc. Thus, for this to work, you will need to build both a kernel build version of gcc and the kernel with the -mfixed-range option. You probably want to leave about four fp registers unfixed for integer multiplcation. This is essential on hppa64 as we don't have millicode support for 64-bit integer multiplication. This support is provided by libgcc routines.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#14 lore raw
In reply to Joel Soete
Quoted 4 lines · Joel Soete

of fp registers?
or how may I try to define it as accurately as possible?
(I objdump a operating 2.6.12-rc.-pa. 64bit to grep some 'fr[12][0..9]' and all of them seems to be used?

Of course they will all be used - kernel has to save and restore process state when switching context. You have to look at each use and determine why FP is being used. There shouldn't be that many different uses.

Quoted 6 lines

Do I have to look elsewhere; tausq also spoke about: sic [...]One proposal that has been talked about before is if we can compile a version of the millicode lib that uses limited fpregs range and compile the kernel using this new option that Dave is talking about, then we will be able to get by using a (much) smaller subset of fp regs and we won't have to save/restore them in the kernel. )

That's correct - but we will still have to save/restore all FP regs on a general context switch - just a subset of those when entering/leaving the kernel (e.g. handling an external interrupt).

grant
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#15 lore raw
Quoted 9 lines

-- Original Message --
Date: Wed, 22 Jun 2005 23:27:53 -0600
From: Grant Grundler <[email protected]>
To: Joel Soete <[email protected]>
Cc: [email protected]
Subject: Re: [parisc-linux] [gcc] should we teach gcc some new tricks?

Quoted 4 lines
Quoted 3 lines · Joel Soete

of fp registers?
or how may I try to define it as accurately as possible?
(I objdump a operating 2.6.12-rc.-pa. 64bit to grep some 'fr[12][0..9=

]'

Quoted 5 lines

and

Quoted 1 line

all of them seems to be used?

Of course they will all be used - kernel has to save and restore process state when switching context.

Oops I missed it (my bad)

Quoted 4 lines

You have to look at each
use and determine why FP is being used. There shouldn't be that many different uses.

Thanks for enlightenment,

I still have to make a lot of progress ;-)

Quoted 5 lines
Quoted 5 lines

Do I have to look elsewhere; tausq also spoke about: sic [...]One proposal that has been talked about before is if we can compile a version of the millicode lib that uses limited fpregs range=

and compile the kernel using this new option that Dave is talking abo=

ut,

Quoted 1 line
Quoted 1 line

then we will be able to get by using a (much) smaller subset of fp re=

gs

Quoted 6 lines
Quoted 1 line

and we won't have to save/restore them in the kernel. )

That's correct - but we will still have to save/restore all FP regs on a general context switch - just a subset of those when entering/leaving the kernel (e.g. handling an external interrupt).

Thanks,
Joel

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#16 lore raw
In reply to Grant Grundler
Quoted 5 lines · Grant Grundler

On Thu, Mar 24, 2005 at 11:19:28AM -0500, John David Anglin wrote:
...

Quoted 2 lines

From a PA standpoint, GCC 4 is ready for serious testing. All testsuite bugs have been squashed in C and C++.

Quoted 7 lines

Is there a .deb or tarball available I can drop on a bunch of machines?

I'd be happy to test for kernel builds.

thanks,
grant

Try the gcc-snapshot package.

Signature · 10 lines
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#17 lore raw
Quoted 3 lines · James A. Morrison
Quoted 1 line

Is there a .deb or tarball available I can drop on a bunch of machines?

Try the gcc-snapshot package.

Ah..."unstable" package:

	g/gcc-snapshot/gcc-snapshot_20050319-1.diff.gz
	g/gcc-snapshot/gcc-snapshot_20050319-1.dsc
	g/gcc-snapshot/gcc-snapshot_20050319-1_i386.deb
	g/gcc-snapshot/gcc-snapshot_20050319-1_ia64.deb
	g/gcc-snapshot/gcc-snapshot_20050319-1_mipsel.deb
	g/gcc-snapshot/gcc-snapshot_20050319-1_powerpc.deb
	g/gcc-snapshot/gcc-snapshot_20050319-1_s390.deb
	g/gcc-snapshot/gcc-snapshot_20050319.orig.tar.gz

Hrm... looks like hppa didn't build in the last one. Most recent one available is

	g/gcc-snapshot/gcc-snapshot_20050212-1_hppa.deb

Thinking about it more, I'd rather have Dave reccomend a tarball he knows the test results for and is comfortable with them.

thanks though,
grant

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#18 lore raw
In reply to Grant Grundler
Quoted 6 lines · Grant Grundler

On Thu, Mar 24, 2005 at 11:19:28AM -0500, John David Anglin wrote:
...

Quoted 2 lines

From a PA standpoint, GCC 4 is ready for serious testing. All testsuite bugs have been squashed in C and C++.

Is there a .deb or tarball available I can drop on a bunch of machines?

- gcc-snapshot can be found in unstable, although it was pointed out, it's not that recent (I can't upload this one every week without the risk beeing killed by buildd admins for slower architectures ;)

- You can get gcc-4.0 packages from experimental, just add deb http://http.us.debian.org/debian experimental main contrib to /etc/apt/sources.list.
Provided that somebody is building and uploading these ...

Besides the recent gcc-snapshot build failure, I'm having problems building the packages at all at the moment, there's no difference using between sarge and unstable.

- if the build succeeds, every test case in the testsuite fails, due to expect(?) problems. lamont told me that's reproducible on another A500, seeing some messages on the serial console, but I can't see these messages. I'm currently running the A500 kernels from the parisc archives. palinux-a500-defconfig-2.6.{8.1-pa11,11-pa2,12-rc1-pa1} all show the same behaviour.

- The libjava build sometimes fails with an sh/bash error. Restarting the build usually fixes this.

- gnat doesn't build, even if you include some prebuilt files (which might be wrongly generated) from another build.

Besides these minor issues, the packages should be fine.

Matthias
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#19 lore raw
Quoted 11 lines

it's not that recent (I can't upload this one every week without the risk beeing killed by buildd admins for slower architectures ;)

- You can get gcc-4.0 packages from experimental, just add deb http://http.us.debian.org/debian experimental main contrib to /etc/apt/sources.list.
Provided that somebody is building and uploading these ...

Besides the recent gcc-snapshot build failure, I'm having problems building the packages at all at the moment, there's no difference using between sarge and unstable.

I've had this problem from time to time, particularly on server machines. My c3k is solid and this doesn't happen. For some reason, the libjava build is most prone to the segfaults in sh/bash and sometimes make. Grant's recent builds on gsyprf11 seem to have changed the nature of the faults. Now, the kernel panics instead of a segfault in sh. Grant would know more as to what's causing these crashes.

Quoted 6 lines

- if the build succeeds, every test case in the testsuite fails, due to expect(?) problems. lamont told me that's reproducible on another A500, seeing some messages on the serial console, but I can't see these messages. I'm currently running the A500 kernels from the parisc archives. palinux-a500-defconfig-2.6.{8.1-pa11,11-pa2,12-rc1-pa1} all show the same behaviour.

I think that there are issues with expect, tcl and dejagnu.

1) Dejagnu asks expect to trap SEGFAULTS. This is undefined and results in the fault insn being executed repeatively. It's a simple one line fix to remove this:

runtest.exp 2004-08-25 16:11:13.000000000 -0400 renamed from runtest.exp.orig 2004-08-25 16:10:38.000000000 -0400 +0 -0
@@ -1503,8 +1503,7 @@
 if ![exp_debug] {
      foreach sig "{SIGTERM {terminated}} \
		    {SIGINT  {interrupted by user}} \
-             {SIGQUIT {interrupted by user}} \
-             {SIGSEGV {segmentation violation}}" {
+             {SIGQUIT {interrupted by user}}" {

set signal [lindex $sig 0]
set str [lindex $sig 1]
trap "send_error \"got a \[trap -name\] signal, $str \\n\"; log_and_exit;" $signal

I've probably munged the diff doing a cut and paste.

2) There is some kind of timing issue with expect/tcl when a given test ends. This causes expect to hang. When this happens, you will see a defunct expect task. It is a child of the expect task that is hung.

Tcl 8.3 works better than 8.4. I know they have changed some of the code in this area but I don't know why this happens. I've also had this happen on x86 but pa seems much more prone to this problem.

Tcl 8.3 also works better for tests that generate a lot of output. It is less likely to truncate the output resulting in a test failure. I think this has to do with the handling of pipes at exit.

3) A warning appears compiling expect in a couple of places regarding the second argument of waitpid. It's always int. However, expect thinks the type of this argument is WAIT_STATUS_TYPE. This gets used when NO_UNION_WAIT isn't defined. This problem can be worked around be adding "-ansi -D_SVID_SOURCE -D_POSIX_SOURCE" to CFLAGS. I had hoped that fixing this would resolve the expect hangs but it doesn't seem to help. However, I do like a build without warnings. To get this with the above CFLAGS, a number of missing include directives need to be added.

I use the following setup:

   dave@hiauly6:~/gnu/expect-5.43/objdir$ runtest --version
   WARNING: Couldn't find the global config file.
   Expect version is       5.43.0
   Tcl version is          8.3
   Framework version is    1.4.4

I haven't seen any significant difference in behavior between 5.42.1 and 5.43.0. The former is the debian patched source.

4) There is a exit timing issue in tcl 8.4. I tried a patch from the tcl list that claimed to fix this but it didn't seem to fix either the hangs or the truncation problem.

Quoted 2 lines

- The libjava build sometimes fails with an sh/bash error. Restarting the build usually fixes this.

:( I've been hoping that some of these issues are caused by the put_user problem.

Quoted 2 lines

- gnat doesn't build, even if you include some prebuilt files (which might be wrongly generated) from another build.

I've been regularly building gnat, so I think that you may have a problem with your prebuilt files. There was an issue like this in going from 3.3 to 3.4. If you are starting from 3.3, try starting from 3.4.

There is an issue with tasking. I have a patch to enable tasking in Ada. However, even the simplest possible Ada program that uses tasking hangs. I haven't had a chance to look at it much but it seems like that we may have a problem with signals and thread support.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#20 lore raw
Quoted 5 lines · John David Anglin

I've had this problem from time to time, particularly on server machines. My c3k is solid and this doesn't happen. For some reason, the libjava build is most prone to the segfaults in sh/bash and sometimes make. Grant's recent builds on gsyprf11 seem to have changed the nature of the faults.

The Astro chipset IOC_CTRL register was being programmed differently by each firmware. The workstation firmware was more conservative. I've aligned the chipset programming and it seems to have helped on the a500 with this change:

	http://lists.parisc-linux.org/pipermail/parisc-linux-cvs/2005-February/035337.html
Quoted 3 lines

Now, the kernel panics instead
of a segfault in sh. Grant would know more as to what's causing these crashes.

Yeah, we are still seeing this a few times per month too. :^( I don't understand the copy_user_page_asm/do_dp_write data page fault. But I'm no VM guru either. Randolph thinks the parameter regs look valid in the tombstone.

Quoted 5 lines
Quoted 2 lines

- The libjava build sometimes fails with an sh/bash error. Restarting the build usually fixes this.

:( I've been hoping that some of these issues are caused by the put_user problem.

The Astro change above should stabilize it a bit better. Please try a 2.6.11-pa[34] (or later) kernel.

Similarly on pa8800, for kernel builds gcc/make/et al will segfault and gcc sometimes claims internal errors.
It stinks like a chipset/cache coherency issue but I don't see it. jejb isn't seeing any that might be related to VIVT cache either.

My suspicion is we still have a bug outstanding that is causing register corruption - similar to the GR26 corruption you found last December. I've written builds-tools/regtest.c to try to capture the corruption from the user space side but it's not working:
http://cvs.parisc-linux.org/build-tools/regtest.c

I'd like to extend that test to also cover FP regs. Maybe after debugging ext2_find_next_zero and debugging why mpt (u320 SCSI) HPMCs on module load.

grant
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

A message that is not in the archive (sent off-list or not yet received): [email protected]

#22 lore raw
Quoted 2 lines

filed http://bugs.debian.org/301577 (although most of the discussion isn't in the report).

That should be http://bugs.debian.org/301557. Daniel thought this bug should be reassigned to expect. On the other hand, dejagnu maybe expecting too much of expect.

Quoted 4 lines

with /bin/dash as shell and expect-tcl8.3 as expect version, the build and check succeeded. Test results at

http://gcc.gnu.org/ml/gcc-testresults/2005-03/msg01933.html

FAIL: g++.old-deja/g++.warn/compare1.C (test for warnings, line 11)
FAIL: g++.old-deja/g++.warn/compare1.C (test for warnings, line 24)
FAIL: g++.old-deja/g++.warn/compare1.C (test for excess errors)
FAIL: gcc.c-torture/compile/20011119-2.c -O1 (test for excess errors)

These are now fixed.

FAIL: thread/pthread7-rope.cc execution test

I don't see this in my testing. On the other hand, the java failures appear to be related to pthread support, so I think it likely that we have one or more pthread bugs. The java failures vary from one run to another.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#23 lore raw
In reply to a message not in the archive
Quoted 4 lines · Matthias Klose

Using /bin/dash as the shell for the build seems to avoid these problems, I'll bash the Debian bash maintainer ... ;)

Query - Which version of bash? 2.05b or 3.0?

Bash 3.0 has a lot of internal changes, this may
already be fixed.

Mike
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#24 lore raw
In reply to John David Anglin

Hello Dave,

John David Anglin wrote:
[snip]

Quoted 4 lines
Quoted 3 lines

Besides the recent gcc-snapshot build failure, I'm having problems building the packages at all at the moment, there's no difference using between sarge and unstable.

I am trying now the new debian dpkg sources gcc-4.0

Quoted 9 lines

I've had this problem from time to time, particularly on server machines. My c3k is solid and this doesn't happen. For some reason, the libjava build is most prone to the segfaults in sh/bash and sometimes make. Grant's recent builds on gsyprf11 seem to have changed the nature of the faults. Now, the kernel panics instead of a segfault in sh. Grant would know more as to what's causing these crashes.

I am using a sister system a b2k with a 2.6.12-rc2-pa1 64bit (more stable then the 32bit) and an unstable debian install.

Quoted 8 lines
Quoted 7 lines

- if the build succeeds, every test case in the testsuite fails, due to expect(?) problems. lamont told me that's reproducible on another A500, seeing some messages on the serial console, but I can't see these messages. I'm currently running the A500 kernels from the parisc archives. palinux-a500-defconfig-2.6.{8.1-pa11,11-pa2,12-rc1-pa1} all show the same behaviour.

but I unfortunately encounter also an expect pb (hanging):

# ps -ef
[snip]
root     11231 11228  9 17:08 pts/1    00:13:36 expect -- /usr/share/dejagnu/runtest.exp --tool gcc
root     11251 11231  0 17:08 pts/1    00:00:01 [expect] <defunct>
root     13466  1414  0 18:53 ?        00:00:00 sshd: jso [priv]
root     13478 13466  0 18:53 ?        00:00:00 sshd: jso [priv]
jso      13584 13466  0 18:53 ?        00:00:00 sshd: jso@pts/5
jso      13587 13584  0 18:53 pts/5    00:00:00 -bash
root     13695 13587  0 18:53 pts/5    00:00:00 -su
root     14056 11231  0 18:54 pts/1    00:00:00 [20020220-1.exe] <defunct>
root     14057 11231  0 18:54 pts/1    00:00:00 [cat] <defunct>
root     14226 10073  0 19:34 pts/1    00:00:00 sleep 30
root     14227 13695  0 19:34 pts/5    00:00:00 ps -ef
# pstree 11228
expect --- [20020220-1.exe]
         + [cat]
         + [expect]

and the console showing me:

      -------------------------------
             \   ^__^
              \  (xx)\_______
                 (__)\       )\/\
                  U  ||----w |
                     ||     ||

expect (pid 11251): Protection id trap (code 27)

YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000001101111111100001111 Not tainted

r00-03  0000000000000000 000000001046a030 00000000101b21ec 000000001fdafb00
r04-07  00000000105c4ce0 0000000000000000 000000000002e4f8 0000000000000001
r08-11  0000000000000000 000000000002e500 00000000000001fe 000000001fdafb00
r12-15  fffffffffffffff2 0000000000000000 00000000000aa000 00000000000f2f08
r16-19  0000000000000000 00000000000f2a88 0000000000000001 000000001f3ec000
r20-23  0000000000000001 0000000000000000 000000000002e4fe 000000001fdafb1a
r24-27  0000000000000000 0000000000000001 000000001b3dac80 00000000105c4ce0
r28-31  0000000000000000 000000001f3ec3c0 000000001f3ec270 0000000000000000
sr0-3   0000000000bc8800 0000000000000000 0000000000000000 0000000000bc8800
sr4-7   0000000000000000 0000000000000000 0000000000000000 0000000000000000

IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000101b22e4 00000000101b22e8
IIR: 0ed5d240 ISR: 0000000000bc8800 IOR: 000000000002e4fe
CPU: 0 CR30: 000000001f3ec000 CR31: 0000000010584000
ORIG_R28: 000000001010e400
IAOQ[0]: sys_poll+0x274/0x298
IAOQ[1]: sys_poll+0x278/0x298
RP(r2): sys_poll+0x17c/0x298

 # disasm 0ed5d240
   0:   0e d5 d2 40     sth r21,0(sr3,r22)

as r22 ended by E, the privilege of this address would be 2 (the last 2 bits?)

Quoted 20 lines

I think that there are issues with expect, tcl and dejagnu.

1) Dejagnu asks expect to trap SEGFAULTS. This is undefined and results in the fault insn being executed repeatively. It's a simple one line fix to remove this:

runtest.exp 2004-08-25 16:11:13.000000000 -0400 renamed from runtest.exp.orig 2004-08-25 16:10:38.000000000 -0400 +1 -2
@@ -1503,8 +1503,7 @@
 if ![exp_debug] {
      foreach sig "{SIGTERM {terminated}} \
 		    {SIGINT  {interrupted by user}} \
-             {SIGQUIT {interrupted by user}} \
-             {SIGSEGV {segmentation violation}}" {
+             {SIGQUIT {interrupted by user}}" {
 	 set signal [lindex $sig 0]
 	 set str [lindex $sig 1]
 	 trap "send_error \"got a \[trap -name\] signal, $str \\n\"; log_and_exit;" $signal
Quoted 2 lines

I've probably munged the diff doing a cut and paste.

Even thought I applied this patch

Quoted 5 lines

2) There is some kind of timing issue with expect/tcl when a given test ends. This causes expect to hang. When this happens, you will see a defunct expect task. It is a child of the expect task that is hung.

Exactely the one which try to access an address without having enough privilege (if i well understand?)

Quoted 8 lines

Tcl 8.3 works better than 8.4. I know they have changed some of the code in this area but I don't know why this happens. I've also had this happen on x86 but pa seems much more prone to this problem.

Tcl 8.3 also works better for tests that generate a lot of output. It is less likely to truncate the output resulting in a test failure. I think this has to do with the handling of pipes at exit.

Well I just rediscover this kind comments, so still have to test this and the rest

Quoted 18 lines

3) A warning appears compiling expect in a couple of places regarding the second argument of waitpid. It's always int. However, expect thinks the type of this argument is WAIT_STATUS_TYPE. This gets used when NO_UNION_WAIT isn't defined. This problem can be worked around be adding "-ansi -D_SVID_SOURCE -D_POSIX_SOURCE" to CFLAGS. I had hoped that fixing this would resolve the expect hangs but it doesn't seem to help. However, I do like a build without warnings. To get this with the above CFLAGS, a number of missing include directives need to be added.

I use the following setup:

   dave@hiauly6:~/gnu/expect-5.43/objdir$ runtest --version
   WARNING: Couldn't find the global config file.
   Expect version is       5.43.0
   Tcl version is          8.3
   Framework version is    1.4.4
Quoted 8 lines

I haven't seen any significant difference in behavior between 5.42.1 and 5.43.0. The former is the debian patched source.

4) There is a exit timing issue in tcl 8.4. I tried a patch from the tcl list that claimed to fix this but it didn't seem to fix either the hangs or the truncation problem.

Thanks a lot,
Joel

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#25 lore raw
Quoted 30 lines

and the console showing me:

       -------------------------------
              \   ^__^
               \  (xx)\_______
                  (__)\       )\/\
                   U  ||----w |
                      ||     ||

expect (pid 11251): Protection id trap (code 27)

YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000001101111111100001111 Not tainted

r00-03  0000000000000000 000000001046a030 00000000101b21ec 000000001fdafb00
r04-07  00000000105c4ce0 0000000000000000 000000000002e4f8 0000000000000001
r08-11  0000000000000000 000000000002e500 00000000000001fe 000000001fdafb00
r12-15  fffffffffffffff2 0000000000000000 00000000000aa000 00000000000f2f08
r16-19  0000000000000000 00000000000f2a88 0000000000000001 000000001f3ec000
r20-23  0000000000000001 0000000000000000 000000000002e4fe 000000001fdafb1a
r24-27  0000000000000000 0000000000000001 000000001b3dac80 00000000105c4ce0
r28-31  0000000000000000 000000001f3ec3c0 000000001f3ec270 0000000000000000
sr0-3   0000000000bc8800 0000000000000000 0000000000000000 0000000000bc8800
sr4-7   0000000000000000 0000000000000000 0000000000000000 0000000000000000

IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000101b22e4 00000000101b22e8
IIR: 0ed5d240 ISR: 0000000000bc8800 IOR: 000000000002e4fe
CPU: 0 CR30: 000000001f3ec000 CR31: 0000000010584000
ORIG_R28: 000000001010e400
IAOQ[0]: sys_poll+0x274/0x298
IAOQ[1]: sys_poll+0x278/0x298
RP(r2): sys_poll+0x17c/0x298

Quoted 2 lines
  # disasm 0ed5d240
    0:   0e d5 d2 40     sth r21,0(sr3,r22)

Where did this address come from? IAOQ[0] = 0x101b22e4.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#26 lore raw
Quoted 11 lines
Quoted 11 lines

sr0-3 0000000000bc8800 0000000000000000 0000000000000000 0000000000bc8800
sr4-7 0000000000000000 0000000000000000 0000000000000000 0000000000000000

IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000101b22e4 00000000101b22e8
IIR: 0ed5d240 ISR: 0000000000bc8800 IOR: 000000000002e4fe
CPU: 0 CR30: 000000001f3ec000 CR31: 0000000010584000
ORIG_R28: 000000001010e400
IAOQ[0]: sys_poll+0x274/0x298
IAOQ[1]: sys_poll+0x278/0x298
RP(r2): sys_poll+0x17c/0x298

Quoted 4 lines
Quoted 2 lines
  # disasm 0ed5d240
    0:   0e d5 d2 40     sth r21,0(sr3,r22)

Where did this address come from? IAOQ[0] = 0x101b22e4.

Sorry, this is the faulting instruction. However, this isn't much help. This isn't GCC code (GCC doesn't generate code using sr3). It's part of a syscall asm. The value in sr3 seems wierd.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#27 lore raw
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

IAOQ[0]: sys_poll+0x274/0x298
IAOQ[1]: sys_poll+0x278/0x298
RP(r2): sys_poll+0x17c/0x298

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
  # disasm 0ed5d240
    0:   0e d5 d2 40     sth r21,0(sr3,r22)

Where did this address come from? IAOQ[0] = 0x101b22e4.

Sorry, this is the faulting instruction. However, this isn't much help. This isn't GCC code (GCC doesn't generate code using sr3). It's part of a syscall asm. The value in sr3 seems wierd.

The problem code is in fs/select.c:

                for (j=0; j < walk->len; j++, ufds++) {
			if(__put_user(fds[j].revents, &ufds->revents))
				goto out_fds;
		}

The sth is in the __put_user code.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#28 lore raw

Hello Dave,

Come back to expect pb:
o I just grab dpkg src and while I rebuild it localy I noticed that:
./configure [snip] --enable-threads
[snip]
checking for building with threads... configure: WARNING: Expect is not fully thread-enabled. Although significant work has been done towards that goal, it is not complete. Continue compiling at your own risk. no (default)
[snip]
? do you also used this '--enable-threads' options

o I also grab the latest 5.43.0 release and btw lfs recommended the patch: expect-5.43.0-spawn-1.patch
<http://lfs-matrix.net/lfs/view/development/chapter05/expect.html>
? do you already test it?

Thanks,
Joel

Quoted 16 lines · John David Anglin
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

IAOQ[0]: sys_poll+0x274/0x298
IAOQ[1]: sys_poll+0x278/0x298
RP(r2): sys_poll+0x17c/0x298

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
 # disasm 0ed5d240
   0:   0e d5 d2 40     sth r21,0(sr3,r22)

Where did this address come from? IAOQ[0] = 0x101b22e4.

Sorry, this is the faulting instruction. However, this isn't much help. This isn't GCC code (GCC doesn't generate code using sr3). It's part of a syscall asm. The value in sr3 seems wierd.

The problem code is in fs/select.c:

Quoted 8 lines
                for (j=0; j < walk->len; j++, ufds++) {
			if(__put_user(fds[j].revents, &ufds->revents))
				goto out_fds;
		}

The sth is in the __put_user code.

Dave

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#29 lore raw
Quoted 6 lines

Come back to expect pb:
o I just grab dpkg src and while I rebuild it localy I noticed that:
./configure [snip] --enable-threads
[snip]
checking for building with threads... configure: WARNING: Expect is not fully thread-enabled. Although significant work has been done towards that goal, it is not complete. Continue compiling at your own risk.

I don't configure it using --enable-threads. I've been using something like this:

# ../configure  --prefix=/home/dave/opt/gnu --host=hppa-linux --build=hppa-linux --with-tcl=/usr/lib/tcl8.3 --with-tk=/usr/lib/tk8.3 --with-tk=/usr/lib/tk8.3 --with-tclinclude=/usr/include/tcl8.3/tcl-private --with-tkinclude=/usr/include/tcl8.3/tk-private

I used the following CFLAGS:

CFLAGS = -O1 -g -ansi -D_SVID_SOURCE -D_POSIX_SOURCE

-ansi and the defines are because of the wait flag issue.

Quoted 3 lines

o I also grab the latest 5.43.0 release and btw lfs recommended the patch: expect-5.43.0-spawn-1.patch
<http://lfs-matrix.net/lfs/view/development/chapter05/expect.html>
? do you already test it?

I'm running 5.43.0 on one system. I haven't tried the patch.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#30 lore raw
Quoted 10 lines · John David Anglin
Quoted 5 lines

Come back to expect pb:
o I just grab dpkg src and while I rebuild it localy I noticed that:
./configure [snip] --enable-threads
[snip]
checking for building with threads... configure: WARNING: Expect is not fully thread-enabled. Although significant work has been done towards that goal, it is not complete. Continue compiling at your own risk.

I don't configure it using --enable-threads. I've been using something like this:

Quoted 8 lines
# ../configure  --prefix=/home/dave/opt/gnu --host=hppa-linux --build=hppa-linux --with-tcl=/usr/lib/tcl8.3 --with-tk=/usr/lib/tk8.3 --with-tk=/usr/lib/tk8.3 --with-tclinclude=/usr/include/tcl8.3/tcl-private --with-tkinclude=/usr/include/tcl8.3/tk-private

I used the following CFLAGS:

CFLAGS = -O1 -g -ansi -D_SVID_SOURCE -D_POSIX_SOURCE

-ansi and the defines are because of the wait flag issue.

Ok just rebuild my own dpkg with this interesting options ...

Quoted 8 lines
Quoted 4 lines

o I also grab the latest 5.43.0 release and btw lfs recommended the patch: expect-5.43.0-spawn-1.patch
<http://lfs-matrix.net/lfs/view/development/chapter05/expect.html>
? do you already test it?

I'm running 5.43.0 on one system. I haven't tried the patch.

and also with this patch

run autoexpect as simple test seems ok ;-)

I will try to rebuild gcc-4.0 dpkg now...

Thanks for advise,
Joel
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux