On Tue, 2022-07-05 at 21:01 -0700, mfum...@electromag.com.au wrote: > Hello there, > > It isn't due to EOVERFLOW but make_file_type function in libstdc++- > v3\src\filesystem\ops-common.h always returns file_type::unknown. > It's because _GLIBCXX_HAVE_S_ISREG isn't defined. > I found HAVE_S_ISREG at libstdc++-v3/config.h isn't set properly. > > It's caused by a configure failure below to tell if S_ISREG exists on > the target. > gcc/arm-emit-linux-gnueabi/11.3.0/ld: error: tmp- > glibc/work/cortexa9t2hf-neon-emit-linux-gnueabi/gcc-runtime/11.3.0- > r0/dummylib/libstdc++.so: file is empty > collect2: error: ld returned 1 exit status > configure:15686: $? = 1 > > It complains dummylib/libstdc++.so is empty, configure failed then > wrongly considered S_ISREG doesn't exist. > This seems related to the following commit. > https://github.com/openembedded/openembedded-core/commit/34b0edb0d3120c32063ff7e3dd52be20d60401d5 > > Reverting this commit rectifies this issue but not sure what's the > proper fix? > Any help appreciated.
There is some piece we're still not understanding. I had a look at my local build (master so gcc 12.1) and I see HAVE_S_ISREG is set correctly, I don't see any "file is empty" message. Are you able to reproduce this on master? Which linker are you using? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#167822): https://lists.openembedded.org/g/openembedded-core/message/167822 Mute This Topic: https://lists.openembedded.org/mt/92099905/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-