gerard | 1 Jan 22:50
Picon

compilation problem

hello all,
i've a problem when trying to compile on opensolaris, and i'm not sure 
if it is solaris-related.
This test failed:
cat conftest.c
int main () { asm("pabsw %xmm0, %xmm0"); return 0; }

with gcc:
gcc conftest.c -O3 -march=opteron -mssse3 -m64 -Xlinker -i 
-fno-omit-frame-pointer -fPIC -DPIC -Wall -I. -DHAVE_MALLOC_H 
-L/usr/lib/amd64 -R/usr/lib/amd64 -Wl,-zignore -Wl,-zcombreloc 
-Wl,-Bdirect -lm -L/lib -R/lib -o conftest
/var/tmp//cc1kaqGw.s: Assembler messages:
/var/tmp//cc1kaqGw.s:10: Error: no such instruction: `pabsw %xmm0,%xmm0'

It is gcc 4.3.3
gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.3.3/configure --prefix=/usr/gnu 
--libdir=/usr/gnu/lib --libexecdir=/usr/gnu/lib 
--mandir=/usr/gnu/share/man --infodir=/usr/share/info 
--with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas 
--with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld 
--enable-languages=c,c++,fortran,objc --enable-shared --disable-static 
--enable-decimal-float --with-gmp_include=/usr/include/gmp 
--with-mpfr=/usr/gnu -disable-nls
Thread model: posix
gcc version 4.3.3 (GCC)

(Continue reading)

Bob Friesenhahn | 1 Jan 23:21
Picon
Picon
Gravatar

Re: compilation problem

> Thread model: posix
> gcc version 4.3.3 (GCC)
>
> But it seems that SSE are supported on (open)solaris, so what am i
> missing? What are the requirements to have SSE with (open)solaris?
> I built gcc with SFE, and according the options, i think that i can have
> assembler in C routines.

When I built GCC 4.3.3 and 4.3.4, I used a more modern GNU assembler 
from binutils:

% gcc-4.3.3 -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: /home/bfriesen/src/gnu/gcc-4.3.3/configure 
LDFLAGS='-L/usr/local/lib -R/usr/local/lib' --program-suffix=-4.3.3 
--enable-shared --enable-threads 
--enable-version-specific-runtime-libs --with-gnu-as 
--with-as=/usr/local/lib/binutils-2.19/bin/as --without-gnu-ld 
--with-ld=/usr/ccs/bin/ld --with-cpu=opteron 
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.3.3 (GCC)

And I used a newer binutils (2.20) for 4.4.2:

% gcc -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: /home/bfriesen/src/gnu/gcc-4.4.2/configure 
(Continue reading)

John Martin | 1 Jan 23:40
Picon

Re: compilation problem

On 01/ 1/10 04:50 PM, gerard wrote:
>
> hello all,
> i've a problem when trying to compile on opensolaris, and i'm not sure
> if it is solaris-related.
> This test failed:
> cat conftest.c
> int main () { asm("pabsw %xmm0, %xmm0"); return 0; }
>
> with gcc:
> gcc conftest.c -O3 -march=opteron -mssse3 -m64 -Xlinker -i
> -fno-omit-frame-pointer -fPIC -DPIC -Wall -I. -DHAVE_MALLOC_H
> -L/usr/lib/amd64 -R/usr/lib/amd64 -Wl,-zignore -Wl,-zcombreloc
> -Wl,-Bdirect -lm -L/lib -R/lib -o conftest
> /var/tmp//cc1kaqGw.s: Assembler messages:
> /var/tmp//cc1kaqGw.s:10: Error: no such instruction: `pabsw %xmm0,%xmm0'
>
> .....         --with-as=/usr/sfw/bin/gas
>

Which build of OpenSolaris?  gas in build 130 knows about the pabsw 
instruction.

[Non-text portions of this message have been removed]

------------------------------------

Please check the Links page before posting:
    http://groups.yahoo.com/group/solarisx86/links
Post message: solarisx86 <at> yahoogroups.com
(Continue reading)

iaswingkid | 2 Jan 05:19
Picon
Favicon

live upgrade fail

I've been talking with Sun support on this and will likely need to talk to them again Monday; in the meantime,
I would like to get this working again.

The machine has a ZFS root and a number of filesystems and snapshots.  Every time I run a live upgrade command,
I seem to get an error about being unable to mount a filesystem; /opt for example.  

When I am booted into my new s10u8 environment, I get ZFS mount errors on a filesystem that doesn't exist --
it's just a mount point.

I ran into a bug that just had a patch issued on Dec. 9, having to do with loopback filesystems and zones.  I
think previous live upgrade bugs have fubared configuration files and now I have a mess.  I'm wondering if
there are steps by which I can blow these files away and recreate clean ones.

Thanks.

------------------------------------

Please check the Links page before posting:
    http://groups.yahoo.com/group/solarisx86/links
Post message: solarisx86 <at> yahoogroups.com
UNSUBSCRIBE:  solarisx86-unsubscribe <at> yahoogroups.com 

gerard | 2 Jan 09:16
Picon

Re: compilation problem

On 01/ 1/10 11:40 PM, John Martin wrote:
> On 01/ 1/10 04:50 PM, gerard wrote:
>>
>> hello all,
>> i've a problem when trying to compile on opensolaris, and i'm not sure
>> if it is solaris-related.
>> This test failed:
>> cat conftest.c
>> int main () { asm("pabsw %xmm0, %xmm0"); return 0; }
>>
>> with gcc:
>> gcc conftest.c -O3 -march=opteron -mssse3 -m64 -Xlinker -i
>> -fno-omit-frame-pointer -fPIC -DPIC -Wall -I. -DHAVE_MALLOC_H
>> -L/usr/lib/amd64 -R/usr/lib/amd64 -Wl,-zignore -Wl,-zcombreloc
>> -Wl,-Bdirect -lm -L/lib -R/lib -o conftest
>> /var/tmp//cc1kaqGw.s: Assembler messages:
>> /var/tmp//cc1kaqGw.s:10: Error: no such instruction: `pabsw %xmm0,%xmm0'
>>
>> .....         --with-as=/usr/sfw/bin/gas
>>
>
> Which build of OpenSolaris?  gas in build 130 knows about the pabsw
> instruction.
>

