> Sent: Tuesday, December 10, 2019 at 6:15 AM
> From: "Pierre Labastie via blfs-support" 
> <[email protected]>
> To: [email protected]
> Cc: "Pierre Labastie" <[email protected]>
> Subject: Re: [blfs-support] ICU-64.2 doesn't find clang C++ compiler in 
> ./configure
>
> On 09/12/2019 17:31, Jared Stevens via blfs-support wrote:
> > Hi everybody,
> >
> > Just thought it would make more sense to reply directly to my original 
> > thread since I am still experiencing the same issue as before.
> >
> > I took the aforementioned advice and followed Thomas's steps for 
> > building a multilib LFS system using his most recent 20191207 release 
> > with only one variant-- I am using systemd instead of SysvInit. So 
> > far, I have not encountered any issues with any packages in the LFS 
> > book or using the stable BLFS-9.0-systemd book.
> >
> > However, much like before, I installed LLVM with no build errors 
> > before moving on to try and install ICU-64.2 (and then I tried 
> > ICU-65.1 with same result). Again, I receive the exact same error 
> > message during the configure step:
> >
> > *checking if we have a C++ compiler... no*
> > *configure: error: C++ compiler clang++ does not work or no compiler 
> > found*
> >
> > Here are the outputs of a few commands I tried to ensure clang++ was 
> > in fact installed on the system:
> > *
> > *
> > *$ which clang++*
> > */usr/bin/clang++*
> > *
> > *
> > *$ ldd /usr/bin/clang++*
> > *     linux-vdso.so.1 (0x00007ffe575b4000)
> >      libpthread.so.0 => /lib/libpthread.so.0 (0x00007f91e7448000)
> >      libLLVM-8.so => /usr/bin/../lib/libLLVM-8.so (0x00007f91e439c000)
> >      libstdc++.so.6 => /usr/bin/../lib/libstdc++.so.6 (0x00007f91e41bc000)
> >      libm.so.6 => /lib/libm.so.6 (0x00007f91e4077000)
> >      libgcc_s.so.1 => /usr/bin/../lib/libgcc_s.so.1 (0x00007f91e405d000)
> >      libc.so.6 => /lib/libc.so.6 (0x00007f91e3e99000)
> >      /lib64/ld-linux-x86-64.so.2 (0x00007f91e7475000)
> >      libffi.so.7 => /usr/bin/../lib/../lib/libffi.so.7 
> > (0x00007f91e3e8a000)
> >      libz.so.1 => /lib/libz.so.1 (0x00007f91e3e6d000)
> >      librt.so.1 => /lib/librt.so.1 (0x00007f91e3e63000)
> >      libdl.so.2 => /lib/libdl.so.2 (0x00007f91e3e5e000)
> >      libncursesw.so.6 => /lib/libncursesw.so.6 (0x00007f91e3def000)
> >      libxml2.so.2 => /usr/bin/../lib/../lib/libxml2.so.2 
> > (0x00007f91e3c89000)
> >      liblzma.so.5 => /lib/liblzma.so.5 (0x00007f91e3c5f000)*
> >
> > I have no clue what the issue could be or if the issue is related with 
> > the build of LLVM messing up somewhere or simply with ICU.
> >
> > I would simply try installing ICU with the GCC compiler instead if it 
> > weren't for the fact that both 64.2 and 65.1 versions of ICU fail to 
> > detect clang++. This makes me think something messed up in LLVM.
> >
> > If indeed something is messed up with LLVM, I'm afraid I don't have 
> > the technical prowess to figure out what that could be since no error 
> > message is given throughout the LLVM build process from what I could see.
> >
> > Thanks,
> >
> > -- Jared
> >
>   Have you tried something like:
> 
>   echo 'int main() { }' | clang++ -v -xc++ -
> 
> The output may contain some clue of what is happening
> 
> Pierre
> -- 
> http://lists.linuxfromscratch.org/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
> 

Hello,

Have you tried:

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

before you run ./configure ?

That should work for it.

Regards,

Christopher.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to