mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #265] Possible typos in makefiles #213
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @utelle on GitHub (Jan 15, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/265
Originally assigned to: @jmcnamara on GitHub.
Today I tried to update my clone of libxlsxwriter to your latest master. While trying to track down why my travis CI fails for the test_valgrind cases (I get duplicate symbols on linking, and I would be grateful if could take a look why this might be so - TIA), I found a few possible typos in your makefiles:
Makefileandsrc/Makefiledefines symbolDESTIDR- shouldn't that beDESTDIR?Makefilein thecleantarget uses symbolUSE_STANDARD_TMPFILEto clean the minizip files - shouldn't that be symbolUSE_SYSTEM_MINIZIP?@jmcnamara commented on GitHub (Jan 15, 2020):
Hi,
Thanks those are both typos/bugs.
I had a quick look at your fork and I don't see anything that would cause that link issue. I'll look at it in more detail and let you know.
@utelle commented on GitHub (Jan 15, 2020):
Great. Thanks. Most likely it is some small an subtle issue.
@jmcnamara commented on GitHub (Jan 15, 2020):
I ran the test against your branch/fork and I didn't see the issue. Maybe just resubmit/rerun the test by creating a new branch or pushing a minor change.
@jmcnamara commented on GitHub (Jan 15, 2020):
@sjmulder on the DESTIDR typo:
https://github.com/jmcnamara/libxlsxwriter/blob/master/Makefile#L14
@sjmulder commented on GitHub (Jan 15, 2020):
@jmcnamara yes that's a typo - I can fix it or someone else can. But it doesn't break anything as-as since the line is a no-op intended for documentation (or easy tweaking).
@utelle commented on GitHub (Jan 15, 2020):
I restarted the failing job, but it failed again. Only the
test_valgrindpart fails, that is:I'm at a loss why the link step fails with duplicate symbols.
@utelle commented on GitHub (Jan 15, 2020):
As recommended in the error message I added the linker option
-v(see verbose test_valgrind). This revealed that the object file forutility.cis contained 2 times in the library file, asutility.oand asutility.c.o. This seems to be a side effect of thetest_cmakescript. Not sure what's going on here.@utelle commented on GitHub (Jan 15, 2020):
As an attempt of a workaround I moved the
test_cmaketo the end of the script list. This helped a bit, but the secondtest_valgrindrun still fails (see travis CI).@jmcnamara commented on GitHub (Jan 16, 2020):
I was able to reproduce this. There is a memory leak running under gcc. It is a little odd but at least I can reproduce it. I'm working on a fix.
@utelle commented on GitHub (Jan 16, 2020):
Thanks for looking into this.
Moving the
test_cmaketo the end of the script list is in fact only a workaround. At least in my branch the problem arises from cmake using extension*.c.ofor object files instead of just*.oand adding those files to the existing library file. AFAICT this behaviour is also shown in your repository. Strange enough it does not result in errors for your CI runs.@jmcnamara commented on GitHub (Jan 16, 2020):
There are 2 issues.
There is a fix for the valgrind warning here:
335548e77bHowever, I haven't bottomed out on whether this is a valid warning/error/fix. I'm still looking into it.
@jmcnamara commented on GitHub (Jan 19, 2020):
I've fixed the typos and valgrind issue on master. Thanks for the report.
@utelle commented on GitHub (Jan 20, 2020):
Thanks again for your excellent support.
With your modifications my library variant now passes again all CI tests.
BTW, maybe you should consider to edit the release titles of your release 0.9.2 to 0.9.4, since they reference January 2019 instead of January 2020.
@jmcnamara commented on GitHub (Jan 20, 2020):
Lol. Thanks.
Btw, I've started to look at adding a third party sprintf lib to fix #64. From a code point of view my preference is for fpconv instead of emyg_dtoa but I'll test both.
@utelle commented on GitHub (Jan 20, 2020):
I will take a look at
fpconvagain. As mentioned in my post of August 10, 2017fpconvis based on the same algorithm asemyg_dtoa. So in principle it should work equally well (although according to the benchmark it is slower by a factor of about 2).Nevertheless, my adjusted version of
emyg_dtoaobviously seems to work properly, otherwise my library variant wouldn't pass all the extensive CI tests of libxlsxwriter.