Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting portage running under Solaris 9 (Portaris!)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 10, 11, 12, 13  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Mon Apr 18, 2005 3:59 pm    Post subject: Reply with quote

this sucks...all the errors you are getting are actually fixed in the new script which is not uploaded yet. you failed to emerge bison because flex fails to emerge because it needs yacc which is not found. And everything else is a cascade effect from there. just do 'emerge bison' and re-run the script. and make sure to report errors.

as for flags, chost should be solaris 10 (you did emerge gcc3.4.3 fine in your log file), CFLAGS are upto you, ARCH should be 'sun'.

CFLAGS="-mcpu=ultrasparc -O3 -pipe" looks reasonable.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Tue Apr 19, 2005 9:25 am    Post subject: Reply with quote

So I have the following variables set in /etc/make.conf

Code:
CHOST="sparc-sun-solaris2.10"
ARCH="sun"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"


I have tried then to emerge bison utility. It has been emerged but the following error arised:
Code:
* error scanning /etc

detto gawk.

Then I have tried binutils - it stops with errors:

Code:
arsup.o(.text+0x550): more undefined references to `libintl_gettext' follow
../bfd/.libs/libbfd.so: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.so: undefined reference to `__udivdi3@GCC_3.0'
../bfd/.libs/libbfd.so: undefined reference to `__ucmpdi2@GCC_3.0'
../bfd/.libs/libbfd.so: undefined reference to `__umoddi3@GCC_3.0'
collect2: ld returned 1 exit status
make[3]: *** [ranlib] Error 1
make[3]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r7/work/build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r7/work/build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r7/work/build/binutils'
make: *** [all-binutils] Error 2

!!! ERROR: sys-devel/binutils-2.15.92.0.2-r7 failed.
!!! Function toolchain-binutils_src_compile, Line 121, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

bash-3.00#


emerge gdbm :

Code:
ranlib .libs/libdb_cxx-4.1.a
/usr/bin/ld: warning: libgcc_s.so.1, needed by ./.libs/libdb-4.1.so, not found (try using -rpath or -rpath-link)
./.libs/libdb-4.1.so: undefined reference to `__udivdi3@GCC_3.0'
collect2: ld returned 1 exit status
make: *** [berkeley_db_svc] Error 1
make: *** Waiting for unfinished jobs....
creating libdb_cxx-4.1.la
(cd .libs && rm -f libdb_cxx-4.1.la && ln -s ../libdb_cxx-4.1.la libdb_cxx-4.1.la)
/sbin/sh ./libtool --mode=link gcc -o berkeley_db_svc -L/opt/portage/usr/lib \
    db_server_proc.lo db_server_svc.lo db_server_util.lo gen_db_server.lo util_log.lo libdb-4.1.la -lrt -lnsl
gcc -o .libs/berkeley_db_svc db_server_proc.o db_server_svc.o db_server_util.o gen_db_server.o util_log.o  -L/opt/portage/usr/lib ./.libs/libdb-4.1.so -lrt -lnsl
/usr/bin/ld: warning: libgcc_s.so.1, needed by ./.libs/libdb-4.1.so, not found (try using -rpath or -rpath-link)
./.libs/libdb-4.1.so: undefined reference to `__udivdi3@GCC_3.0'
collect2: ld returned 1 exit status
make: *** [berkeley_db_svc] Error 1

!!! ERROR: sys-libs/db-4.1.25_p1-r4 failed.
!!! Function src_compile, Line 90, Exitcode 2
!!! make failed


and other similar errors for perl, python.

As you have said, Devsk, it is an old install-sparc.sh script. I looked inside and stumble upon some variables:

Code:
export ARCH="sun"
export CHOST="sparc-sun-solaris2.9"
export CFLAGS="-mcpu=v8 -O2 -pipe"
export CXXFLAGS="${CFLAGS}"
export PORTDIR_OVERLAY=/usr/local/portage
export SHELL=/opt/portage/usr/bin/bash


I've changed the two of them: CHOST and CFLAGS according to above and tried to run install-sparc.sh again. Then:

