[Bug other/64184] New: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
gcc at ryandesign dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 4 14:09:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64184
Bug ID: 64184
Summary: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in
this function)
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at ryandesign dot com
Created attachment 34190
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34190&action=edit
log
Building gcc 4.9.2 fails on Mac OS X 10.4.11, with the following message:
/Volumes/Data/macports/tiger/var/macports/build/_Volumes_Data_macports_dports_lang_gcc49/libgcc/work/gcc-4.9.2/libcilkrts/runtime/sysdep-unix.c:
In function 'write_version_file':
/Volumes/Data/macports/tiger/var/macports/build/_Volumes_Data_macports_dports_lang_gcc49/libgcc/work/gcc-4.9.2/libcilkrts/runtime/sysdep-unix.c:736:52:
error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
fprintf(fp, "System cores: %d\n", (int)sysconf(_SC_NPROCESSORS_ONLN));
^
/Volumes/Data/macports/tiger/var/macports/build/_Volumes_Data_macports_dports_lang_gcc49/libgcc/work/gcc-4.9.2/libcilkrts/runtime/sysdep-unix.c:736:52:
note: each undeclared identifier is reported only once for each function it
appears in
make[2]: *** [sysdep-unix.lo] Error 1
make[2]: Leaving directory
`/Volumes/Data/macports/tiger/var/macports/build/_Volumes_Data_macports_dports_lang_gcc49/libgcc/work/build/i386-apple-darwin8/libcilkrts'
make[1]: *** [all-target-libcilkrts] Error 2
make[1]: Leaving directory
`/Volumes/Data/macports/tiger/var/macports/build/_Volumes_Data_macports_dports_lang_gcc49/libgcc/work/build'
make: *** [bootstrap] Error 2
More information about the Gcc-bugs
mailing list