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

error: no matching function for call to 'WriteInt32' #77

Closed
yurivict opened this issue Mar 4, 2021 · 4 comments
Closed

error: no matching function for call to 'WriteInt32' #77

yurivict opened this issue Mar 4, 2021 · 4 comments

Comments

@yurivict
Copy link

yurivict commented Mar 4, 2021

clang-10 fails to compile aranym-1.1.0 on FreeBSD 12.2:

natfeat/hostfs.cpp:2875:2: error: no matching function for call to 'WriteInt32'
        WriteInt32(filesys + 136, timezone);
        ^~~~~~~~~~
./uae_cpu/cpu_emulation.h:100:20: note: candidate function not viable: no known conversion from 'char *(int, int)' to 'uint32' (aka 'unsigned int') for 2nd argument
static inline void WriteInt32(memptr addr, uint32 l) {put_long(addr, l);}
                   ^
@th-otto
Copy link
Member

th-otto commented Mar 4, 2021

Hm, looks a strange compiler behaviour, he is not able to convert an int to an uint32? And what does 'char *(int, int)' mean? I can't see any char * involved there.

@yurivict
Copy link
Author

yurivict commented Mar 4, 2021

man timezone says:

SYNOPSIS
     char *
     timezone(int zone, int dst);

@th-otto
Copy link
Member

th-otto commented Mar 4, 2021

The code expects a global timezone variable there. Looks like that is not available in FreeBSD. I'll try to find a fix. As workaround, you could just use "0" in the meantime.

Edit: should be fixed now. Could you try with current version?

@yurivict
Copy link
Author

yurivict commented Mar 4, 2021

The patch fixed it.
Thank you!

@yurivict yurivict closed this as completed Mar 4, 2021
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