Code:
Now emerging gnuconfig...
Now emerging bison...
Now emerging binutils...
Now emerging gcc...
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11958 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11959 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11960 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11961 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11962 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11963 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11964 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11965 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11966 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11967 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11968 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11969 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11970 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11971 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11972 Killed                  mv ${i} ${i}.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 509: 11973 Killed                  mv ${i} ${i}.orig
Now emerging gawk...
./install-sparc.sh: line 515: 11974 Killed                  LDFLAGS="-Wl,-E" emerge -O gawk >>${portageDir}/portage-emerge.log 2>&1
Now emerging berkdb pkgs...
./install-sparc.sh: line 524: 11975 Killed                  emerge -O db gdbm >>${portageDir}/portage-emerge.log 2>&1
Now emerging ccache...
./install-sparc.sh: line 533: 11976 Killed                  emerge -O ccache >>${portageDir}/portage-emerge.log 2>&1
Now emerging texinfo...
./install-sparc.sh: line 542: 11977 Killed                  emerge -O sys-apps/texinfo >>${portageDir}/portage-emerge.log 2>&1
Now emerging perl...
./install-sparc.sh: line 551: 11978 Killed                  emerge -O libperl perl expat XML-Parser >>${portageDir}/portage-emerge.log 2>&1
Now emerging python...
./install-sparc.sh: line 560: 11979 Killed                  ACCEPT_KEYWORDS=~sparc emerge -O python >>${portageDir}/portage-emerge.log 2>&1
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 570: 11980 Killed                  mv /opt/portage/usr/bin/python /opt/portage/usr/bin/python.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 570: 11981 Killed                  mv /opt/portage/usr/bin/python2.3 /opt/portage/usr/bin/python2.3.orig
ld.so.1: mv: fatal: libgcc_s.so.1: open failed: No such file or directory
./install-sparc.sh: line 570: 11982 Killed                  mv /opt/portage/usr/lib/libpython2.3.so.1.0 /opt/portage/usr/lib/libpython2.3.so.1.0.orig
Now emerging gentoolkit...
./install-sparc.sh: line 573: 11983 Killed                  emerge -O gentoolkit >>${portageDir}/portage-emerge.log 2>&1
Now emerging GNU makefile tools...
./install-sparc.sh: line 582: 11984 Killed                  emerge -O autoconf automake libtool >>${portageDir}/portage-emerge.log 2>&1
Now emerging the portage itself...
./install-sparc.sh: line 591: 11985 Killed                  ACCEPT_KEYWORDS=~sparc emerge -O "=sys-apps/portage-2.0.51_rc1" >>${portageDir}/portage-emerge.log 2>&1
Now emerging bzip2...
./install-sparc.sh: line 600: 11986 Killed                  emerge -O bzip2 >>${portageDir}/portage-emerge.log 2>&1
Now emerging libXft...
./install-sparc.sh: line 609: 11987 Killed                  emerge renderext libXft >>${portageDir}/portage-emerge.log 2>&1


I think it's a need for a new install-sparc.sh. I have written an e-mail to Pieter Van den Abeele with a plea for that.
Back to top
View user's profile Send private message
Gecklord
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 174

PostPosted: Tue Apr 19, 2005 3:25 pm    Post subject: Reply with quote

Code:
export ARCH="sun"
export CHOST="sparc-sun-solaris2.9"
export CFLAGS="-mcpu=v8 -O2 -pipe"
export CXXFLAGS="${CFLAGS}"
export PORTDIR_OVERLAY=/usr/local/portage
export SHELL=/opt/portage/usr/bin/bash

I guess these variables are the same in the new skript...

emerge flex, re-emerge bison and go for binutils once more
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Apr 19, 2005 4:51 pm    Post subject: Reply with quote

Vestec wrote:
So I have the following variables set in /etc/make.conf
MOD EDIT: Snipped the rest of the quote since it broke the page layout... --plate
you didn't do what I told you to do...:(
those variables should be changed in the system (not in the script) once the portage has been installed.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Fri Apr 22, 2005 8:19 am    Post subject: Reply with quote

I have done it recently as you recommended. Now I have used the newer version from www.metadistribution.org/gentoo/solaris9/ which is of date 06-March-2005.
I have run the script with the two lines for mkheaders included. It produces some error, but I have changed the make.conf and (according to Gecklord) emerged flex, bison and binutils once more. Everything went fine except db, gdbm, perl and python.
I have looked in the portage-emerge.log and found out that the problem is with the library libgcc_s.so.1 which is not in the right path.
I have tried to do the symbolic link
Code:
ln -s /opt/portage/usr/lib/sparcv9/libgcc_s.so.1 /usr/lib/

