LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2017, 05:35 AM   #1
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
no luck with libc++ on -current: xlocale.h missing


I tried to install libc++ from SBO which is now a dependency for discord. I'm on -current.

I found libc++ has a dependency on Sphinx, which in turn has 10 named dependencies (plus one subdependency) in the .info file, plus 5 unnamed dependencies. I built & installed all of these.

The build breaks with

Code:
[ 50%] Building CXX object projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o
In file included from /tmp/SBo/llvm-3.8.0/projects/libcxx/src/algorithm.cpp:11:
In file included from /tmp/SBo/llvm-3.8.0/projects/libcxx/include/random:1646:
In file included from /tmp/SBo/llvm-3.8.0/projects/libcxx/include/istream:163:
In file included from /tmp/SBo/llvm-3.8.0/projects/libcxx/include/ostream:138:
In file included from /tmp/SBo/llvm-3.8.0/projects/libcxx/include/ios:216:
/tmp/SBo/llvm-3.8.0/projects/libcxx/include/__locale:39:11: fatal error: 'xlocale.h' file not found
# include <xlocale.h>
          ^~~~~~~~~~~
1 error generated.
make[3]: *** [projects/libcxx/lib/CMakeFiles/cxx.dir/build.make:63: projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:12277: projects/libcxx/lib/CMakeFiles/cxx.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:12252: projects/libcxx/lib/CMakeFiles/install-libcxx.dir/rule] Error 2
make: *** [Makefile:3618: install-libcxx] Error 2

libc++:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:
Does anyone know what package "xlocale.h" belongs to? Or how to compile libc++?

Thanks
 
Old 08-26-2017, 05:45 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Seems to be in glibc :

Code:
grep -R "xlocale.h" /var/log/packages/
/var/log/packages/glibc-2.23-x86_64-4_slack14.2:usr/include/xlocale.h
--
SeB
 
Old 08-26-2017, 05:51 AM   #3
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
strangely not in my glibc... my glibc packages are

Code:
glibc-2.26_multilib-x86_64-2alien
glibc-i18n-2.26_multilib-x86_64-2alien
glibc-profile-2.26_multilib-x86_64-2alien
glibc-solibs-2.26_multilib-x86_64-2alien
glibc-zoneinfo-2015g_multilib-noarch-1alien
 
Old 08-26-2017, 06:01 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

As stated here, xlocale.h was removed in glibc 2.26
--
SeB
 
Old 08-26-2017, 06:08 AM   #5
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Found this commit to fix building of libc++ with glibc 2.26

--
SeB
 
2 members found this post helpful.
Old 08-26-2017, 09:50 AM   #6
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
Excellent find. Commenting out the include, I finally managed to build libc++. ^_^
 
Old 01-21-2018, 06:22 PM   #7
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 44
Thank you!

in libc++.SlackBuild (from Slackware64-14.2 on slackbuilds.org)
Code:
# under
mv libcxx-${VERSION}.src libcxx
# patch file
cd libcxx 
patch -p0 < $CWD/patch.txt
cd ..
patch.txt:
Code:
--- include/__locale	2015-11-24 11:24:54.000000000 +0100
+++ include/__locale	2018-01-22 01:09:18.810338513 +0100
@@ -34,7 +34,7 @@
 # include <support/solaris/xlocale.h>
 #elif defined(_NEWLIB_VERSION)
 # include <support/newlib/xlocale.h>
-#elif (defined(__GLIBC__) || defined(__APPLE__)      || defined(__FreeBSD__) \
+#elif (defined(__APPLE__)      || defined(__FreeBSD__) \
     || defined(__EMSCRIPTEN__) || defined(__IBMCPP__))
 # include <xlocale.h>
 #elif defined(_LIBCPP_HAS_MUSL_LIBC)
 
Old 01-22-2018, 12:19 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
hi slacktroll,

things are changed since last august: you don't need to explicitly install libc++ in slackware current now, as it has been already included as part of the llvm package (on december 22nd).

Last edited by ponce; 01-22-2018 at 12:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware64-current : glibc-2.26-x86_64-2 missing file xlocale.h gildbg Slackware 15 08-08-2017 12:28 PM
missing libc.so.6 in Ubuntu lilzz Linux - Software 3 01-20-2016 06:58 PM
[SOLVED] Missing libc.so problems at startup Weapon S Ubuntu 3 11-20-2012 03:45 AM
missing libc.so.6 nicknuck Linux - Newbie 4 01-09-2012 08:30 PM
libc.so.6 missing bash Linux - General 3 08-09-2002 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration