You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Vinutha Nagaraju <Vi...@Sun.COM> on 2009/11/24 08:04:43 UTC

Xerces 64-bit build issues on Solaris Sparc and X86

Hi,

I am unable to build xerces 2.6.0 in 64-bit mode on SPARC and x86 platform.
I have used "./runConfigure -p solaris -c cc -x CC " to configure 32-bit 
on SPARC using sunstudio compiler to build. That works fine. However I 
am not sure why 64-bit doesn't work.
For SPARC, I tried following options in runConfigure, which returned an 
ELF class error during link time.

./runConfigure -p solaris -c cc -x CC -l -xarch=v9

ld: fatal: file SOLARIS/ASCIIRangeFactory.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to 
/home/vn125969/xerces/xe
rces-c-src_2_6_0/lib/libxerces-c.so.26.0
gmake[1]: *** 
[/home/vn125969/xerces/xerces-c-src_2_6_0/lib/libxerces-c.so.26.0]
 Error 1

same with the Solaris X86 build as well.

What is missing in the above approach. Kindly help.

Thanks,
Vinu


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: Xerces 64-bit build issues on Solaris Sparc and X86

Posted by Vinutha Nagaraju <Vi...@Sun.COM>.
Thanks, that works.
regards,
Vinu

Galande, Manish wrote:
> Vinu,
>
> For 64-bit you have to use -b option. Please, use following command:
> ./runConfigure -p solaris -c cc -x CC -b 64
>
> By default, without -b, 32-bit library is built.
>
> Manish
>
> -----Original Message-----
> From: Vinutha.Nagaraju@Sun.COM [mailto:Vinutha.Nagaraju@Sun.COM]
> Sent: Tuesday, November 24, 2009 12:35 PM
> To: c-dev@xerces.apache.org; c-users@xerces.apache.org
> Subject: Xerces 64-bit build issues on Solaris Sparc and X86
>
>
> Hi,
>
> I am unable to build xerces 2.6.0 in 64-bit mode on SPARC and x86 platform.
> I have used "./runConfigure -p solaris -c cc -x CC " to configure 32-bit
> on SPARC using sunstudio compiler to build. That works fine. However I
> am not sure why 64-bit doesn't work.
> For SPARC, I tried following options in runConfigure, which returned an
> ELF class error during link time.
>
> ./runConfigure -p solaris -c cc -x CC -l -xarch=v9
>
> ld: fatal: file SOLARIS/ASCIIRangeFactory.o: wrong ELF class: ELFCLASS32
> ld: fatal: File processing errors. No output written to
> /home/vn125969/xerces/xe
> rces-c-src_2_6_0/lib/libxerces-c.so.26.0
> gmake[1]: ***
> [/home/vn125969/xerces/xerces-c-src_2_6_0/lib/libxerces-c.so.26.0]
>  Error 1
>
> same with the Solaris X86 build as well.
>
> What is missing in the above approach. Kindly help.
>
> Thanks,
> Vinu
>
>   


RE: Xerces 64-bit build issues on Solaris Sparc and X86

Posted by "Galande, Manish" <Ma...@bmc.com>.
Vinu,

For 64-bit you have to use -b option. Please, use following command:
./runConfigure -p solaris -c cc -x CC -b 64

By default, without -b, 32-bit library is built.

Manish

-----Original Message-----
From: Vinutha.Nagaraju@Sun.COM [mailto:Vinutha.Nagaraju@Sun.COM]
Sent: Tuesday, November 24, 2009 12:35 PM
To: c-dev@xerces.apache.org; c-users@xerces.apache.org
Subject: Xerces 64-bit build issues on Solaris Sparc and X86


Hi,

I am unable to build xerces 2.6.0 in 64-bit mode on SPARC and x86 platform.
I have used "./runConfigure -p solaris -c cc -x CC " to configure 32-bit
on SPARC using sunstudio compiler to build. That works fine. However I
am not sure why 64-bit doesn't work.
For SPARC, I tried following options in runConfigure, which returned an
ELF class error during link time.

./runConfigure -p solaris -c cc -x CC -l -xarch=v9

ld: fatal: file SOLARIS/ASCIIRangeFactory.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to
/home/vn125969/xerces/xe
rces-c-src_2_6_0/lib/libxerces-c.so.26.0
gmake[1]: ***
[/home/vn125969/xerces/xerces-c-src_2_6_0/lib/libxerces-c.so.26.0]
 Error 1

same with the Solaris X86 build as well.

What is missing in the above approach. Kindly help.

Thanks,
Vinu