Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conversion from int to Duration is ambiguous #297

Closed
wuyazi opened this issue Aug 15, 2018 · 5 comments
Closed

conversion from int to Duration is ambiguous #297

wuyazi opened this issue Aug 15, 2018 · 5 comments

Comments

@wuyazi
Copy link

wuyazi commented Aug 15, 2018

make -f Makefile.dist build
../../include/frepple/utils.h:7953:18: error: conversion from 'int' to
      'frepple::utils::Duration' is ambiguous
        Duration d = 0,
                 ^   ~
@jdetaeye
Copy link
Member

Which compiler is this with? I'm assuming this is the latest version of the code?

@jdetaeye
Copy link
Member

If you can't properly report a problem and don't provide the context when kindly asked to => Thank you, good bye

@wuyazi
Copy link
Author

wuyazi commented Aug 19, 2018

os: macos 10.13.6
frepple git:(4.3-stable)
>> uname -a
<< Darwin 192.168.0.102 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
>> gcc -v
<< Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>> g++ -v
<< Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>> python --version
<< Python 3.6.6
>> autoconf --version
<< autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
>> automake --version
<< automake (GNU automake) 1.16.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
>> libtool -h
<< error: /Library/Developer/CommandLineTools/usr/bin/libtool: unknown option character `h' in: -h
Usage: /Library/Developer/CommandLineTools/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Library/Developer/CommandLineTools/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
>> git diff Makefile.dist
<< 
-       libtoolize --copy --force --automake
+       glibtoolize --copy --force --automake
>> glibtoolize --version
<< glibtoolize (GNU libtool) 2.4.6
Written by Gary V. Vaughan <gary@gnu.org>, 2003

Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> brew install xerces-c
<< Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/cask).
==> New Formulae
zlog
==> Updated Formulae
angular-cli            flow                   micronaut              tmate
ansible                fn                     mosquitto              travis
aws-elasticbeanstalk   get_iplayer            nagios                 uriparser
awscli                 glslviewer             node-build             virtuoso
bettercap              goenv                  pkcs11-helper          vrpn
cimg                   grunt-completion       qpdf                   winetricks
crystal                hadolint               skaffold               wtf
docfx                  heroku                 ssh-permit-a38         xcodegen
draco                  hugo                   sshtrix                yafc
dxpy                   libssh                 teleport
elektra                libuv                  thors-serializer

Warning: xerces-c 3.2.1 is already installed and up-to-date
To reinstall 3.2.1, run `brew reinstall xerces-c`
>> make -f Makefile.dist debug
<< 
paste at https://paste.ubuntu.com/p/9F4BbxR2gx/

@jdetaeye jdetaeye reopened this Aug 19, 2018
@jdetaeye
Copy link
Member

This commit a86e466 should correct this.
I haven't been able to test it. There could be other places where the same kind of fix is required. Feel free to append to this issue.

@jdetaeye
Copy link
Member

jdetaeye commented Sep 3, 2018

Closing, considering fixed.

@jdetaeye jdetaeye closed this as completed Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants