Ticket #88 (closed Defect: fixed)

Opened 1 year ago

Last modified 10 months ago

cannot build boinc where cflags contain a flag with -l in the middle

Reported by: KSMarksPsych Assigned to: repr
Priority: Minor Milestone: Undetermined
Component: Client - Build Version:
Keywords: patch Cc:

Description (Last modified by Nicolas)

Posted by: Date: 1:13 AM 07-08-2006 Currently you cannot build boinc where you have default cflags specified with a -l in the middle of the flag.

-funroll-loops is one such flag. GCC supports numeros others. This occured on Gentoo with version 5.2.14, but I've confirm that the same problem exists in the cvs version of boinc.

Issue is that when performing the "checking for curl_free" test LDFLAGS are modified. CFLAGS are pulled in as part of of what is returned by running /usr/bin/curl-config --libs

the result is currently passed through

sed 's/-l[^ ]*//g'

which results in -funroll-loops being converted to -funroll

result is that all the tests afterwards that use the LDFLAGS to perform a test compile to fail. This results in wrong includes/libraries being setup by the configure script and ultimately when you run make causes fatal errors to occur.

I've attached a patch to fix the configure.ac script and thus the test in configure. Further details can be found by viewing the bug I've logged on the gentoo website, http://bugs.gentoo.org/show_bug.cgi?id=139621

Attachments

510-boinc-cflags-unroll-loops-fix.patch (0.6 kB) - added by KSMarksPsych on 04/20/07 23:07:17.
Patch provided by original reporter

Change History

04/20/07 23:07:17 changed by KSMarksPsych

  • attachment 510-boinc-cflags-unroll-loops-fix.patch added.

Patch provided by original reporter

04/20/07 23:08:18 changed by KSMarksPsych

  • description changed.

05/29/07 09:20:34 changed by romw

  • owner changed from romw to davea.

05/29/07 14:01:02 changed by romw

  • owner changed from davea to repr.

10/20/07 17:28:08 changed by Nicolas

  • keywords set to patch.
  • description changed.

Has this been fixed already?

(in reply to: ↑ description ) 10/21/07 00:50:35 changed by repr

fixed in r13919 [how/were can I close the ticket??]

11/16/07 10:08:34 changed by Didactylos

  • status changed from new to closed.
  • resolution set to fixed.

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.