public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
@ 2017-10-11  4:16 Walter Dnes
  2017-10-11  6:54 ` Walter Dnes
  2017-10-11 15:50 ` Mike Gilbert
  0 siblings, 2 replies; 7+ messages in thread
From: Walter Dnes @ 2017-10-11  4:16 UTC (permalink / raw
  To: Gentoo Users List

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

  This is happening with both python 2.7.12 and 3.4.5 on a 32-bit x86
system.  Build logs are attached, along with "emerge --info" output.  I
can't find anything relevant in bugzilla.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications

[-- Attachment #2: python-2.7.12.log.gz --]
[-- Type: application/octet-stream, Size: 8481 bytes --]

[-- Attachment #3: python-3.4.5.log.gz --]
[-- Type: application/octet-stream, Size: 8952 bytes --]

[-- Attachment #4: info.txt.gz --]
[-- Type: text/plain, Size: 2660 bytes --]

\x1f‹\b\bÓ–ÝY\x02\x03info.txt\0ÅX[sâ:\x12~çWtñtÎn\fØ\x10†¤ŠªC€a¨!@q9'³/.aËF‹o#É\x04òë÷“m\x02™™³/û°©Âj·[Rw«ûëV–©Ô,ää4ڍ\x1eý–õ>Mðö©a;V \x12\x16Y­;òyÀòH7#‘ä§æ©×mÚí\x06ø¡çYÝFIFbçYNÃi[²sGÆCÃîZ!Otš’èöº¿×úÿë_m}VšÇ”',æ43ÚX\x1fv²ÌNÖ4Ñ<²V–;L%·6Ï–ãŽòÔ\x1d.·î¸ÓmµÜ?\§ÑiM¾¼Y¯Bï/sÁkص¯â‰žyüHæ¯m·ZN§E:Õ,º+8\x0fv«Û¡@r^ˆ®_YVÈ>ؽnÛé\E»\x0f˜z^[\x11s¥YœQ\x1aäYª„Nå™Ê­\x1fi“ó;²[´ð49-û\x139öc«õزéŸ-üÕ¾p擗ƱÐ\x7f³Â§ýà<tü{Ö²{=ÿ!`]‡?tzÌÛ9Ý^›ó¶×±y¯¦ö´cxt\x1am7ëô,i×"Ÿ&ó-aømRž\x18\x0e²G™Ýp~/È\x1aË2Kíy\x14©¦™\z§ø».óøXêRóùÑŠX\x1263.£^[Q¢û†\x03\x1f[Òù…l\x11z7Òe\x10^\x04嗀ã¹ÿ0/×"jz1;ðÛMÚ˜çü,—\x1dB/M\x02\x11^d[°ëV\x13uV\x16Ì,\fä\x11;§¹~¼hòƒÒï¢iÆ\x13éÝìn\x16ýYL±Äߥ§Ç^[Ûì–%Û\x1f$¡)š,שÑóñ*Ù¾úÀit\x1fþfÒ­^[läD\x17yxh7lÛ°ì\x0f¬û\x1f*—Û!±à2uÕყî
FÃþÅL\0‡ó.Àá×rÖíi؍\x0f\x01t\x15\x04ª€q\r"s\x14Ý_{îÇ8è4œ\x1ft<p™\x14k\x1aÜØ#£¸„Æ»Ÿè·£:gQ3U\x17ß‹©ÐC5\vŒ»Ý¢‚»÷MV—´\x14\=Öj\x15×HF©Ç´0ñÝÌ•lf%ì\x16ŸÔ9ñ,}Π¼4ô•™KQñ\x1e›Íbl”K6R\x196+Ôº]*“\x02{ëó#Y¶AÚ4\x01èD\x11÷Iq\r[ÿðE\x14¥µÁp8^nܯão\x7f-V£u¿\x0eH¯_¸³ép<_ûõ\x7fÔkçít6ê×\vXÍ<«t]˜äøôy6˜`ªµpÈŠ™ôöý\x04&\x1e9Þ‚,fzßW
/É\x11à\x1e\b€—\x15H`7”\x16ÀhIV&2#“¤Vž¼ŠÄ·4ÛE\•,fLÞË4Isõñ;¶ÿ²Xo~­Øbþy:q—«Åf<„H“k¯ôºÚ3É›\x10ÊÂæwœ²\b\x04÷^[ú¤\x7fœä>\x0fÖ_Ë™MY\x1e—\x1a²8A®\x1a&l©ø“cÃ/É M´*Ÿ7\x02á\rY\x1e–ä\x11\aº”<ɏ>ÏÀÛå"ª\x16ªâ².|\x14‹$H¡àËËÿ×á£éz3š®à•›\0núBé@\x14\x02ãçñj2vGãσílã.–^[£¬e°)Ob¦\x0eý¤^ûü‹°1gX*†ïãÁf»\x1aC€)•Cq_„(œŠ€I@p+JCEfS$ÔAQé:«|	Ä)b…2\x14s\x19rËXC1\x1a\x17Äµ”–\x02Õ5ᯊ2&MZDV\0/ï‘7©æž¶Ò×ĤJy\x06¤\x02Ô¯XQ51O\x0e	\x040…é\re½2™€[îU(vyIe¶g	Þ\x15—å\x0e†Bv\x1e\vâ²AA^[\x1dOLk	ãÿ»o&ãùf±pŸ§«Õb\x05±@gÀ…XH™Ê†§¼(ß5òW\x04©Œ\0\x11\x1e»\x04Ýû\x195i¯‹9\x15Š$\'B{\x05Q¯MçëÍ`6»Ä>\ÖTE¿åWc™D?óëµÙ`>é×yân×\r¡Ò^ïþÁ\x06wt±ç¯èÎZØTŒ\b2+áÜç~½ö<ø:®âäߘ°ü:ù9Â2æ\x1d0"À–‹Õf€\b+suµX˜ä¾²Wëoóá{ØIîåR\x15ÙaÀ\x01áaYŠ\x05üý¥<[ËÒ¦3ÃX$‹/ä;\x03ÝV†c6dJÏ,ôºO#n\x19_âÅG.kC\0bµ‘Úç1K°1óMÊTK£‹èÛ½\x16Þø	'äóþ5gn™¦@D·Œ‹Ý·¼F(ôÕàÍó²tבɦŽ³zmk`û…X–„´{\x13™C^$È;È—‚‚ ÎxH0FK–P(\x02ú·aÄ©Ÿ^[m\x12ã13f:"\x03"a9\0K2Or2«\x1aëàAŽzâ\x19\aaT
u”ŠHaKÒ{#£HËœ›ªF¯|—ÑÉAÓŒÇ=¡Ô”ñN'T1zC<Õið4u_zÝ~½íàe¶\x1e¸ÃAQ˜\0Ò÷{›X¤:¨h\x04À\x13§¬\x1a,hŽ°ÜéÞ§\x13yè{[]òb‘y‚xœÛ­ƒ}\x19OÄ\x13e·?µª\x11\x1f”ýÐî\x15C·GAÜC«½÷™e`2¢âÙ;µÞ‰˜b\x06\x1c’i^[†	\x1fùƒìÝ\x01Ü|‘ÒQ°ž\x03'Wc¥Ö\x19¨ì	˜³\x1c\f¿Œ\x1d÷y1ÚÎ
dËõ>q=ÜMȐo%©\x10\0Þž»j\x1f{; ‰8ùÄ<Ó3(X/˜*„]4§Â£r‰+^[t‚C(I\x7f\x17_¨òÞV½\x15q[îx\x11yû òæ†2ͳ^[¹}ª.Ÿ\f6ÊŠ6ÀeH\x14\x15Ÿ^[×CqòBa~>ùìh~n ŠÁ€³¹AF@&@·4ð}pË9(¡ÄO™@žaÔFES¥Œ\x06•DÅ©š1œG‘
dŠ"šªÐ-»HCâ b\x1eWÓb¤^ñpc\x16Âa	\x0fS-Š\x16\f1üŠ&É„°ÆþÈ\x02•qÄtH&‘sƒââ{Î]Xbì4\x1a›\x119\x03;ŽÆ#¥ãë4\x04\\x02ˆ\x06îµj\x1døIÐk*‘\0A”¾R†»\ráâ„îË,›vUo\x0fPÑÉ\x1d4ÚI\x06OæH'ãßTbéÅl†Fdä.gÛ	¹_÷ƒ"\x18eÀ\0EB~‡É¸\x12Âbs	”Ò7m2)ÜFÑ;*¸\x03kà¾[ p™Zq|"üàf2}\x02~Žy´ñÀ\x13âÛÕÌ]¯gýºIzäsÆ³éÓ°_/úÞ:M–ëQÑ!- ]Q¡÷¨š{bâèÇÄ™ÔûØœ1ºq\x19›\x0eŽvBfZ˜j@¯Ea†RebB\x14µOÀ±PL\x1fÚm¤ 
(£\x04)–QÂŽ@\x18J=ŽRÊ%\x16¥4ò•>#:Ó¤È\x19©½ØnuŽÎ;\x05k„ĉ\x1eÎXö;©\x1c0\x0f¿K‡\0Æ挵2\x18…õ\vUµÉã]djñîT§é|¹Ý ƒù\x13-pq˜ç]Ê$¼Œ~ˆ×éëx5\x1fÃ?E³Y§™Ýš›ª‡(¶¶k¼\x0fG×¹;v–æÊnz·jè¶Û\x14F\aàL§ó	5!Ú9v—"Ϗ[0=Ö\0ÄÝ;
k\x1c\x14Öœ>­Æ‹ÏŸ±¨;~Ù 1Ÿ.L4˜ÊÄM8˜k”BU¢+\avÂÖ7.Íôùd;XWZºFËj±éór†Žm¾\x19l°¢±i'y\x1a Ë…¡Ë/Kw3@7gji¶Ïî­.˜h¸'\bò›/È…\x10Û>¸÷øümóe1w×Øq6®d RÜê\x1d÷Ó»Àuöå\x13•TÛíÔiµ}úv\x15‘ùîì " ®­Ðcà"2™oëôçt4^\*D\x05Ø\x0f6txÙ\fž\0±î`4*¼ô=O5s(S>ehÞ\x10s‘ò\x11j›Þ;$²c'ÍJŒ\x15\x19ð\0ÏÌÉH\x14I\x16ò\x14±\x12äoog‚—}Q ‡æ&‡e&´I4ä!Z TnÉ^э^[\x1cBã†ØΊÁß{ <À_ZÞž¥\0lTÎ<A!ß"®Íÿ\x18†Ã;$ë²ÈUP¥ù ^^î\x10T.PæŽ.Eÿi;ÿ×té 	z~†G®\x1fÀXâtÖ?sÜjᏍ\x12¢	ÈeÚ¥Zí?jQL¹\x06\x14\0\0

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
  2017-10-11  4:16 [gentoo-user] python build fail; undefined reference to pthread_* and sem_* Walter Dnes
@ 2017-10-11  6:54 ` Walter Dnes
  2017-10-11 15:50 ` Mike Gilbert
  1 sibling, 0 replies; 7+ messages in thread
From: Walter Dnes @ 2017-10-11  6:54 UTC (permalink / raw
  To: Gentoo Users List

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

> \x1f‹\b\bÓ–ÝY\x02\x03info.txt
> FÃþÅL
> (£\x04)–QÂŽ@\x18J=ŽRÊ%\x16¥4ò•>#:Ó¤È\x19©½ØnuŽÎ;\x05k„ĉ\x1eÎXö;©\x1c0\x0f¿K‡

  Something failed there.  I'll attach as plain text and hopefully the
"emerge --info" output will get through



-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications

[-- Attachment #2: info.txt --]
[-- Type: text/plain, Size: 5186 bytes --]

Portage 2.3.8 (python 2.7.12-final-0, default/linux/x86/13.0, gcc-6.3.0, glibc-2.23-r4, 4.9.16-gentoo i686)
=================================================================
System uname: Linux-4.9.16-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E4600_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:     3100240 total,    391064 free
KiB Swap:    9186324 total,   6902452 free
Timestamp of repository gentoo: Tue, 10 Oct 2017 21:00:01 +0000
Head commit of repository gentoo: 7b19294d5a0188d9fa4b4e948acb2683ee3c41e8
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

Installed sets: @dillo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mfpmath=sse -fopenmp -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mfpmath=sse -fopenmp -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net"
INSTALL_MASK="/lib/systemd/system /usr/lib/systemd/system"
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X apng bzip2 cli cxx dri ffmpeg fortran gif jpeg modules ncurses nptl opengl openmp pcre png readline seccomp session ssl szip threads truetype webp x264 x265 x86 xattr xorg zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
  2017-10-11  4:16 [gentoo-user] python build fail; undefined reference to pthread_* and sem_* Walter Dnes
  2017-10-11  6:54 ` Walter Dnes
@ 2017-10-11 15:50 ` Mike Gilbert
  2017-10-11 15:56   ` Mike Gilbert
  1 sibling, 1 reply; 7+ messages in thread
From: Mike Gilbert @ 2017-10-11 15:50 UTC (permalink / raw
  To: gentoo-user

On Wed, Oct 11, 2017 at 12:16 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:
>   This is happening with both python 2.7.12 and 3.4.5 on a 32-bit x86
> system.  Build logs are attached, along with "emerge --info" output.  I
> can't find anything relevant in bugzilla.

From the build log for 3.4.5:

checking whether pthreads are available without options... yes

This is clearly a lie; glibc requires that you pass "-pthread" to gcc
to enable pthreads. For some reason, configure is mis-detecting this.

I would try rebuilding with minimal CFLAGS.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
  2017-10-11 15:50 ` Mike Gilbert
@ 2017-10-11 15:56   ` Mike Gilbert
  2017-10-12  2:15     ` Walter Dnes
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Gilbert @ 2017-10-11 15:56 UTC (permalink / raw
  To: gentoo-user

On Wed, Oct 11, 2017 at 11:50 AM, Mike Gilbert <floppym@gentoo.org> wrote:
> On Wed, Oct 11, 2017 at 12:16 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:
>>   This is happening with both python 2.7.12 and 3.4.5 on a 32-bit x86
>> system.  Build logs are attached, along with "emerge --info" output.  I
>> can't find anything relevant in bugzilla.
>
> From the build log for 3.4.5:
>
> checking whether pthreads are available without options... yes
>
> This is clearly a lie; glibc requires that you pass "-pthread" to gcc
> to enable pthreads. For some reason, configure is mis-detecting this.
>
> I would try rebuilding with minimal CFLAGS.

I can reproduce the issue by adding -fopenmp to my CFLAGS. You can
work around it by adding -fopenmp to LDFLAGS as well.

This is probably a bug in the Python build system; it should probably
be passing CFLAGS to gcc when linking libpython.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
  2017-10-11 15:56   ` Mike Gilbert
@ 2017-10-12  2:15     ` Walter Dnes
  2017-11-27 16:47       ` Walter Dnes
  0 siblings, 1 reply; 7+ messages in thread
From: Walter Dnes @ 2017-10-12  2:15 UTC (permalink / raw
  To: gentoo-user

On Wed, Oct 11, 2017 at 11:56:21AM -0400, Mike Gilbert wrote

> I can reproduce the issue by adding -fopenmp to my CFLAGS. You can
> work around it by adding -fopenmp to LDFLAGS as well.

  Thanks.  The following workaround makes python build properly.

LDFLAGS="-fopenmp" emerge =dev-lang/python-2.7.12 =dev-lang/python-3.4.5

> This is probably a bug in the Python build system; it should probably
> be passing CFLAGS to gcc when linking libpython.

  Bug https://bugs.gentoo.org/634064 filed.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
  2017-10-12  2:15     ` Walter Dnes
@ 2017-11-27 16:47       ` Walter Dnes
  2017-11-27 17:48         ` Mike Gilbert
  0 siblings, 1 reply; 7+ messages in thread
From: Walter Dnes @ 2017-11-27 16:47 UTC (permalink / raw
  To: gentoo-user

On Wed, Oct 11, 2017 at 10:15:50PM -0400, Walter Dnes wrote
> On Wed, Oct 11, 2017 at 11:56:21AM -0400, Mike Gilbert wrote
> 
> > I can reproduce the issue by adding -fopenmp to my CFLAGS. You can
> > work around it by adding -fopenmp to LDFLAGS as well.
> 
>   Thanks.  The following workaround makes python build properly.
> 
> LDFLAGS="-fopenmp" emerge =dev-lang/python-2.7.12 =dev-lang/python-3.4.5
> 
> > This is probably a bug in the Python build system; it should probably
> > be passing CFLAGS to gcc when linking libpython.
> 
>   Bug https://bugs.gentoo.org/634064 filed.

  Bump; I had to...

LDFLAGS="-fopenmp" emerge -1 =dev-lang/python-2.7.14 =dev-lang/python-3.5.4

..to get the latest pythons to build properly.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
  2017-11-27 16:47       ` Walter Dnes
@ 2017-11-27 17:48         ` Mike Gilbert
  0 siblings, 0 replies; 7+ messages in thread
From: Mike Gilbert @ 2017-11-27 17:48 UTC (permalink / raw
  To: gentoo-user

On Mon, Nov 27, 2017 at 11:47 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:
> On Wed, Oct 11, 2017 at 10:15:50PM -0400, Walter Dnes wrote
>> On Wed, Oct 11, 2017 at 11:56:21AM -0400, Mike Gilbert wrote
>>
>> > I can reproduce the issue by adding -fopenmp to my CFLAGS. You can
>> > work around it by adding -fopenmp to LDFLAGS as well.
>>
>>   Thanks.  The following workaround makes python build properly.
>>
>> LDFLAGS="-fopenmp" emerge =dev-lang/python-2.7.12 =dev-lang/python-3.4.5
>>
>> > This is probably a bug in the Python build system; it should probably
>> > be passing CFLAGS to gcc when linking libpython.
>>
>>   Bug https://bugs.gentoo.org/634064 filed.
>
>   Bump; I had to...
>
> LDFLAGS="-fopenmp" emerge -1 =dev-lang/python-2.7.14 =dev-lang/python-3.5.4
>
> ..to get the latest pythons to build properly.

Just stick it in make.conf and call it fixed.

You can track further updates via the bug report.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-27 17:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-11  4:16 [gentoo-user] python build fail; undefined reference to pthread_* and sem_* Walter Dnes
2017-10-11  6:54 ` Walter Dnes
2017-10-11 15:50 ` Mike Gilbert
2017-10-11 15:56   ` Mike Gilbert
2017-10-12  2:15     ` Walter Dnes
2017-11-27 16:47       ` Walter Dnes
2017-11-27 17:48         ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox