{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/4416","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/4416/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/4416/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/4416/events","html_url":"https://github.com/LLNL/spack/pull/4416","id":232924620,"number":4416,"title":"Add variant to build shared Perl lib","user":{"login":"hartzell","id":312978,"avatar_url":"https://avatars3.githubusercontent.com/u/312978?v=3","gravatar_id":"","url":"https://api.github.com/users/hartzell","html_url":"https://github.com/hartzell","followers_url":"https://api.github.com/users/hartzell/followers","following_url":"https://api.github.com/users/hartzell/following{/other_user}","gists_url":"https://api.github.com/users/hartzell/gists{/gist_id}","starred_url":"https://api.github.com/users/hartzell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartzell/subscriptions","organizations_url":"https://api.github.com/users/hartzell/orgs","repos_url":"https://api.github.com/users/hartzell/repos","events_url":"https://api.github.com/users/hartzell/events{/privacy}","received_events_url":"https://api.github.com/users/hartzell/received_events","type":"User","site_admin":false},"labels":[{"id":571584920,"url":"https://api.github.com/repos/LLNL/spack/labels/perl","name":"perl","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-01T15:47:41Z","updated_at":"2017-06-01T17:22:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/LLNL/spack/pulls/4416","html_url":"https://github.com/LLNL/spack/pull/4416","diff_url":"https://github.com/LLNL/spack/pull/4416.diff","patch_url":"https://github.com/LLNL/spack/pull/4416.patch"},"body":"Add a variant that enables Perl's \"useshrplib\" feature, which builds a shared perl library.\r\n\r\nThis addresses problems like so:\r\n\r\n```\r\n/usr/bin/ld: /blah/blah/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/perl-5.24.1-y43dp3p5w66v7qh5xkwgufxohyuodyew/lib/5.24.1/x86_64-linux/CORE/libperl.a(op.o): relocation R_X86_64_32S against `PL_opargs' can not be used when making a shared object; recompile with -fPIC\r\n/blah/blah/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/perl-5.24.1-y43dp3p5w66v7qh5xkwgufxohyuodyew/lib/5.24.1/x86_64-linux/CORE/libperl.a: could not read symbols: Bad value\r\n```\r\n\r\nIt should also address the Intel compiler issue discussed in #3081 while respecting Perl's configuration machinery.\r\n\r\nI need this feature for another package (cctools) that's finished but blocked on this."},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/305561921","html_url":"https://github.com/LLNL/spack/pull/4416#issuecomment-305561921","issue_url":"https://api.github.com/repos/LLNL/spack/issues/4416","id":305561921,"user":{"login":"hartzell","id":312978,"avatar_url":"https://avatars3.githubusercontent.com/u/312978?v=3","gravatar_id":"","url":"https://api.github.com/users/hartzell","html_url":"https://github.com/hartzell","followers_url":"https://api.github.com/users/hartzell/followers","following_url":"https://api.github.com/users/hartzell/following{/other_user}","gists_url":"https://api.github.com/users/hartzell/gists{/gist_id}","starred_url":"https://api.github.com/users/hartzell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartzell/subscriptions","organizations_url":"https://api.github.com/users/hartzell/orgs","repos_url":"https://api.github.com/users/hartzell/repos","events_url":"https://api.github.com/users/hartzell/events{/privacy}","received_events_url":"https://api.github.com/users/hartzell/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T17:22:14Z","updated_at":"2017-06-01T17:22:14Z","body":"@jrood-nrel -- I wonder if you're running afoul of this bit in the configure script:\r\n\r\n```sh\r\n\tcase \"$cccdlflags\" in\r\n\t    '') case \"$gccversion\" in\r\n\t\t'') case \"$osname\" in\r\n\t\t\thpux)\tdflt='+z' ;;\r\n\t\t\tirix*)\tdflt='-KPIC' ;;\r\n\t\t\tsvr4*|esix*|solaris|nonstopux) dflt='-KPIC' ;;\r\n\t\t\tsunos)\tdflt='-pic' ;;\r\n\t\t\t*)\tdflt='none' ;;\r\n\t\t    esac\r\n\t\t    ;;\r\n\t\t*)  case \"$osname\" in\r\n\t\t\tdarwin) dflt='none' ;;\r\n\t\t\t*linux*|svr4*|esix*|solaris|nonstopux) dflt='-fPIC' ;;\r\n\t\t\t*)\tdflt='-fpic' ;;\r\n\t\t    esac ;;\r\n\t\tesac ;;\r\n\t    ' ') dflt='none' ;;\r\n\t    *)   dflt=\"$cccdlflags\" ;;\r\n\tesac\r\n```\r\n\r\nCan you share the output of `perl -V` for a working perl that you've built using Spack?\r\n"}}
{"actor":{"display_login":"hartzell"}}