summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-October/009210.html
blob: 4613e0dc535fdd6ef38046001bc21c39246542df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Strange warning when building ascii
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Strange%20warning%20when%20building%20ascii&In-Reply-To=%3C4EAD02B5.3050903%40mageia.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="009201.html">
   <LINK REL="Next"  HREF="009212.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Strange warning when building ascii</H1>
    <B>Anssi Hannula</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Strange%20warning%20when%20building%20ascii&In-Reply-To=%3C4EAD02B5.3050903%40mageia.org%3E"
       TITLE="[Mageia-dev] Strange warning when building ascii">anssi at mageia.org
       </A><BR>
    <I>Sun Oct 30 08:54:29 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="009201.html">[Mageia-dev] Strange warning when building ascii
</A></li>
        <LI>Next message: <A HREF="009212.html">[Mageia-dev] Strange warning when building ascii
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#9210">[ date ]</a>
              <a href="thread.html#9210">[ thread ]</a>
              <a href="subject.html#9210">[ subject ]</a>
              <a href="author.html#9210">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 30.10.2011 00:07, Oliver Burger wrote:
&gt;<i> Hi,
</I>&gt;<i> 
</I>&gt;<i> I (or better one of my padawans) have one problem:
</I>&gt;<i> When trying to build ascii the build is running fine but in the buildlogs, 
</I>&gt;<i> there is a strange warning about not finding any &quot;build ID note&quot;.
</I>
This happens when our %ldflags are not used for linking.

You probably need to use LDFLAGS=&quot;%ldflags&quot; 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=&quot;$RPM_OPT_FLAGS&quot; 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=&quot;$RPM_OPT_FLAGS&quot; to CC=&quot;gcc %optflags %ldflags&quot;, or
b) patch the Makefile to use $(CFLAGS) $(LDFLAGS) after the $(CC)
instance and use %setup_compile_flags before %make.

&gt;<i> I have found a Mandriva bug report about a similar topic and misc showed my 
</I>&gt;<i> padawan a link at Fedora about this happening when LD is called directly in 
</I>&gt;<i> the Makefile.
</I>&gt;<i> 
</I>&gt;<i> I have no clue what to do here, any help would be welcome...
</I>&gt;<i> 
</I>&gt;<i> The behaviour has been confirmed on building ascii by three people by now.
</I>&gt;<i> 
</I>&gt;<i> Here are some links...
</I>&gt;<i> - <A HREF="http://pastebin.com/w9u3FQsx">http://pastebin.com/w9u3FQsx</A>
</I>&gt;<i> 	(build log)
</I>&gt;<i> - <A HREF="http://www.linux-archive.org/fedora-packaging/103083-no-build-id-note-found-">http://www.linux-archive.org/fedora-packaging/103083-no-build-id-note-found-</A>
</I>&gt;<i> how-resolve.html 
</I>&gt;<i> 	(given by misc, but I don't find any direct calls of $(LD)
</I>&gt;<i> - <A HREF="https://qa.mandriva.com/show_bug.cgi?id=58487">https://qa.mandriva.com/show_bug.cgi?id=58487</A>
</I>&gt;<i> 	(similar prob on mandriva bs, at least the same warning...)
</I>&gt;<i> 
</I>&gt;<i> Thanks for help,
</I>&gt;<i> 
</I>&gt;<i> Oliver
</I>&gt;<i> 
</I>

-- 
Anssi Hannula
</PRE>


























<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="009201.html">[Mageia-dev] Strange warning when building ascii
</A></li>
	<LI>Next message: <A HREF="009212.html">[Mageia-dev] Strange warning when building ascii
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#9210">[ date ]</a>
              <a href="thread.html#9210">[ thread ]</a>
              <a href="subject.html#9210">[ subject ]</a>
              <a href="author.html#9210">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>