From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2011-October/009210.html | 132 ++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 zarb-ml/mageia-dev/2011-October/009210.html (limited to 'zarb-ml/mageia-dev/2011-October/009210.html') diff --git a/zarb-ml/mageia-dev/2011-October/009210.html b/zarb-ml/mageia-dev/2011-October/009210.html new file mode 100644 index 000000000..4613e0dc5 --- /dev/null +++ b/zarb-ml/mageia-dev/2011-October/009210.html @@ -0,0 +1,132 @@ + + + + [Mageia-dev] Strange warning when building ascii + + + + + + + + + +

[Mageia-dev] Strange warning when building ascii

+ Anssi Hannula + anssi at mageia.org +
+ Sun Oct 30 08:54:29 CET 2011 +

+
+ +
On 30.10.2011 00:07, Oliver Burger wrote:
+> Hi,
+> 
+> I (or better one of my padawans) have one problem:
+> When trying to build ascii the build is running fine but in the buildlogs, 
+> there is a strange warning about not finding any "build ID note".
+
+This happens when our %ldflags are not used for linking.
+
+You probably need to use LDFLAGS="%ldflags" somewhere or some other flag
+or variable, to get the %ldflags to appear after 'cc' in this line in
+the build:
+cc -DREVISION=3.11 ascii.c -o ascii
+
+- Spoilers below -
+
+OK, looked at the package.
+First, your %build is wrong. You use CFLAGS="$RPM_OPT_FLAGS" in the
+%make command, but the Makefile doesn't even use any CFLAGS variable!
+
+Similarly, it doesn't use LDFLAGS so setting that would do no good either.
+
+You need to either e.g.
+a) change the CFLAGS="$RPM_OPT_FLAGS" to CC="gcc %optflags %ldflags", or
+b) patch the Makefile to use $(CFLAGS) $(LDFLAGS) after the $(CC)
+instance and use %setup_compile_flags before %make.
+
+> I have found a Mandriva bug report about a similar topic and misc showed my 
+> padawan a link at Fedora about this happening when LD is called directly in 
+> the Makefile.
+> 
+> I have no clue what to do here, any help would be welcome...
+> 
+> The behaviour has been confirmed on building ascii by three people by now.
+> 
+> Here are some links...
+> - http://pastebin.com/w9u3FQsx
+> 	(build log)
+> - http://www.linux-archive.org/fedora-packaging/103083-no-build-id-note-found-
+> how-resolve.html 
+> 	(given by misc, but I don't find any direct calls of $(LD)
+> - https://qa.mandriva.com/show_bug.cgi?id=58487
+> 	(similar prob on mandriva bs, at least the same warning...)
+> 
+> Thanks for help,
+> 
+> Oliver
+> 
+
+
+-- 
+Anssi Hannula
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1