Subject: Re: Trouble building current toolchain.
To: None <ragge@ludd.luth.se>
From: Johnny Billquist <bqt@update.uu.se>
List: port-vax
Date: 02/22/2003 10:36:29
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---293465837-2039312995-1045906589=:27137
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sat, 22 Feb 2003 ragge@ludd.luth.se wrote:

> > The problem is that GCC on VAX defines __USER_LABEL_PREFIX__ to "_" on
> > VAX, but to a null string on other platforms.
> > 
> > The quick fix is to change the macro in libintl.h to not use
> > __USER_LABEL_PREFIX__, but we really should fix gcc.
> > I've looked at it, and I thought I had found it, but so far I've failed to
> > correct gcc.
> > 
> Setting __USER_LABEL_PREFIX__ to an empty string is correct, but there is
> an underlying problem that causes this not to fail when cross-compiling,
> which I haven't even tried to find yet...

That is pretty obvious. The cross-compilation gcc have
__USER_LABEL_PREFIX__ set to a null string.

I'm attaching a small progam to test your gcc.
Do a gcc -S foo.c, and check foo.s. If you have "_KEX" between #APP and
#NO_APP, your gcc have __USER_LABEL_PREFIX__ set to "_", if you just see
"KEX", __USER_LABEL_PREFIX__ is a null string.

Test that with your cross-compilation system as well, and watch the
result.

	Johnny

Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt@update.uu.se           ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol

---293465837-2039312995-1045906589=:27137
Content-Type: TEXT/x-csrc; name="foo.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0302221036290.27137@Tempo.Update.UU.SE>
Content-Description: 
Content-Disposition: attachment; filename="foo.c"

I2luY2x1ZGUgPHN0ZGlvLmg+DQoNCiMgZGVmaW5lIF9JTlRMX0FTTShjbmFt
ZSkgX19hc21fXyAoX0lOVExfQVNNTkFNRSAoX19VU0VSX0xBQkVMX1BSRUZJ
WF9fLCAjY25hbWUpKQ0KIyBkZWZpbmUgX0lOVExfQVNNTkFNRShwcmVmaXgs
Y25hbWVzdHJpbmcpIF9JTlRMX1NUUklOR0lGWSAocHJlZml4KSBjbmFtZXN0
cmluZw0KIyBkZWZpbmUgX0lOVExfU1RSSU5HSUZZKHByZWZpeCkgI3ByZWZp
eA0KbWFpbigpDQp7DQogIF9JTlRMX0FTTShLRVgpOw0KfQ0K
---293465837-2039312995-1045906589=:27137--