You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Gabor Greif <gg...@lucent.com> on 2002/05/10 17:28:52 UTC

[solaris] "as" foul...

I attempted a build on sparc-solaris 2.7 today starting with the 0.12 tarball (subversion-r1868).

When assembling apr/atomic/solaris_sparc/apr_atomic_sparc.S using

as -K pic -P -D_ASM -D__STDC__=0 -xarch=v8plus -o apr_atomic_sparc.lo apr_atomic_sparc.S

I get

Assembler messages:
Warning: Unrecognized option following -K
as: unrecognized option `-_ASM'

The as --version is:

as --version
GNU assembler 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.7'.


After removing both -D options I get:

as -K pic -P -xarch=v8plus -o apr_atomic_sparc.lo apr_atomic_sparc.S
Assembler messages:
Warning: Unrecognized option following -K
apr_atomic_sparc.S:72: Fatal error: Unknown opcode: `entry(apr_atomic_add_sparc)'

What I am doing wrong?

Thanks in advance,


	Gabor

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [solaris] "as" foul...

Posted by Gabor Greif <gg...@lucent.com>.
Albert Chin wrote:
> 
> On Fri, May 10, 2002 at 07:28:52PM +0200, Gabor Greif wrote:
> > I attempted a build on sparc-solaris 2.7 today starting with the 0.12 tarball (subversion-r1868).
> >
> > When assembling apr/atomic/solaris_sparc/apr_atomic_sparc.S using
> >
> > as -K pic -P -D_ASM -D__STDC__=0 -xarch=v8plus -o apr_atomic_sparc.lo apr_atomic_sparc.S
> >
> > I get
> >
> > Assembler messages:
> > Warning: Unrecognized option following -K
> > as: unrecognized option `-_ASM'
> 
> What about "-Kpic" or "-KPIC"? From 'as --help':
>  -K                    warn when differences altered for long displacements
>  -KPIC                 generate PIC

Well, the line came from the makefile, literally. In the meantime I can think of a possible cause. I started out with gnu as from binutils 2.8.1 and on the very same error I upgraded to binutils
2.11.2. I still got the error and in my desperation I wrote the mail. Then I rerun ./configure and this time it passed this point, "make" finished without errors. "make install" still fails on the
toplevel targets {install-headers install-lib install-config} with this:

/tmp/subversion-r1868/neon/install-sh -c -d /tmp/subversion-r1868/include/neon
mksh: Fatal error: Cannot load command `/tmp/subversion-r1868/neon/install-sh': Bad file number
Current working directory /tmp/subversion-r1868/neon
*** Error code 1
make: Fatal error: Command failed for target `install-headers'
Current working directory /tmp/subversion-r1868/neon
*** Error code 1
make: Fatal error: Command failed for target `external-install'

An attempt to run install-sh by hand:
/tmp/subversion-r1868/neon/install-sh -c -d /tmp/subversion-r1868/include/neon

Fails with:
/tmp/subversion-r1868/neon/install-sh: Permission denied.

No wonder, the permissions are "-rw-r--r--"

chmod u+x /tmp/subversion-r1868/neon/install-sh

Now at least it executes.

"make install" works too in this regard. (See end of message for `install-info' problems, maybe configure should check for "makeinfo"?)

Either this way or commenting out those targets, I at least get a running svn binary.

Then I seem to have trouble coming thru the proxy (yes, I set up the proxy file):
bin/svn co http://svn.collab.net/repos/svn/trunk -d /tmp/svn

svn_error: #21091 : <RA layer request failed>
  OPTIONS request failed on /repos/svn/trunk

svn_error: #21091 : <RA layer request failed>
  OPTIONS of /repos/svn/trunk: could not connect to server


I wonder why "OPTIONS" is not mentioned in the FAQ...

> 
> BTW, why are you using GNU as on Solaris 7? We've never had a problem
> with Solaris as on 7 and above.

Well, it shouldn't matter anyway, modulo bugs they should emit the same binary.


Thanks a lot, I hope my feedback helps to improve the installation process on sparc ;-)

	Gabor

> 
> --
> albert chin (china@thewrittenword.com)



----------------------------------------------------------
echo cannot run makeinfo -I `dirname doc/user/svn_for_cvs_users/svn_for_cvs_users.texi` -o doc/user/svn_for_cvs_users/svn_for_cvs_users.info doc/user/svn_for_cvs_users/svn_for_cvs_users.texi 
cannot run makeinfo -I doc/user/svn_for_cvs_users -o doc/user/svn_for_cvs_users/svn_for_cvs_users.info doc/user/svn_for_cvs_users/svn_for_cvs_users.texi
/tmp/subversion-r1868/ac-helpers/install-sh -c -d /tmp/subversion-r1868/info
/tmp/subversion-r1868/ac-helpers/install-sh -c -m 644 ./doc/user/manual/svn-manual.info /tmp/subversion-r1868/info/svn-manual.info
/tmp/subversion-r1868/ac-helpers/install-sh -c -m 644 doc/user/svn_for_cvs_users/svn_for_cvs_users.info /tmp/subversion-r1868/info/svn_for_cvs_users.info
install:  doc/user/svn_for_cvs_users/svn_for_cvs_users.info does not exist
*** Error code 1
make: Fatal error: Command failed for target `install-info'

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [solaris] "as" foul...

Posted by Albert Chin <su...@thewrittenword.com>.
On Fri, May 10, 2002 at 07:28:52PM +0200, Gabor Greif wrote:
> I attempted a build on sparc-solaris 2.7 today starting with the 0.12 tarball (subversion-r1868).
> 
> When assembling apr/atomic/solaris_sparc/apr_atomic_sparc.S using
> 
> as -K pic -P -D_ASM -D__STDC__=0 -xarch=v8plus -o apr_atomic_sparc.lo apr_atomic_sparc.S
> 
> I get
> 
> Assembler messages:
> Warning: Unrecognized option following -K
> as: unrecognized option `-_ASM'

What about "-Kpic" or "-KPIC"? From 'as --help':
 -K                    warn when differences altered for long displacements
 -KPIC                 generate PIC


BTW, why are you using GNU as on Solaris 7? We've never had a problem
with Solaris as on 7 and above.

-- 
albert chin (china@thewrittenword.com)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org