riscv-collab / riscv-gnu-toolchain

GNU toolchain for RISC-V, including GCC
Other
3.4k stars 1.13k forks source link

riscv64-oe-linux-gfortran: fatal error: cannot read spec file 'libgfortran.spec' #1076

Closed dozhier closed 1 year ago

dozhier commented 2 years ago

when i am trying to bulid an yocto project with openembedded-core & meta-riscv sources,i use riscv64-oe-linux-gfortran as my gfortran complier,but it fails like this: riscv64-oe-linux-gfortran: fatal error: cannot read spec file 'libgfortran.spec': No such file or directory

i don't know why and looking for help,here is what i write in my .bb file.

image

jim-wilson commented 2 years ago

The libgfortran.spec file is part of the gfortran install tree. Sounds like something went wrong with your build. Maybe you built the fortran compiler, but forgot to build the libgfortran library? The libgfortran.spec file comes from the fortran library build. In that case, you would also be missing the libgfortran.a and libgfortran.so files. GNU fortran won't be usable without them.

TommyMurphyTM1234 commented 1 year ago

@dozhier - do you consider this to still be a live issue or can it be closed?

dozhier commented 1 year ago

it can be closed.

------------------ Original ------------------ From: Tommy Murphy @.> Date: Wed,Sep 28,2022 0:05 AM To: riscv-collab/riscv-gnu-toolchain @.> Cc: dozhier @.>, Mention @.> Subject: Re: [riscv-collab/riscv-gnu-toolchain] riscv64-oe-linux-gfortran:fatal error: cannot read spec file 'libgfortran.spec' (Issue #1076)

@dozhier - do you consider this to still be a live issue or can it be closed?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

TommyMurphyTM1234 commented 1 year ago

Thanks @dozhier .