os2009.06 b111b, release not dev, i don't have choice.
So there is a huge difference between /usr/sfw/bin/gas from SUNWbinutils 
2.15 and as from Sun Studio?

gerard
(Continue reading)

gerard | 2 Jan 09:18
Picon

Re: compilation problem

On 01/ 1/10 11:21 PM, Bob Friesenhahn wrote:
>> Thread model: posix
>> gcc version 4.3.3 (GCC)
>>
>> But it seems that SSE are supported on (open)solaris, so what am i
>> missing? What are the requirements to have SSE with (open)solaris?
>> I built gcc with SFE, and according the options, i think that i can have
>> assembler in C routines.
>
> When I built GCC 4.3.3 and 4.3.4, I used a more modern GNU assembler
> from binutils:
>

ok, os2009.06 comes with SUNWbinutils 2.15, i suppose that i have to 
recompile a recent binutils? in b130, it comes with 2.19

gerard

------------------------------------

Please check the Links page before posting:
    http://groups.yahoo.com/group/solarisx86/links
Post message: solarisx86 <at> yahoogroups.com
UNSUBSCRIBE:  solarisx86-unsubscribe <at> yahoogroups.com 

Al Hopper | 2 Jan 14:33

Re: Question

On Thu, Dec 31, 2009 at 3:51 PM, Phillip Bruce <pbbruce <at> mindspring.com> wrote:
> Using VI how do I add numbers in sequential order at the end of each line.
>
> Example:
>
> dummy01
>
> then I have a buch of more dummies below that . Now I want the file to
> have something like:
>
> dummy01
> dummy02
> dummy03
> ..

Hi Phillip,

You can pass a range of line numbers out to any external command and
then the output of the external command will be inserted in place of
the original lines.  So you could pass the lines to an awk (or nawk)
script and have it do a simple printf command to concat the increasing
line numbers.  It's always a good idea to save the file before you use
this type of command - so you can undo it if it makes a mess.

I usually drop a mark at the start and at the end of the range of
lines so that I can use the line range: 'a,'b  where a is the mark at
the start of the line range and b is the mark at the end of the line
range.

PS: its convenient to assign the "mark a", "mark b", "'a,'b" key
(Continue reading)

Bob Friesenhahn | 2 Jan 17:54
Picon
Picon
Gravatar

Re: live upgrade fail

On Sat, 2 Jan 2010, iaswingkid wrote:

> I've been talking with Sun support on this and will likely need to 
> talk to them again Monday; in the meantime, I would like to get this 
> working again.
>
> The machine has a ZFS root and a number of filesystems and 
> snapshots.  Every time I run a live upgrade command, I seem to get 
> an error about being unable to mount a filesystem; /opt for example.

Did 'lucreate' seem to run ok?

From the old boot environment, are you able to 'lumount' the new boot 
environment or do you see the same error?

There do seem to be quite a few live upgrade bugs surrounding U8 but 
people are hitting different bugs.

Bob
--
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------

Please check the Links page before posting:
    http://groups.yahoo.com/group/solarisx86/links
Post message: solarisx86 <at> yahoogroups.com
UNSUBSCRIBE:  solarisx86-unsubscribe <at> yahoogroups.com 
(Continue reading)

Phillip Bruce | 2 Jan 20:48
Picon

Re: Question

Al,

Thanks, I appreciate the feedback.

So basically there is no way within vi or vim to do this without calling
a shell routine then such as (x)awk to do this with.

Phillip

Al Hopper wrote:
>
> On Thu, Dec 31, 2009 at 3:51 PM, Phillip Bruce <pbbruce <at> mindspring.com 
> <mailto:pbbruce%40mindspring.com>> wrote:
> > Using VI how do I add numbers in sequential order at the end of each 
> line.
> >
> > Example:
> >
> > dummy01
> >
> > then I have a buch of more dummies below that . Now I want the file to
> > have something like:
> >
> > dummy01
> > dummy02
> > dummy03
> > ..
>
> Hi Phillip,
>
(Continue reading)

John Taylor | 3 Jan 15:55
Picon

Re: live upgrade fail

On Fri, Jan 1, 2010 at 11:19 PM, iaswingkid <iaswingkid <at> yahoo.com> wrote:
>
>
>
> I've been talking with Sun support on this and will likely need to talk to them again Monday; in the
meantime, I would like to get this working again.

yeah, they have not been particularly helpful with my ongoing LU issues.

> The machine has a ZFS root and a number of filesystems and snapshots. Every time I run a live upgrade
command, I seem to get an error about being unable to mount a filesystem; /opt for example.

can you try it with a short (7 character name) LU name?  if that
doesn't work, you'll
likely have to go back to the other LU environments and clean them up
so LU won't hurl
on them anymore.

> When I am booted into my new s10u8 environment, I get ZFS mount errors on a filesystem that doesn't exist --
it's just a mount point.

well, if you have a mount point in one envirnoment, ZFS tends not to
like that elsewhere, mainly
because it means you've got local directories, and ZFS will complain
about mounting over an
existing directory structure (which is how I got to my separate /var
file system not mounting
in failsafe bug...)

> I ran into a bug that just had a patch issued on Dec. 9, having to do with loopback filesystems and zones. I
(Continue reading)


Gmane