* multiple definition of `atan2l' on the current Cygwin
@ 2016-04-12 8:11 Tatsuro MATSUOKA
2016-04-12 13:39 ` Corinna Vinschen
0 siblings, 1 reply; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-12 8:11 UTC (permalink / raw)
To: cygwin; +Cc: anrdaemon
Hello
I have updated Cygwin_x86 and Cygwin_x86-64 today.
In building the gnuplot I have met the error of "multiple definition of `atan2l'".
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0): multiple definition of `atan2l'
/usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Makefile:777: recipe for target 'gnuplot.exe' failed
This did not occur yesterday.
Perhaps the latest change gcc-5.3.0 give this results.
At the moment a workaroud is :
LDFLAGS='-Wl,--allow-multiple-definition' \
at configure.
Tatsuro
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-12 8:11 multiple definition of `atan2l' on the current Cygwin Tatsuro MATSUOKA
@ 2016-04-12 13:39 ` Corinna Vinschen
2016-04-13 0:09 ` Tatsuro MATSUOKA
0 siblings, 1 reply; 16+ messages in thread
From: Corinna Vinschen @ 2016-04-12 13:39 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]
On Apr 12 17:11, Tatsuro MATSUOKA wrote:
> Hello
> I have updated Cygwin_x86 and Cygwin_x86-64 today.
> In building the gnuplot I have met the error of "multiple definition of `atan2l'".
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0): multiple definition of `atan2l'
> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
> collect2: error: ld returned 1 exit status
> Makefile:777: recipe for target 'gnuplot.exe' failed
> This did not occur yesterday.
> Perhaps the latest change gcc-5.3.0 give this results.
> At the moment a workaroud is :
> LDFLAGS='-Wl,--allow-multiple-definition' \
> at configure.
I can't reproduce this with a simple testcase:
$ cat > m.cc <<EOF
#include <math.h>
int main ()
{
atan2l (1.0, 2.0);
}
EOF
$ g++ -g -o m m.cc -lm -lstdc++ -lm -lstdc++
This builds and links fine for me.
Is there a chance that gnuplot accidentally provides its own atan2l on
Cygwin, despite Cygwin 2.5.0 now providing it per C99? Or did you, by
any chance, try to rebuild gnuplot without reconfiguring the build?
Can you please provide a simple, self-contained testcase?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-12 13:39 ` Corinna Vinschen
@ 2016-04-13 0:09 ` Tatsuro MATSUOKA
2016-04-13 8:11 ` Corinna Vinschen
2016-04-13 16:57 ` René Berber
0 siblings, 2 replies; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-13 0:09 UTC (permalink / raw)
To: cygwin
> From: Corinna Vinschen > To: cygwin@cygwin.com
> Cc:
> Date: 2016/4/12, Tue 22:39
> Subject: Re: multiple definition of `atan2l' on the current Cygwin
>
> On Apr 12 17:11, Tatsuro MATSUOKA wrote:
>> Hello
>> I have updated Cygwin_x86 and Cygwin_x86-64 today.
>> In building the gnuplot I have met the error of "multiple definition
> of `atan2l'".
> I can't reproduce this with a simple testcase:
>
> $ cat > m.cc <<EOF
> #include <math.h>
>
> int main ()
> {
> atan2l (1.0, 2.0);
> }
> EOF
> $ g++ -g -o m m.cc -lm -lstdc++ -lm -lstdc++
>
> This builds and links fine for me.
>
> Is there a chance that gnuplot accidentally provides its own atan2l on
> Cygwin, despite Cygwin 2.5.0 now providing it per C99? Or did you, by
> any chance, try to rebuild gnuplot without reconfiguring the build?
>
> Can you please provide a simple, self-contained testcase?
Your testcase also works here.
I tried to make the test but I could not make a simple, self-contained testcase.
Instead I copy and paste full compile command and output at the link.
Tatsuro
*******************************************
c++ -g -O2 -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -L/usr/local/lib -lcerf -o gnuplot.exe alloc.o axis.o breaders.o
boundary.o color.o command.o contour.o datablock.o datafile.o dynarray.o eval.o external.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o jitter.o libcerf.o matrix.o misc.o mouse.o multiplot.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stats.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o wxterminal/wxt_gui.o wxterminal/gp_cairo.o wxterminal/gp_cairo_helpers.o -lz -lgd -lgd -ljpeg -lz -lpng16 -lm -lz -lfreetype -lbz2 -lz -lpng16 -lm -lz -lfontconfig -lexpat -lfreetype -lbz2 -lz -lpng16 -lm -lz -lexpat -lfreetype -lbz2 -lz -lpng16 -lm -lz -lfontconfig -lXpm -lX11 -lxcb -lXau -lXdmcp -lvpx -lm -lpthread -ltiff -llzma -ljbig -ljpeg -lz -liconv -llua -lcaca -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_webview-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0
-lwx_baseu_net-3.0 -lwx_baseu-3.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lgio-2.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype -lcaca -lcerf -lz -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lcairo -lglib-2.0 -lintl
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0): multiple definition of `atan2l'
******************************************
/usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-13 0:09 ` Tatsuro MATSUOKA
@ 2016-04-13 8:11 ` Corinna Vinschen
2016-04-13 16:57 ` René Berber
1 sibling, 0 replies; 16+ messages in thread
From: Corinna Vinschen @ 2016-04-13 8:11 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
On Apr 13 09:08, Tatsuro MATSUOKA wrote:
> > From: Corinna Vinschen > To: cygwin@cygwin.com
> > Cc:
> > Date: 2016/4/12, Tue 22:39
> > Subject: Re: multiple definition of `atan2l' on the current Cygwin
> >
> > On Apr 12 17:11, Tatsuro MATSUOKA wrote:
> >> Hello
> >> I have updated Cygwin_x86 and Cygwin_x86-64 today.
> >> In building the gnuplot I have met the error of "multiple definition
> > of `atan2l'".
> > I can't reproduce this with a simple testcase:
> >
> > $ cat > m.cc <<EOF
> > #include <math.h>
> >
> > int main ()
> > {
> > atan2l (1.0, 2.0);
> > }
> > EOF
> > $ g++ -g -o m m.cc -lm -lstdc++ -lm -lstdc++
> >
> > This builds and links fine for me.
> >
> > Is there a chance that gnuplot accidentally provides its own atan2l on
> > Cygwin, despite Cygwin 2.5.0 now providing it per C99? Or did you, by
> > any chance, try to rebuild gnuplot without reconfiguring the build?
> >
> > Can you please provide a simple, self-contained testcase?
> Your testcase also works here.
> I tried to make the test but I could not make a simple, self-contained testcase.
> Instead I copy and paste full compile command and output at the link.
That's not helpful, unfortunately. What about my other questions?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-13 0:09 ` Tatsuro MATSUOKA
2016-04-13 8:11 ` Corinna Vinschen
@ 2016-04-13 16:57 ` René Berber
2016-04-13 17:26 ` Marco Atzeri
2016-04-14 7:52 ` Corinna Vinschen
1 sibling, 2 replies; 16+ messages in thread
From: René Berber @ 2016-04-13 16:57 UTC (permalink / raw)
To: cygwin
On 4/12/2016 7:08 PM, Tatsuro MATSUOKA wrote:
[snip]
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0):
> multiple definition of `atan2l'
> ******************************************
> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined
> here
Those lines point to the double definition very clearly.
In Linux, libstdc++ doesn't include atan2l, only libm has it. The
question then is: why is libstdc++ different?
--
René Berber
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-13 16:57 ` René Berber
@ 2016-04-13 17:26 ` Marco Atzeri
2016-04-14 7:52 ` Corinna Vinschen
1 sibling, 0 replies; 16+ messages in thread
From: Marco Atzeri @ 2016-04-13 17:26 UTC (permalink / raw)
To: cygwin
On 13/04/2016 18:55, René Berber wrote:
> On 4/12/2016 7:08 PM, Tatsuro MATSUOKA wrote:
>
> [snip]
>> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0):
>> multiple definition of `atan2l'
>> ******************************************
>> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined
>> here
>
> Those lines point to the double definition very clearly.
>
> In Linux, libstdc++ doesn't include atan2l, only libm has it. The
> question then is: why is libstdc++ different?
>
likely because it was built before that libm had it.
Only latest cygwin 2.5.0 has it.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-13 16:57 ` René Berber
2016-04-13 17:26 ` Marco Atzeri
@ 2016-04-14 7:52 ` Corinna Vinschen
2016-04-14 10:00 ` Takashi Yano
1 sibling, 1 reply; 16+ messages in thread
From: Corinna Vinschen @ 2016-04-14 7:52 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 789 bytes --]
On Apr 13 11:55, René Berber wrote:
> On 4/12/2016 7:08 PM, Tatsuro MATSUOKA wrote:
>
> [snip]
> > /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0):
> > multiple definition of `atan2l'
> > ******************************************
> > /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined
> > here
>
> Those lines point to the double definition very clearly.
>
> In Linux, libstdc++ doesn't include atan2l, only libm has it. The
> question then is: why is libstdc++ different?
If it's that simple, why does my STC (or a simple variation thereof) not
complain?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-14 7:52 ` Corinna Vinschen
@ 2016-04-14 10:00 ` Takashi Yano
2016-04-14 13:52 ` Corinna Vinschen
0 siblings, 1 reply; 16+ messages in thread
From: Takashi Yano @ 2016-04-14 10:00 UTC (permalink / raw)
To: cygwin
Hi Corinna,
On Thu, 14 Apr 2016 09:52:05 +0200
Corinna Vinschen wrote:
> If it's that simple, why does my STC (or a simple variation thereof) not
> complain?
It is because optimizer removes the function call.
Try:
$ cat > m.cc <<EOF
#include <cstdio>
#include <cmath>
int main()
{
long double x, y;
scanf("%Lf %Lf", &x, &y);
printf("%Lf\n", atan2l(x,y));
return 0;
}
EOF
$ g++ m.cc -lm
--
Takashi Yano <takashi.yano@nifty.ne.jp>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-14 10:00 ` Takashi Yano
@ 2016-04-14 13:52 ` Corinna Vinschen
2016-04-14 22:32 ` JonY
` (3 more replies)
0 siblings, 4 replies; 16+ messages in thread
From: Corinna Vinschen @ 2016-04-14 13:52 UTC (permalink / raw)
To: cygwin; +Cc: JonY
[-- Attachment #1: Type: text/plain, Size: 951 bytes --]
On Apr 14 19:00, Takashi Yano wrote:
> Hi Corinna,
>
> On Thu, 14 Apr 2016 09:52:05 +0200
> Corinna Vinschen wrote:
> > If it's that simple, why does my STC (or a simple variation thereof) not
> > complain?
>
> It is because optimizer removes the function call.
>
> Try:
>
> $ cat > m.cc <<EOF
> #include <cstdio>
> #include <cmath>
>
> int main()
> {
> long double x, y;
> scanf("%Lf %Lf", &x, &y);
> printf("%Lf\n", atan2l(x,y));
> return 0;
> }
> EOF
> $ g++ m.cc -lm
Thanks! So that's why my testcase didn't work :}
This is actually a problem in libstdc++-v3. On platforms missing
certain long double functions libstdc++-v3 is built with stub functions
using the same name.
Jon, any chance to rebuild the gcc packages ASAP?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-14 13:52 ` Corinna Vinschen
@ 2016-04-14 22:32 ` JonY
2016-04-17 4:29 ` Tatsuro MATSUOKA
` (2 subsequent siblings)
3 siblings, 0 replies; 16+ messages in thread
From: JonY @ 2016-04-14 22:32 UTC (permalink / raw)
To: cygwin
[-- Attachment #1.1: Type: text/plain, Size: 340 bytes --]
On 4/14/2016 21:52, Corinna Vinschen wrote:
>
> This is actually a problem in libstdc++-v3. On platforms missing
> certain long double functions libstdc++-v3 is built with stub functions
> using the same name.
>
> Jon, any chance to rebuild the gcc packages ASAP?
>
Already on it, uploads should start over the weekends.
[-- Attachment #1.2: 0xD4EBC740.asc --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-14 13:52 ` Corinna Vinschen
2016-04-14 22:32 ` JonY
@ 2016-04-17 4:29 ` Tatsuro MATSUOKA
2016-04-17 5:15 ` Tatsuro MATSUOKA
2016-04-18 23:33 ` Tatsuro MATSUOKA
3 siblings, 0 replies; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-17 4:29 UTC (permalink / raw)
To: cygwin
> From: Corinna Vinschen >
> To: cygwin> Cc: JonY
> Date: 2016/4/14, Thu 22:52
> Subject: Re: multiple definition of `atan2l' on the current Cygwin
>
> On Apr 14 19:00, Takashi Yano wrote:
>> Hi Corinna,
>>
>> On Thu, 14 Apr 2016 09:52:05 +0200
>> Corinna Vinschen wrote:
>> > If it's that simple, why does my STC (or a simple variation
> thereof) not
>> > complain?
>>
>> It is because optimizer removes the function call.
>>
>> Try:
>>
>> $ cat > m.cc <<EOF
>> #include <cstdio>
>> #include <cmath>
>>
>> int main()
>> {
>> long double x, y;
>> scanf("%Lf %Lf", &x, &y);
>> printf("%Lf\n", atan2l(x,y));
>> return 0;
>> }
>> EOF
>> $ g++ m.cc -lm
>
> Thanks! So that's why my testcase didn't work :}
>
> This is actually a problem in libstdc++-v3. On platforms missing
> certain long double functions libstdc++-v3 is built with stub functions
> using the same name.
>
> Jon, any chance to rebuild the gcc packages ASAP?
>
>
> Thanks,
> Corinna
I have confirmed the mutiple definition error does not occur on gnuplot build with
gcc-5.3.0-4 today.
Thanks!
Tatsuro
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-14 13:52 ` Corinna Vinschen
2016-04-14 22:32 ` JonY
2016-04-17 4:29 ` Tatsuro MATSUOKA
@ 2016-04-17 5:15 ` Tatsuro MATSUOKA
2016-04-18 23:33 ` Tatsuro MATSUOKA
3 siblings, 0 replies; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-17 5:15 UTC (permalink / raw)
To: cygwin
> I have confirmed the mutiple definition error does not occur on gnuplot build
> with
> gcc-5.3.0-4 today.
> Thanks!
> Tatsuro
The above is for Cygwin X86.
Cygwin 64 still has problem
// m.cc
#include <cstdio>
#include <cmath>
int main()
{
long double x, y;
scanf("%Lf %Lf", &x, &y);
printf("%Lf\n", atan2l(x,y));
return 0;
}
//m.cc
LANG=C g++ m.cc -lm
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0): multiple definition of `atan2l'
/usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Tatsuro
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-14 13:52 ` Corinna Vinschen
` (2 preceding siblings ...)
2016-04-17 5:15 ` Tatsuro MATSUOKA
@ 2016-04-18 23:33 ` Tatsuro MATSUOKA
3 siblings, 0 replies; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-18 23:33 UTC (permalink / raw)
To: cygwin
> From: Tatsuro MATSUOKA
> To: cygwin
> Cc:
> Date: 2016/4/17, Sun 14:15
> Subject: Re: multiple definition of `atan2l' on the current Cygwin
>
>> I have confirmed the mutiple definition error does not occur on gnuplot
> build
>> with
>> gcc-5.3.0-4 today.
>> Thanks!
>> Tatsuro
>
> The above is for Cygwin X86.
> Cygwin 64 still has problem
> // m.cc
> #include <cstdio>
> #include <cmath>
>
> int main()
> {
> long double x, y;
> scanf("%Lf %Lf", &x, &y);
> printf("%Lf\n", atan2l(x,y));
> return 0;
> }
> //m.cc
> LANG=C g++ m.cc -lm
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0):
> multiple definition of `atan2l'
> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
> collect2: error: ld returned 1 exit status
> Tatsuro
gcc-5.3.0 for x86 has been updated to gcc-5.3.0-5
http://cygwin.1069669.n5.nabble.com/Updated-gcc-5-3-0-5-x64-td126377.html
I confirmed this update resolve this issue.
Thanks!
Tatsuro
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-12 3:07 ` multiple definition of `atan2l' on the current Cygwin Tatsuro MATSUOKA
@ 2016-04-12 17:03 ` Warren Young
0 siblings, 0 replies; 16+ messages in thread
From: Warren Young @ 2016-04-12 17:03 UTC (permalink / raw)
To: The Cygwin Mailing List
On Apr 11, 2016, at 9:06 PM, Tatsuro MATSUOKA <tmacchant2@yahoo.co.jp> wrote:
>
> In building the gnuplot
Why aren’t you using the gnuplot package in the Cygwin package repository?
> I have met the error of "multiple definition of `atan2l’".
This is doubtless because that function was just added to Cygwin in 2.5.0.
Perhaps gnuplot is providing its own copy due to a naive platform test? Have you tried a clean reconfigure and rebuild?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: multiple definition of `atan2l' on the current Cygwin
2016-04-11 20:56 ` Ken Brown
2016-04-12 3:07 ` multiple definition of `atan2l' on the current Cygwin Tatsuro MATSUOKA
@ 2016-04-12 8:15 ` Tatsuro MATSUOKA
1 sibling, 0 replies; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-12 8:15 UTC (permalink / raw)
To: cygwin
Please inore this post.
I have made a mistake to post under the different thread.
> From: Tatsuro MATSUOKA
> To: cygwin
> Cc:
> Date: 2016/4/12, Tue 12:06
> Subject: multiple definition of `atan2l' on the current Cygwin
>
> I have updated Cygwin_x86 and Cygwin_x86-64 today.
> In building the gnuplot I have met the error of "multiple definition of
> `atan2l'".
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0):
> multiple definition of `atan2l'
> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
> collect2: error: ld returned 1 exit status
> Makefile:777: recipe for target 'gnuplot.exe' failed
> This did not occur yesterday.
> Perhaps the latest change gcc-5.3.0 give this results.
> At the moment a workaroud is :
> LDFLAGS='-Wl,--allow-multiple-definition' \
> at configure.
> Tatsuro
>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
* multiple definition of `atan2l' on the current Cygwin
2016-04-11 20:56 ` Ken Brown
@ 2016-04-12 3:07 ` Tatsuro MATSUOKA
2016-04-12 17:03 ` Warren Young
2016-04-12 8:15 ` Tatsuro MATSUOKA
1 sibling, 1 reply; 16+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-12 3:07 UTC (permalink / raw)
To: cygwin
I have updated Cygwin_x86 and Cygwin_x86-64 today.
In building the gnuplot I have met the error of "multiple definition of `atan2l'".
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0): multiple definition of `atan2l'
/usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Makefile:777: recipe for target 'gnuplot.exe' failed
This did not occur yesterday.
Perhaps the latest change gcc-5.3.0 give this results.
At the moment a workaroud is :
LDFLAGS='-Wl,--allow-multiple-definition' \
at configure.
Tatsuro
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2016-04-18 23:33 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 8:11 multiple definition of `atan2l' on the current Cygwin Tatsuro MATSUOKA
2016-04-12 13:39 ` Corinna Vinschen
2016-04-13 0:09 ` Tatsuro MATSUOKA
2016-04-13 8:11 ` Corinna Vinschen
2016-04-13 16:57 ` René Berber
2016-04-13 17:26 ` Marco Atzeri
2016-04-14 7:52 ` Corinna Vinschen
2016-04-14 10:00 ` Takashi Yano
2016-04-14 13:52 ` Corinna Vinschen
2016-04-14 22:32 ` JonY
2016-04-17 4:29 ` Tatsuro MATSUOKA
2016-04-17 5:15 ` Tatsuro MATSUOKA
2016-04-18 23:33 ` Tatsuro MATSUOKA
-- strict thread matches above, loose matches on Subject: below --
2016-04-04 23:54 Mintty font problem Paul Ausbeck
2016-04-10 19:50 ` john refling
2016-04-10 20:18 ` Postinstall script errors on cygwin x86 install Tatsuro MATSUOKA
2016-04-11 6:37 ` Achim Gratz
2016-04-11 20:42 ` Tatsuro MATSUOKA
2016-04-11 20:56 ` Ken Brown
2016-04-12 3:07 ` multiple definition of `atan2l' on the current Cygwin Tatsuro MATSUOKA
2016-04-12 17:03 ` Warren Young
2016-04-12 8:15 ` Tatsuro MATSUOKA
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).