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

Build fails on macOS with GCC: s_fpclassify.c: error: storage size of 'u' isn't known #275

Closed
barracuda156 opened this issue May 4, 2023 · 0 comments · Fixed by #276
Closed

Comments

@barracuda156
Copy link
Contributor

Fails with gcc-12:

/opt/local/bin/gcc-mp-12 -I/opt/local/include -O3 -arch ppc -fno-gnu89-inline -fno-builtin -fPIC  -std=c99 -Wall -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/powerpc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/ld80 -c src/s_ilogb.c -o src/s_ilogb.c.o
src/s_fpclassify.c: In function '__fpclassifyl':
src/s_fpclassify.c:79:26: error: storage size of 'u' isn't known
   79 |         union IEEEl2bits u;
      |                          ^
src/s_fpclassify.c:79:26: warning: unused variable 'u' [-Wunused-variable]
src/s_fpclassify.c:96:1: warning: control reaches end of non-void function [-Wreturn-type]
   96 | }
      | ^
make: *** [src/s_fpclassify.c.o] Error 1

Also with gcc-4.2:

/usr/bin/gcc-4.2 -I/opt/local/include -O3 -arch ppc -fno-gnu89-inline -fno-builtin -fPIC  -std=c99 -Wall -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/powerpc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_openlibm/openlibm/work/openlibm-0.8.1/ld80 -c src/s_ilogb.c -o src/s_ilogb.c.o
src/s_fpclassify.c: In function ‘__fpclassifyl’:
src/s_fpclassify.c:79: error: storage size of ‘u’ isn’t known
src/s_fpclassify.c:79: warning: unused variable ‘u’
make: *** [src/s_fpclassify.c.o] Error 1
make: *** Waiting for unfinished jobs....
MarcusCalhoun-Lopez added a commit to MarcusCalhoun-Lopez/openlibm that referenced this issue May 5, 2023
Apple versions of GCC define __ppc__ instead of __powerpc__

Fixes JuliaMath#275
ViralBShah pushed a commit that referenced this issue Jun 25, 2023
Apple versions of GCC define __ppc__ instead of __powerpc__

Fixes #275
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

Successfully merging a pull request may close this issue.

1 participant