Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263129 - dev-lang/erlang ignores LDFLAGS
Summary: dev-lang/erlang ignores LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High QA
Assignee: Christian Faulhammer (RETIRED)
URL: http://www.erlang.org/pipermail/erlan...
Whiteboard:
Keywords:
: 335964 (view as bug list)
Depends on:
Blocks: ldflags 325073
  Show dependency tree
 
Reported: 2009-03-20 15:33 UTC by Davide Pesavento (RETIRED)
Modified: 2010-11-08 00:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Draft ebuild for Erlang 13A (erlang-13.1.ebuild,4.42 KB, text/plain)
2009-04-04 00:31 UTC, Christian Faulhammer (RETIRED)
Details
respect LDFLAGS (erlang-13.1-LDFLAGS.patch,4.13 KB, patch)
2009-04-07 21:27 UTC, Davide Pesavento (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento (RETIRED) gentoo-dev 2009-03-20 15:33:01 UTC
QA Notice: Files built without respecting LDFLAGS have been detected
 Please include the following list of files in your report:
/usr/lib64/erlang/lib/runtime_tools-1.7.3/priv/lib/trace_file_drv.so
/usr/lib64/erlang/lib/runtime_tools-1.7.3/priv/lib/trace_ip_drv.so
/usr/lib64/erlang/lib/megaco-3.9.1.1/priv/lib/megaco_flex_scanner_drv_mt.so
/usr/lib64/erlang/lib/megaco-3.9.1.1/priv/lib/megaco_flex_scanner_drv.so
/usr/lib64/erlang/lib/erl_interface-3.5.9/bin/erl_call
/usr/lib64/erlang/lib/ssl-3.10/priv/bin/ssl_esock
/usr/lib64/erlang/lib/asn1-1.6.2/priv/lib/asn1_erl_drv.so
/usr/lib64/erlang/lib/crypto-1.5.3/priv/lib/crypto_drv.so
/usr/lib64/erlang/lib/common_test-1.3.4/priv/lib/erl_rx_driver.so
/usr/lib64/erlang/erts-5.6.5/bin/child_setup
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2009-03-30 17:27:51 UTC
Thank you for your report and sorry for the delay.  Before digging too deep into why LDFLAGS are ignored, upstream should be contacted.  Are you able to take that over?  If not, I will try to get in touch with them.  They are usually really helpful on the erlang-bugs mailing list.
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2009-03-31 20:21:43 UTC
Upstream informed.

http://www.erlang.org/pipermail/erlang-bugs/2009-March/001248.html
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-03 22:04:36 UTC
(In reply to comment #2)
> Upstream informed.

 Thanks, let's see if they react sometime...sometimes they fix the problems and just don't tell anyone.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2009-04-03 22:43:08 UTC
Btw, Erlang/OTP R13A was recently released. Maybe this bug is fixed in the new version. I'll test it if you can update the package (a masked bump should be fine since upstream considers it a beta release).
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-04 00:31:14 UTC
Created attachment 187253 [details]
Draft ebuild for Erlang 13A

(In reply to comment #4)
> Btw, Erlang/OTP R13A was recently released. Maybe this bug is fixed in the new
> version. I'll test it if you can update the package (a masked bump should be
> fine since upstream considers it a beta release).

 Yes, have seen it.  It has some bigger news and dependencies will likely be updated (wxGTK being one of them) so I won't add ebuilds to Portage now, as I need to rework the ebuild quite a bit (no time at the moment for that).  But you can try the ebuild attached, which is just tested for a succesful configure run.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2009-04-04 10:48:43 UTC
Still a problem in R13A.

 * QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib64/erlang/lib/runtime_tools-1.8/priv/lib/trace_file_drv.so
 * /usr/lib64/erlang/lib/runtime_tools-1.8/priv/lib/trace_ip_drv.so
 * /usr/lib64/erlang/lib/erl_interface-3.6/bin/erl_call
 * /usr/lib64/erlang/lib/crypto-1.6/priv/lib/crypto_drv.so
 * /usr/lib64/erlang/lib/megaco-3.10.0.1/priv/lib/megaco_flex_scanner_drv_mt.so
 * /usr/lib64/erlang/lib/megaco-3.10.0.1/priv/lib/megaco_flex_scanner_drv.so
 * /usr/lib64/erlang/lib/ssl-3.10.1/priv/bin/ssl_esock
 * /usr/lib64/erlang/lib/asn1-1.6.8/priv/lib/asn1_erl_drv.so
 * /usr/lib64/erlang/erts-5.7/bin/child_setup


I had to disable 'java' USE flag because otherwise compilation fails with a java.lang.OutOfMemoryError exception.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-07 10:50:28 UTC
(In reply to comment #6)
> Still a problem in R13A.
> 
>  * QA Notice: Files built without respecting LDFLAGS have been detected
>  *  Please include the following list of files in your report:
>  * /usr/lib64/erlang/lib/runtime_tools-1.8/priv/lib/trace_file_drv.so
>  * /usr/lib64/erlang/lib/runtime_tools-1.8/priv/lib/trace_ip_drv.so
>  * /usr/lib64/erlang/lib/erl_interface-3.6/bin/erl_call
>  * /usr/lib64/erlang/lib/crypto-1.6/priv/lib/crypto_drv.so
>  * /usr/lib64/erlang/lib/megaco-3.10.0.1/priv/lib/megaco_flex_scanner_drv_mt.so
>  * /usr/lib64/erlang/lib/megaco-3.10.0.1/priv/lib/megaco_flex_scanner_drv.so
>  * /usr/lib64/erlang/lib/ssl-3.10.1/priv/bin/ssl_esock
>  * /usr/lib64/erlang/lib/asn1-1.6.8/priv/lib/asn1_erl_drv.so
>  * /usr/lib64/erlang/erts-5.7/bin/child_setup
> 
> 
> I had to disable 'java' USE flag because otherwise compilation fails with a
> java.lang.OutOfMemoryError exception.

 No problems here...how much space is left on your /var/tmp/portage partition (if any) and how much RAM do you have?

Erlang 13A is in the tree now (masked with extended USE flags).
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2009-04-07 15:48:58 UTC
2 GB of ram and 15 GB of free disk space.

I think the failure is unrelated to this specific package though, because I've seen very weird interactions between my kernel and the jvm lately. The jvm process gets stuck on a futex and while it remains there, any other fork() fails... maybe the kernel is out of file descriptors? I'll investigate this issue further and open another bug if appropriate.

Btw, I'm having a look at erlang's build system... it's quite a bit of a mess and has lots of duplicated code... it really needs a rewrite using libtool imho. Anyway I managed to prepare a working patch that fixes the LDFLAGS problem for me, I'll attach it shortly.
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2009-04-07 21:27:29 UTC
Created attachment 187637 [details, diff]
respect LDFLAGS
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-08 23:15:55 UTC
(In reply to comment #8)
> Btw, I'm having a look at erlang's build system... it's quite a bit of a mess
> and has lots of duplicated code... it really needs a rewrite using libtool
> imho. Anyway I managed to prepare a working patch that fixes the LDFLAGS
> problem for me, I'll attach it shortly.

 Thanks for your patch.  13.1-r1 is in the tree, please bring the patch upstream.

I am maintaining Erlang for two years now and apart from the build system, maintaining the ebuild is a real pain, too...and I don't even use Erlang:
http://www.faulhammer.org/archiv-mainmenu-31/35-gentoo/142-never-bump-a-package-you-dont-want-to-maintain
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2009-04-20 13:26:52 UTC
For the record, my patch has been accepted upstream and will be included in the first patch release after R13B.

http://erlang.org/pipermail/erlang-bugs/2009-April/001271.html
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-20 17:25:18 UTC
(In reply to comment #11)
> For the record, my patch has been accepted upstream and will be included in the
> first patch release after R13B.

 Thanks a lot for your work, I really appreciate it.  Now you can fix their build system to support parallel buids. :)
Comment 13 Davide Pesavento (RETIRED) gentoo-dev 2009-08-16 19:54:17 UTC
I just rebuilt erlang-13.2.1 and found that the original issue is still present. My patch still applies cleanly, so I guess upstream forgot to apply it before the release... :(
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2009-08-17 19:49:48 UTC
(In reply to comment #13)
> I just rebuilt erlang-13.2.1 and found that the original issue is still
> present. My patch still applies cleanly, so I guess upstream forgot to apply it
> before the release... :(

 Readded to Portage.  Please resubmit the patch.  Thanks for the notice.
Comment 15 Christian Faulhammer (RETIRED) gentoo-dev 2010-09-07 10:06:33 UTC
*** Bug 335964 has been marked as a duplicate of this bug. ***
Comment 16 Christian Faulhammer (RETIRED) gentoo-dev 2010-09-07 10:07:28 UTC
Some parts of the patch have not been applied, I rereported it upstream.
Comment 17 Christian Faulhammer (RETIRED) gentoo-dev 2010-11-08 00:42:48 UTC
Fixed in 14.2