Skip to content

Build fails with gcc: iso9660_fs.c: error: only weak aliases are supported in this configuration #64

Description

@barracuda156

Description

Build fails with gcc on some invalid syntax in iso9660 module.

How to Reproduce

Try building.

Output Given

:info:build Making all in iso9660
:info:build make[3]: Entering directory `/opt/local/var/macports/build/libcdio-a6295c0d/work/libcdio-2.3.0/lib/iso9660'
:info:build depbase=`echo iso9660.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
:info:build 	/bin/sh ../../libtool  --tag=CC   --mode=compile /opt/local/bin/gcc-mp-16 -DHAVE_CONFIG_H -I. -I../..  -I../../lib/driver -I../../include -I../../include/ -I/opt/local/include -D_LARGEFILE64_SOURCE  -pipe -Os -arch ppc  -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wdeclaration-after-statement -Wdisabled-optimization -Wendif-labels -Winline -Wmissing-prototypes -Wnested-externs -Wno-sign-compare -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -MT iso9660.lo -MD -MP -MF $depbase.Tpo -c -o iso9660.lo iso9660.c &&\
:info:build 	mv -f $depbase.Tpo $depbase.Plo
:info:build depbase=`echo iso9660_fs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
:info:build 	/bin/sh ../../libtool  --tag=CC   --mode=compile /opt/local/bin/gcc-mp-16 -DHAVE_CONFIG_H -I. -I../..  -I../../lib/driver -I../../include -I../../include/ -I/opt/local/include -D_LARGEFILE64_SOURCE  -pipe -Os -arch ppc  -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wdeclaration-after-statement -Wdisabled-optimization -Wendif-labels -Winline -Wmissing-prototypes -Wnested-externs -Wno-sign-compare -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -MT iso9660_fs.lo -MD -MP -MF $depbase.Tpo -c -o iso9660_fs.lo iso9660_fs.c &&\
:info:build 	mv -f $depbase.Tpo $depbase.Plo
:info:build libtool: compile:  /opt/local/bin/gcc-mp-16 -DHAVE_CONFIG_H -I. -I../.. -I../../lib/driver -I../../include -I../../include/ -I/opt/local/include -D_LARGEFILE64_SOURCE -pipe -Os -arch ppc -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wdeclaration-after-statement -Wdisabled-optimization -Wendif-labels -Winline -Wmissing-prototypes -Wnested-externs -Wno-sign-compare -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -MT iso9660.lo -MD -MP -MF .deps/iso9660.Tpo -c iso9660.c  -fno-common -DPIC -o .libs/iso9660.o
:info:build libtool: compile:  /opt/local/bin/gcc-mp-16 -DHAVE_CONFIG_H -I. -I../.. -I../../lib/driver -I../../include -I../../include/ -I/opt/local/include -D_LARGEFILE64_SOURCE -pipe -Os -arch ppc -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wdeclaration-after-statement -Wdisabled-optimization -Wendif-labels -Winline -Wmissing-prototypes -Wnested-externs -Wno-sign-compare -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -MT iso9660_fs.lo -MD -MP -MF .deps/iso9660_fs.Tpo -c iso9660_fs.c  -fno-common -DPIC -o .libs/iso9660_fs.o
:info:build iso9660_fs.c:1817:1: error: only weak aliases are supported in this configuration
:info:build  1817 | iso9660_find_fs_lsn(CdIo_t *p_cdio, lsn_t i_lsn) __attribute__ ((alias ("iso9660_fs_find_lsn")));
:info:build       | ^~~~~~~~~~~~~~~~~~~
:info:build make[3]: *** [iso9660_fs.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build In file included from iso9660.c:32:
:info:build ../../include/cdio/bytesex.h: In function 'iso9660_set_pvd':
:info:build ../../include/cdio/bytesex.h:205:1: warning: inlining failed in call to 'to_733': call is unlikely and code size would grow [-Winline]
:info:build   205 | to_733(uint32_t i)
:info:build       | ^~~~~~
:info:build iso9660.c:654:25: note: called from here
:info:build   654 |   ipd.path_table_size = to_733(path_table_size);
:info:build       |                         ^~~~~~~~~~~~~~~~~~~~~~~
:info:build ../../include/cdio/bytesex.h:205:1: warning: inlining failed in call to 'to_733': call is unlikely and code size would grow [-Winline]
:info:build   205 | to_733(uint32_t i)
:info:build       | ^~~~~~
:info:build iso9660.c:648:27: note: called from here
:info:build   648 |   ipd.volume_space_size = to_733(iso_size);
:info:build       |                           ^~~~~~~~~~~~~~~~
:info:build ../../include/cdio/bytesex.h:205:1: warning: inlining failed in call to 'to_733': call is unlikely and code size would grow [-Winline]
:info:build   205 | to_733(uint32_t i)
:info:build       | ^~~~~~
:info:build iso9660.c:654:25: note: called from here
:info:build   654 |   ipd.path_table_size = to_733(path_table_size);
:info:build       |                         ^~~~~~~~~~~~~~~~~~~~~~~
:info:build ../../include/cdio/bytesex.h: In function 'iso9660_dir_add_entry_su':
:info:build ../../include/cdio/bytesex.h:205:1: warning: inlining failed in call to 'to_733': call is unlikely and code size would grow [-Winline]
:info:build   205 | to_733(uint32_t i)
:info:build       | ^~~~~~
:info:build iso9660.c:779:15: note: called from here
:info:build   779 |   idr->size = to_733(size);
:info:build       |               ^~~~~~~~~~~~
:info:build ../../include/cdio/bytesex.h:205:1: warning: inlining failed in call to 'to_733': call is unlikely and code size would grow [-Winline]
:info:build   205 | to_733(uint32_t i)
:info:build       | ^~~~~~
:info:build iso9660.c:778:17: note: called from here
:info:build   778 |   idr->extent = to_733(extent);
:info:build       |                 ^~~~~~~~~~~~~~
:info:build libtool: compile:  /opt/local/bin/gcc-mp-16 -DHAVE_CONFIG_H -I. -I../.. -I../../lib/driver -I../../include -I../../include/ -I/opt/local/include -D_LARGEFILE64_SOURCE -pipe -Os -arch ppc -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wdeclaration-after-statement -Wdisabled-optimization -Wendif-labels -Winline -Wmissing-prototypes -Wnested-externs -Wno-sign-compare -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -MT iso9660.lo -MD -MP -MF .deps/iso9660.Tpo -c iso9660.c -o iso9660.o >/dev/null 2>&1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/libcdio-a6295c0d/work/libcdio-2.3.0/lib/iso9660'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/libcdio-a6295c0d/work/libcdio-2.3.0/lib'
:info:build make[1]: *** [all-recursive] Error 1

Expected behavior

Compilation should succeed with every major compiler supporting required lang standards.

Environment

libcdio 2.3.0
MacPorts build env

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    volunteer wantedVolunteer wanted to fix if a bug or to implement if a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions