Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895030 - dev-lang/yap-7.1.0 fails to compile (MUSL-CLANG-SYSTEM): sysbits.h:194:9: error: call to undeclared library function va_start with type void (struct __va_list_tag , ...); ISO C99 and later do not support implicit function declarations [-Wimplicit-functio
Summary: dev-lang/yap-7.1.0 fails to compile (MUSL-CLANG-SYSTEM): sysbits.h:194:9: err...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-17 08:06 UTC by Agostino Sarubbo
Modified: 2024-03-15 02:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,108.41 KB, text/plain)
2023-02-17 08:06 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-17 08:06:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/yap-7.1.0 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-17 08:06:29 UTC
Created attachment 851942 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-17 08:06:31 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/var/tmp/portage/dev-lang/yap-7.1.0/work/yap-7.1.0/os/fmem.c:342:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
/var/tmp/portage/dev-lang/yap-7.1.0/work/yap-7.1.0/os/fmem.c:348:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
FAILED: os/CMakeFiles/libYAPOs.dir/absf.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/alias.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/assets.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/console.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/files.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/fmem.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/iopreds.c.o 
FAILED: os/CMakeFiles/libYAPOs.dir/mem.c.o 
/var/tmp/portage/dev-lang/yap-7.1.0/work/yap-7.1.0/os/sysbits.h:194:9: error: call to undeclared library function 'va_start' with type 'void (struct __va_list_tag *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Eli Schwartz 2024-03-14 22:35:34 UTC
This is a fascinating error because it's actually a configure-time check that fails due to... implicit function declarations.

The test considers failing to mean "let's not claim standard library headers exist", hence at compile time the code doesn't include stdarg.h and so forth, which is where the observable failure kicks in.