astromatic / swarp

resample and coadd FITS images to an arbitrary astrometric projection
https://astromatic.net/software/swarp
GNU General Public License v3.0
31 stars 5 forks source link

Fails to build with gcc-10 #6

Closed jsmolic closed 3 years ago

jsmolic commented 3 years ago

Forwarding https://bugs.gentoo.org/707856

/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o swarp back.o coadd.o data.o field.o fitswcs.o header.o interpolate.o main.o makeit.o misc.o prefs.o projapprox.o resample.o threads.o weight.o xml.o ./fits/libfits.a ./wcs/libwcs_c.a -lm
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -o swarp back.o coadd.o data.o field.o fitswcs.o header.o interpolate.o main.o makeit.o misc.o prefs.o projapprox.o resample.o threads.o weight.o xml.o  -Wl,--as-needed ./fits/libfits.a ./wcs/libwcs_c.a -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: threads.o:(.bss+0x0): multiple definition of `nproc'; resample.o:(.bss+0x120): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:485: swarp] Error 1
ebertin commented 3 years ago

This has been fixed a while ago. May I need to make a release?

jsmolic commented 3 years ago

Sure, it would be nice to make a new release, we wouldn't need to carry the patch that way

ebertin commented 3 years ago

There you go.

jsmolic commented 3 years ago

That was really quick, thanks a lot :)