[gnu-sol-discuss] x86 sol10 11/06 SUNWgcc missing files?

Steven Xie steven.xie at mpathix.com
Mon Mar 19 15:08:34 PDT 2007



Bart Smaalders wrote:

> Steven Xie wrote:
>
>> Hi Bart,
>> SUNWarc  does solve the linking issue. with
>> 1 f none usr/lib/crt1.o 0644 root bin 1632 14303 1106347992
>> 1 f none usr/lib/crti.o 0644 root bin 760 17405 1106347992
>> 1 f none usr/lib/crtn.o 0644 root bin 528 10389 1106347992
>>
>>
>> However these files are still missing under
>> /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/
>> Which exsits under sparc.
>>
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crt1.o 0555 root 
>> bin 1428 57403 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtbegin.o 0555 
>> root bin 2824 48389 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtend.o 0555 
>> root bin 1768 3586 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtfastmath.o 
>> 0555 root bin 2492 21691 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crti.o 0555 root 
>> bin 1144 49481 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtn.o 0555 root 
>> bin 1108 49997 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/gcrt1.o 0555 
>> root bin 1488 60156 1106443070
>> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/gmon.o 0555 root 
>> bin 6984 45233 1106443070
>>
>> Does that mean We should never link against 
>> /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/ for x86
>> And for sparc We have this option?
>> Thanks,
>>
>
> Your example was gcc file.c, which generated link errors
> due to missing crt1.o files.
>
> Sparc and x86 apparently ship their crt1.o files in different
> locations;

I think It's not about different locations.
under SPARC we have two versions of these files
located under
/usr/lib which is installed by SUNWarc
cksum /usr/lib/crti.o
790943099       932     /usr/lib/crti.o

and
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/  which is installed by 
SUNWgcc.
 cksum /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crti.o
124494225       1144    /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crti.o

However these files are missing in x86 SUNWgcc package.
pkgchk -v SUNWgcc , I can see the difference between sparc and x86
which is confusing.




> I'm looking into why this is the case.  I'm guessing
> this is due to the fact that in Solaris 10 Sun shipped the amd64
> bits compiled w/ gcc.

amd64 should has its own .o files in this case.

Thanks,

>
> - Bart
>
>
>
>



More information about the gnu-sol-discuss mailing list