tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Cross compiling for riscv64 on arm64


From: Sagar Acharya
Subject: Re: [Tinycc-devel] Cross compiling for riscv64 on arm64
Date: Fri, 10 Feb 2023 11:20:14 +0100 (CET)

I have this feature request. Can you please add asm support for riscv64 cross 
compiler built on arm64?
Thanking you
Sagar Acharya
https://designman.org



7 Feb 2023, 21:22 by sagaracharya@tutanota.com:

> musl isn't compiled for riscv64. I tried to compile musl-1.2.3 with
>
> cd musl-1.2.3
> ./configure --target=riscv64 CC=riscv64-tcc
> make
>
> It shows an error which has asm module
>
> __asm__(....);
>
> I think current riscv64 cross compiler doesn't support asm. Is riscv64-asm.c 
> for physical hardware based on rv64 processor and not for cross compilation?
>
> Thanking you
> Sagar Acharya
> https://designman.org
>
>
>
> 6 Feb 2023, 23:39 by sagaracharya@tutanota.com:
>
>> I built a cross-compiler with
>>
>> ./configure --config-musl
>> make cross-riscv64
>>
>> On using the built riscv64-tcc to compile, I get,
>>
>> tcc: error: file 'crt1.o' not found
>> tcc: error: file 'crti.o' not found
>> error: include file 'stdint.h' not found
>>
>> Please help.
>>
>>
>> Thanking you
>> Sagar Acharya
>>
>>
>>
>> 6 Feb 2023, 21:17 by sagaracharya@tutanota.com:
>>
>>> I built an older commit successfully for
>>>
>>> --config-musl
>>>
>>> Can you help me with how to build tcc on arm64 to cross-compile a program 
>>> for riscv64?
>>>
>>>
>>> Thanking you
>>> Sagar Acharya
>>> https://designman.org
>>>
>>
>>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]