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

cosmocc linking issues with llrintl, llround, and llroundl #1150

Open
G4Vi opened this issue Apr 22, 2024 · 0 comments
Open

cosmocc linking issues with llrintl, llround, and llroundl #1150

G4Vi opened this issue Apr 22, 2024 · 0 comments

Comments

@G4Vi
Copy link
Collaborator

G4Vi commented Apr 22, 2024

#include <math.h>
#include <stdio.h>

int main(void) {
    printf("%lld\n", llrintl(0));
    printf("%p\n", &llround);
    printf("%p\n", &llroundl);
}
x86_64-unknown-cosmo-cc -o try llrint_friends.c 
/home/sample/repos/cosmopolitan/cosmocc/bin/../libexec/gcc/x86_64-linux-cosmo/12.3.0/ld.bfd: /tmp/cc9fqpwc.o: in function `main':
llrint_friends.c:(.text+0x21): undefined reference to `llrintl'
/home/sample/repos/cosmopolitan/cosmocc/bin/../libexec/gcc/x86_64-linux-cosmo/12.3.0/ld.bfd: llrint_friends.c:(.text+0x3c): undefined reference to `llround'
/home/sample/repos/cosmopolitan/cosmocc/bin/../libexec/gcc/x86_64-linux-cosmo/12.3.0/ld.bfd: llrint_friends.c:(.text+0x50): undefined reference to `llroundl'
collect2: error: ld returned 1 exit status

llrintl appears to not exists at all. llround and llroundl can be called, but not addressed. Perl's Configure tests for the existence of these functions by attempting to address them.

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

1 participant