then set up LD_LIBRARY_PATH
Quote:
bash-3.00# echo $LD_LIBRARY_PATH
/usr/lib/:/opt/portage/usr/lib/:/opt/portage/usr/lib/sparcv9/:.

and
Code:
emerge db

but the error showed up again (even if it's in right path).

see the log:
www.truni.sk/portage-emerge.log

BTW: what type of Solaris installation have you used when installing portage? Core or Full ?


Last edited by Vestec on Fri Apr 22, 2005 12:55 pm; edited 2 times in total
Back to top
View user's profile Send private message
Gecklord
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 174

PostPosted: Fri Apr 22, 2005 10:56 am    Post subject: Reply with quote

I think I've used full... but the *db stuff didn't want to get compiled
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Fri Apr 22, 2005 11:05 am    Post subject: Reply with quote

so, Gecklord, is it necessary to have it compiled(db stuff), for emerge utility to run smoothly later?
I guess that it is, 'cos the script try to exchange these utilities instead of system ones.
Geee, I would like it complete, it would be so nice, solaris with portage.
Back to top
View user's profile Send private message
Gecklord
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 174

PostPosted: Fri Apr 22, 2005 7:34 pm    Post subject: Reply with quote

I didn't do explicit testing with or without *db but the stuff that I could compile did work properly.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Fri Apr 22, 2005 7:35 pm    Post subject: Reply with quote

that version is still not new enough(I don't think pieter has uploaded the new version, I don't even have access to those machines at this time)...this libgcc.so.1 problem is fixed in the new tar as well. Its a symlink issue. And certainly can be resolved without re-installing lot of stuff.

try this:

Code:
cd /opt/portage/usr/lib
ls -al libgcc*
cd /opt/portage/lib
ls -al libgcc*
cd /usr/lib
ls -al libgcc*


post output here.

your symlink to sparcv9 version is wrong. But don't remove it as yet. Just post the o/p of above commands and wait for further instruction. This sure can be solved.

You are very close to getting all stuff working, so don't give up now.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Fri Apr 22, 2005 7:42 pm    Post subject: Reply with quote

I wanna mention here that Gecklord did face all (ALL) the problems you are facing and we did exchange lot of pm's regarding this and I did incorporate all (ALL) the changes. Its rather unfortunate that the newer version is still lying somewhere on this planet and you are suffering without it. If I could access the machines and upload the tar myself, I would do it today. But pieter seems to be busy. I will email him again.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Mon Apr 25, 2005 6:49 am    Post subject: Reply with quote

Sure I don't intend to quit it now :-) . Thank you for your involvement in the problem.
Quote:

bash-3.00# cd /opt/portage/usr/lib
bash-3.00# ls -al libgcc*
-rw-r--r-- 1 root other 123558 Oct 1 2004 libgcc_s.so.1.orig
-rw-r--r-- 1 root other 123558 Oct 1 2004 libgcc_s.so.1.orig.orig.orig
-rw-r--r-- 1 root other 123558 Oct 1 2004 libgcc_s.so.1.orig.orig.orig.orig.orig
lrwxrwxrwx 1 root other 13 Apr 22 14:37 libgcc_s.so.orig -> libgcc_s.so.1
lrwxrwxrwx 1 root other 13 Apr 22 10:45 libgcc_s.so.orig.orig.orig -> libgcc_s.so.1
lrwxrwxrwx 1 root other 13 Apr 21 15:55 libgcc_s.so.orig.orig.orig.orig.orig -> libgcc_s.so.1
bash-3.00# cd /opt/portage/lib/
bash-3.00# ls -al libgcc*
libgcc*: No such file or directory
bash-3.00# cd /usr/lib
bash-3.00# ls -al libgcc*
lrwxrwxrwx 1 root root 42 Apr 22 09:59 libgcc_s.so.1 -> /opt/portage/usr/lib/sparcv9/libgcc_s.so.1
bash-3.00#

The link in the /usr/lib has been created by me.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Mon Apr 25, 2005 4:02 pm    Post subject: Reply with quote

some more output:
Code:
crle
gcc-config -l
Back to top
View user's profile Send private message
tarpon
n00b
n00b


Joined: 29 Jan 2005
Posts: 2

PostPosted: Mon Apr 25, 2005 7:11 pm    Post subject: Reply with quote

Is this portaris active? A real project?

Are there any beta-downloads that I could load up on my old dog and play with in my spare time -- maybe even find a bug or two.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Tue Apr 26, 2005 7:00 am    Post subject: Reply with quote

Code:

bash-3.00# crle

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):   /usr/sparc-sun-solaris2.9/lib:/usr/lib/gcc/sparc-sun-solaris2.9/3.4.3:/opt/portage/lib:/opt/portage/usr/lib:/lib:
/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/kerberos/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

Command line:
  crle -c /var/ld/ld.config -l /usr/sparc-sun-solaris2.9/lib:/usr/lib/gcc/sparc-sun-solaris2.9/3.4.3:/opt/portage/lib:/opt/portage/usr/lib:/lib:
/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/kerberos/lib

bash-3.00# gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/sparc-sun-solaris2.9-3.4.3
[1] sparc-sun-solaris2.9-3.4.3 *
bash-3.00#
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Apr 26, 2005 4:19 pm    Post subject: Reply with quote

everything looks good. now do this:

Code:
gcc-config 1
cd /opt/portage/usr/lib
ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1 .
# if this is already not fixed by gcc-config, make a symlink here as well.
cd /usr/lib
ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1 .


now try emerging db, gdbm, perl and python as is done in the script.


Last edited by devsk on Wed Apr 27, 2005 6:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Wed Apr 27, 2005 6:55 am    Post subject: Reply with quote

Quote:
bash-3.00# gcc-config 1
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/sparc-sun-solaris2.9-3.4.3
id: illegal option -- u
Usage: id [-ap] [user]
* Switching to sparc-sun-solaris2.9-3.4.3 compiler...
env: illegal option -- u
Usage: env [-i] [name=value ...] [utility [argument ...]]
env [-] [name=value ...] [utility [argument ...]]
* /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/gcc-config: line 81: env: command not found
[-7G [ ok ]cc-config: Could not get portage CHOST!
bash-3.00# cd /opt/portage/usr/lib
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1 .
bash-3.00#

I do not quite understand the second part of your post, I think you forgot to specify where it is "here"....

I have tried to emerge db and to my pleasant surprise only this error (which I treat as unimportant) remained:
Quote:
* GNU info directory index is up-to-date.
* error scanning /etc

detto for db and perl.
but unfortunately :-( for python:
Quote:
gcc -c -fno-strict-aliasing -DNDEBUG -mcpu=ultrasparc -O3 -pipe -I. -I./Include -fPIC -DPy_BUILD_CORE -o Objects/complexobject.o Objects/complexobject.c
Objects/complexobject.c: In function `complex_pow':
Objects/complexobject.c:469: error: invalid operands to binary ==
Objects/complexobject.c:469: error: wrong type argument to unary minus
Objects/complexobject.c:469: error: invalid operands to binary ==
Objects/complexobject.c:469: error: wrong type argument to unary minus
make: *** [Objects/complexobject.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-lang/python-2.3.4-r1 failed.
!!! Function src_compile, Line 126, Exitcode 2
!!! Parallel make failed
!!! If you need support, post the topmost build error, NOT this status message.

So I have tried this with the hope that you thought the /opt/portage/lib would be "here"
Quote:
bash-3.00# pwd
/opt/portage/lib
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1 .

and again tried to
Code:
emerge -O python

but to no avail. So then I have tried the following directory from crle listing:
Quote:
bash-3.00# ls -la /usr/lib/libgcc_s.so.1
lrwxrwxrwx 1 root root 42 Apr 22 09:59 /usr/lib/libgcc_s.so.1 -> /opt/portage/usr/lib/sparcv9/libgcc_s.so.1

There is only one of the links. So I have added the remaining:
Quote:
bash-3.00# cd /usr/lib/
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
bash-3.00# ls -la /usr/lib/libgcc_s.so
libgcc_s.so libgcc_s.so.1
bash-3.00# ls -la /usr/lib/libgcc_s.so

nothing - emerge of python crashed again.
Quote:
bash-3.00# cd /lib/
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1 .

nothing...
Quote:
bash-3.00# cd /usr/local/lib
bash: cd: /usr/local/lib: No such file or directory
bash-3.00# mkdir /usr/local/lib
bash-3.00# cd /usr/local/lib/
bash-3.00# ls
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so .
bash-3.00# ln -sf /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1 .
bash-3.00# ls
libgcc_s.so libgcc_s.so.1
bash-3.00# ls -la
total 8
drwxr-xr-x 2 root root 512 Apr 27 10:14 .
drwxr-xr-x 4 root root 512 Apr 27 10:14 ..
lrwxrwxrwx 1 root root 51 Apr 27 10:14 libgcc_s.so -> /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so
lrwxrwxrwx 1 root root 53 Apr 27 10:14 libgcc_s.so.1 -> /usr/lib/gcc/sparc-sun-solaris2.9/3.4.3/libgcc_s.so.1
bash-3.00#

nothing again...
But now I have noticed that while compiling the following shows up:
Quote:
configure: WARNING: term.h: present but cannot be compiled
configure: WARNING: term.h: check for missing prerequisite headers?
configure: WARNING: term.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##

so I have re-emerged autoconf, but nothing positive came.
I started then install-sparc.sh script. It went fine, but texinfo, python and makefile (automake not installled, autoconf-2.59-r6 installed) errored.
I tried to
Code:
emerge -O texinfo
and have got this error:
Quote:
gcc -mcpu=ultrasparc -O3 -pipe -L/opt/portage/usr/lib -o makedoc makedoc.o ../lib/libtxi.a -lcurses ../intl/libintl.a /opt/portage/usr/lib/libiconv.so -Wl,-rpath -Wl,/opt/portage/usr/lib
gcc: ../intl/libintl.a: No such file or directory
make: *** [makedoc] Error 1
make: Leaving directory `/var/tmp/portage/texinfo-4.8/work/texinfo-4.8/info'

I tried to cp libintl.a into /var/tmp/portage/texinfo-4.8/work/texinfo-4.8/intl directory, but with no success.
see the latest log:
www.truni.sk/portage-emerge.log
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Wed Apr 27, 2005 6:03 pm    Post subject: Reply with quote

you couldn't emerge python because of syntax errors. AND that is not the end of the world. you went ahead and overwrote everything by running install script (which is not current) again. Can you please stop over-running me?

your problem with libgcc_s.so was solved by my instructions and you didn't need to do anything after that. no sparcv9 links, no links in /usr/local/lib...God knows what all things you tried.

all you needed to do was to try and emerge a different version of python, may be 2.3.5. compile errors from a package are not the PORTAGE's problem. You don't re-install portage just because you get compile errors from a package. solaris and linux are different from each other and most open source software is developed on linux and it is expected that 1-2% of the packages won't compile properly on solaris. a good open source user usually files bugs against such packages for portability.

so, try to get it back to where it was before you started install script again, by following the above posts, and leave python alone if it doesn't emerge. You have a perfectly good python install in /opt/portage.

one more thing: to fix the errors coming from gcc-config, make sure you do this as root:
Code:
sed -i -e "s:PATH=\":PATH=\"/opt/portage/usr/bin\:/opt/portage/bin:g" /sbin/functions.sh


ignore those configure WARNINGS.

ps: sorry if I sound harsh.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Wed Apr 27, 2005 6:09 pm    Post subject: Reply with quote

Vestec wrote:

So I have tried this with the hope that you thought the /opt/portage/lib would be "here"

somehow "cd /usr/lib" is missing from my post. By here I meant the current directory (which would have been /usr/lib if the "cd /usr/lib" wasn't missing.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Thu Apr 28, 2005 5:45 am    Post subject: Reply with quote

devsk,
it's typical me sometimes - I can't hold back myself and try and try and try. I have learnt a lot of things by such an attitude but I know that I must learn also first to wait and then to try.
So it was not harsh but appropriate :-)
I would do it clean now - reinstall the solaris box and then cleanly step by step according to your instructions...:-)
about 12:00 (GMT+2) Installed.
In the sed line there is non -i option in solaris.
about 12:30 (GMT+2) linking, emerging according to previous posts --> only texinfo, automake, python not emerged (as I remember).
15:00 (GMT+2) re-running the script
Back to top
View user's profile Send private message
Gecklord
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 174

PostPosted: Thu Apr 28, 2005 3:21 pm    Post subject: Reply with quote

try the sed (if there is one) in /opt/portage
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Apr 28, 2005 4:59 pm    Post subject: Reply with quote

Vestec wrote:
devsk,
it's typical me sometimes - I can't hold back myself and try and try and try. I have learnt a lot of things by such an attitude but I know that I must learn also first to wait and then to try.
So it was not harsh but appropriate :-)
I would do it clean now - reinstall the solaris box and then cleanly step by step according to your instructions...:-)
about 12:00 (GMT+2) Installed.
In the sed line there is non -i option in solaris.
about 12:30 (GMT+2) linking, emerging according to previous posts --> only texinfo, automake, python not emerged (as I remember).
15:00 (GMT+2) re-running the script

