bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/30938] [RISCV]linking erro with lp64f


From: akhilesh.k at samsung dot com
Subject: [Bug ld/30938] [RISCV]linking erro with lp64f
Date: Tue, 10 Oct 2023 06:34:35 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30938

--- Comment #2 from Akhilesh Kumar <akhilesh.k at samsung dot com> ---
Now i configured gcc with --enable-multilib then also unable to build for lp64f

is this because ABI_FLEN is for 32 default lp64d is for 64  ? 

And if i want to compile the same for lp64d, lp64f and lp64 what changes i need
to do during gcc configuration  

Logs:- 
#riscv64-unknown-linux-gnu-gcc hello.c  -march=rv64imafdc -mabi=lp64f
/opt/riscv/lib/gcc/riscv64-unknown-linux-gnu/13.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld:
cannot find crt1.o: No such file or directory
collect2: error: ld returned 1 exit status



Configured with: /home/sri/Downloads/20.04/riscv-gnu-toolchain/gcc/configure
--target=riscv64-unknown-linux-gnu --prefix=/opt/riscv
--with-sysroot=/opt/riscv/sysroot --with-pkgversion=gc891d8dc23e
--with-system-zlib --enable-shared --enable-tls
--enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp
--disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap
--src=.././gcc --enable-multilib --with-abi=lp64d --with-arch=rv64imafdc
--with-tune=rocket --with-isa-spec=20191213 'CFLAGS_FOR_TARGET=-O2   
-mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2    -mcmodel=medlow'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.0 (gc891d8dc23e) 

akhilesh.k@sri-1566:/tmp$ /opt/riscv/bin/riscv64-unknown-linux-gnu-gcc hello.c 
-march=rv64imac -mabi=lp64
akhilesh.k@sri-1566:/tmp$ /opt/riscv/bin/riscv64-unknown-linux-gnu-gcc hello.c 
-march=rv64imafdc -mabi=lp64
akhilesh.k@sri-1566:/tmp$ /opt/riscv/bin/riscv64-unknown-linux-gnu-gcc hello.c 
-march=rv64imafdc -mabi=lp64d
akhilesh.k@sri-1566:/tmp$ /opt/riscv/bin/riscv64-unknown-linux-gnu-gcc hello.c 
-march=rv64imafdc -mabi=lp64f

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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