* Re: gcc-4.2.4 bootstrap: multiple "declared 'static' but never defined" warnings in stage 3
[not found] <0B8BA6EC-B75C-412C-9E98-23621B74FBA9@gmail.com>
@ 2012-06-07 2:22 ` t-rexky
2012-06-07 20:53 ` Ángel González
0 siblings, 1 reply; 4+ messages in thread
From: t-rexky @ 2012-06-07 2:22 UTC (permalink / raw)
To: gcc-help
Hello again,
I completed the bootstrap process ignoring the stage 2 compiler warning. The stage 3 compiler generates the same warnings,
but it does create good executable code. I am currently running a make check-gcc that will take many hours on a 68040.
I am completely baffled by what could make gcc generate the warnings below for all declared functions, including the built-ins.
I would be very grateful for any suggestions or ideas.
Thank you!
On 2012-06-06, at 10:11 PM, t-rexky wrote:
> Compiling with the stage 2 xgcc -Wall or -Wunused generates an endless list of warnings of the following type:
>
> <built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
> <built-in>:0: warning: 'acos' declared 'static' but never defined
>
> t-rexky
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc-4.2.4 bootstrap: multiple "declared 'static' but never defined" warnings in stage 3
2012-06-07 2:22 ` gcc-4.2.4 bootstrap: multiple "declared 'static' but never defined" warnings in stage 3 t-rexky
@ 2012-06-07 20:53 ` Ángel González
2012-06-08 1:52 ` t-rexky
0 siblings, 1 reply; 4+ messages in thread
From: Ángel González @ 2012-06-07 20:53 UTC (permalink / raw)
To: t-rexky; +Cc: gcc-help
> On 2012-06-06, at 10:11 PM, t-rexky wrote:
>
>> Compiling with the stage 2 xgcc -Wall or -Wunused generates an endless list of warnings of the following type:
>>
>> <built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
>> <built-in>:0: warning: 'acos' declared 'static' but never defined
>>
>> t-rexky
>>
On 07/06/12 04:22, t-rexky wrote:
> Hello again,
>
> I completed the bootstrap process ignoring the stage 2 compiler warning. The stage 3 compiler generates the same warnings,
> but it does create good executable code. I am currently running a make check-gcc that will take many hours on a 68040.
>
> I am completely baffled by what could make gcc generate the warnings below for all declared functions, including the built-ins.
> I would be very grateful for any suggestions or ideas.
>
> Thank you!
Have you tried building a program which uses acos or __builtin_acos?
Eg.
#include <math.h>
#include <stdio.h>
int main() {
printf("%lf\n", acos(0.5));
return 0;
}
#include <math.h>
#include <stdio.h>
int main() {
printf("%lf\n", __builtin_acos(0.5));
return 0;
}
(the first one may need to link with -lm, but not the second)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc-4.2.4 bootstrap: multiple "declared 'static' but never defined" warnings in stage 3
2012-06-07 20:53 ` Ángel González
@ 2012-06-08 1:52 ` t-rexky
0 siblings, 0 replies; 4+ messages in thread
From: t-rexky @ 2012-06-08 1:52 UTC (permalink / raw)
To: Ángel González; +Cc: gcc-help
Thank you very much for your response!
On 2012-06-07, at 4:52 PM, Ángel González wrote:
>> On 2012-06-06, at 10:11 PM, t-rexky wrote:
>>
>>> Compiling with the stage 2 xgcc -Wall or -Wunused generates an endless list of warnings of the following type:
>>>
>>> <built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
>>> <built-in>:0: warning: 'acos' declared 'static' but never defined
>>>
>>> t-rexky
> Have you tried building a program which uses acos or __builtin_acos?
Here are is the compiler and executable output with various compile options:
> Eg.
> #include <math.h>
> #include <stdio.h>
>
> int main() {
> printf("%lf\n", acos(0.5));
> return 0;
> }
nextstep[Tests]$xgcc acos_test.c -o acos_test
<built-in>:0: warning: '__builtin_acos' used but never defined
/NextDeveloper/Headers/ansi/math.h:55: warning: 'acos' used but never defined
<built-in>:0: warning: '__builtin_printf' used but never defined
/NextDeveloper/Headers/ansi/stdio.h:123: warning: 'printf' used but never defined
nextstep[Tests]$./acos_test
1.047198
nextstep[Tests]$xgcc acos_test.c -o acos_test -O
nextstep[Tests]$./acos_test
1.047198
> #include <math.h>
> #include <stdio.h>
>
> int main() {
> printf("%lf\n", __builtin_acos(0.5));
> return 0;
> }
nextstep[Tests]$xgcc builtin_acos_test.c -o builtin_acos_test
<built-in>:0: warning: '__builtin_acos' used but never defined
/NextDeveloper/Headers/ansi/math.h:55: warning: 'acos' used but never defined
<built-in>:0: warning: '__builtin_printf' used but never defined
/NextDeveloper/Headers/ansi/stdio.h:123: warning: 'printf' used but never defined
nextstep[Tests]$./builtin_acos_test
1.047198
nextstep[Tests]$xgcc builtin_acos_test.c -o builtin_acos_test -O
nextstep[Tests]$./builtin_acos_test
1.047198
nextstep[Tests]$xgcc builtin_acos_test.c -o builtin_acos_test -Wall
<built-in>:0: warning: '__builtin_acos' used but never defined
/NextDeveloper/Headers/ansi/math.h:55: warning: 'acos' used but never defined
<built-in>:0: warning: '__builtin_acosf' declared 'static' but never defined
<built-in>:0: warning: 'acosf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acosh' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:24: warning: 'acosh' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acoshf' declared 'static' but never defined
<built-in>:0: warning: 'acoshf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acoshl' declared 'static' but never defined
<built-in>:0: warning: 'acoshl' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acosl' declared 'static' but never defined
<built-in>:0: warning: 'acosl' declared 'static' but never defined
<built-in>:0: warning: '__builtin_asin' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:56: warning: 'asin' declared 'static' but never defined
<built-in>:0: warning: '__builtin_asinf' declared 'static' but never defined
<built-in>:0: warning: 'asinf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_asinh' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:23: warning: 'asinh' declared 'static' but never defined
^C (I aborted here since xgcc spits out an endless list of similar warnings, but the resultant executable works)
nextstep[Tests]$xgcc builtin_acos_test.c -o builtin_acos_test -O -Wall
<built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:55: warning: 'acos' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acosf' declared 'static' but never defined
<built-in>:0: warning: 'acosf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acosh' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:24: warning: 'acosh' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acoshf' declared 'static' but never defined
<built-in>:0: warning: 'acoshf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acoshl' declared 'static' but never defined
<built-in>:0: warning: 'acoshl' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acosl' declared 'static' but never defined
<built-in>:0: warning: 'acosl' declared 'static' but never defined
<built-in>:0: warning: '__builtin_asin' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:56: warning: 'asin' declared 'static' but never defined
<built-in>:0: warning: '__builtin_asinf' declared 'static' but never defined
<built-in>:0: warning: 'asinf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_asinh' declared 'static' but never defined
/NextDeveloper/Headers/ansi/math.h:23: warning: 'asinh' declared 'static' but never defined
^C (I aborted here since xgcc spits out an endless list of similar warnings, but the resultant executable works)
> (the first one may need to link with -lm, but not the second)
>
I would appreciate any suggestions as to what might be going on since I am completely confused.
Thank you!
^ permalink raw reply [flat|nested] 4+ messages in thread
* gcc-4.2.4 bootstrap: multiple "declared 'static' but never defined" warnings in stage 3
@ 2012-06-03 14:44 t-rexky
0 siblings, 0 replies; 4+ messages in thread
From: t-rexky @ 2012-06-03 14:44 UTC (permalink / raw)
To: gcc-help
Hello,
I have been trying to port a reasonably recent version of gcc to a m68k NeXT running NEXTSTEP 3.3. After many struggles and lots of help from the m68k debian ports team I was finally able to complete stage 2 of the bootstrap process. The stage 2 compiler appears to be working well and producing good code, but I stopped the build of stage 3 because of an obscure issue that did not exist in the stage 1 compiler.
Compiling with the stage 2 xgcc -Wall or -Wunused generates an endless list of warnings of the following type:
<built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
<built-in>:0: warning: 'acos' declared 'static' but never defined
<built-in>:0: warning: '__builtin_acosf' declared 'static' but never defined
<built-in>:0: warning: 'acosf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_fprintf' declared 'static' but never defined
/NextDeveloper/Headers/ansi/stdio.h:119: warning: 'fprintf' declared 'static' but never defined
<built-in>:0: warning: '__builtin_fprintf_unlocked' declared 'static' but never defined
<built-in>:0: warning: 'fprintf_unlocked' declared 'static' but never defined
These occur on every source file for every built-in function declaration and every function declaration in the included header files.
I am struggling to identify the root cause of this issue and would very much appreciate any assistance.
t-rexky
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-08 1:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <0B8BA6EC-B75C-412C-9E98-23621B74FBA9@gmail.com>
2012-06-07 2:22 ` gcc-4.2.4 bootstrap: multiple "declared 'static' but never defined" warnings in stage 3 t-rexky
2012-06-07 20:53 ` Ángel González
2012-06-08 1:52 ` t-rexky
2012-06-03 14:44 t-rexky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).