do you have /etc/profile.env sourced inside of your /etc/profile? I think all your logins should have /opt/portage/usr/bin in the front of the PATH, so sed should be picked from there. This doesn't affect portage operation though, because portage does a source on /etc/profile.env inside.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Fri Apr 29, 2005 7:16 am    Post subject: Reply with quote

I had /opt/portage/usr/bin in the PATH variable in /.profile, but not in the first place. Once place it there, your sed command run smoothly.
But the re-running the script - bad... I think it was due to the vars in make.conf confusion.
In the script the vars are set to:
Quote:
export ARCH="sun"
export CHOST="sparc-sun-solaris2.9"
export CFLAGS="-mcpu=v8 -O2 -pipe"
export CXXFLAGS="${CFLAGS}"
export PORTDIR_OVERLAY=/usr/local/portage
export SHELL=/opt/portage/usr/bin/bash

where in the make.conf we have agreed to set them as follows:
Quote:
ARCH="sun"
CHOST="sparc-sun-solaris2.10"
CFLAGS="-mcpu=ultrasparc -O3 -pipe" (because of SunFireV210 is Sun4U i.e. ultrasparc architecture)

Therefore in such a case there is created sparc-sun-solaris2.10 directory in /usr/lib/gcc/ and so the symlinking is done from that directory which is causing problems when re-running the install script after manually emerging some utils....
So I can either to make exact the same setting of vars in make.conf after first running of install script....or I can edit the install script and re-run it.
10:34 - this editing (and copying of some dirs) sucks...led only to more mismatch --> once again back to original state and do it all again...
being so a nOOOOb :-(
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Apr 30, 2005 7:18 am    Post subject: Reply with quote

Vestec wrote:
BTW: what type of Solaris installation have you used when installing portage? Core or Full ?


Well core doesn't include enough stuff. You need at least developer support for things to compile.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
Vestec
n00b
n00b


Joined: 08 Apr 2005
Posts: 24
Location: Central Europe

PostPosted: Mon May 02, 2005 11:14 am    Post subject: Reply with quote

It's strange. Now I am doing everything cleanly - freshly installed OS (developer level), downloaded portage.
After this first run I had errors in following cases:
bison, binutils, gawk, db, gdbm, texinfo, perl, python, makefiles utils.
I have edited the make.conf then - so as to be the same vars there as in the installl-sparc.sh.
I have emerged flex and bison and re-run the script. Now I have following errors:
binutils & gcc (although emerge -s shows both things installed), gawk, db, gdbm, ccache, texinfo, perl, python, makefile utils, bzip2, libXft
so now I have even more errors :-(
I hav done the recommended symlinking, edited .profile as recommended. Then I have tried
Code:
emerge -O "=sys-devel/gcc-3.4.3"

and have got the following:
Quote:
ld: fatal: option -dn and -P are incompatible
ld: fatal: Flags processing errors
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -mcpu=v8 -O2 -pipe -L/opt/portage/usr/lib conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/gcc-3.4.3 failed.
!!! Function gcc_do_configure, Line 1231, Exitcode 1
!!! failed to run configure
!!! If you need support, post the topmost build error, NOT this status message.

www.truni.sk/portage-emerge.log
so PLEASE Pieter, upload the new script :-)
Back to top
View user's profile Send private message
Gecklord
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 174

PostPosted: Mon May 02, 2005 1:56 pm    Post subject: Reply with quote

I think it's not necessary to re-run the skript. Just run it once, do everything to emerge binutils successfully and go on after that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Goto page Previous  1, 2, 3 ... 10, 11, 12, 13  Next
Page 11 of 13

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum