[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian/sparc64 compilation error



Hi,
Few months back, I had asked the question below:

On Thu, 2002-05-16 at 22:10, Ben Collins wrote:
> On Thu, May 16, 2002 at 08:38:01PM -0400, Shanti Katta wrote:
> > Hi,
> > I have this UltraSparc-I system on which I installed potato 2.2.r6. 
> > Then I apt-get dist-upgraded to sid. I am currently running 2.4.18
> > kernel on it. When I try to compile this small program to test whether
> > my system can run 64-bit user applications:
> > 
> > #include <stdio.h>
> > #include <stddef.h>
> > int main (void)
> > { 
> >   printf("This is sample program to test if it can run 64-bit user
> > apps\n");
> >   printf("sizeof (void*) = %d\n", (int) sizeof (void*)) ;
> >   return 0 ;
> > } 
> > 
> > I try to compile this program with: gcc-3.0 -m64 test.c, I get the
> > following errors:
> > /usr/bin/ld: skipping incompatible /lib/libc.so.6 when searching for
> > /lib/libc.so.6
> > /usr/bin/ld: cannot find /lib/libc.so.6.
> > 
 I would really appreciate, if someone could help me resolve
> > this issue, as this would be affecting my port of user-mode-linux to
> > SPARC64 arch, which I have recently started.
> > Please CC me as I am not subscribed to the list.
> 
> apt-get install libc6-dev-sparc64

The solution fron Ben Collins seemed to work fine then, but now again I
am having the same problem with the same program, even though I have the
upgraded libc6-dev-sparc64(v2.2.5-8).

Has anyone successfully compiled gcc-3.1 on ultrasparc?? After I
"apt-get install gcc-3.1" on my ultrasparc I, when I try to execute the
above test program with "gcc-3.1 -m64 test.c" , it says:

cc1: -m64 is not supported by this configuration
cc1: -mlong-double-64 not allowed with -m64
 
Hence, when I tried to compile gcc-3.1 from source, it gave me some error saying "libc cannot create binaries". I guess this is some sparc32/64 issue.
Can anyone point to the problem??

Thank you.
-Regards
-Shanti


-- 
To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: