Opened 9 months ago

Closed 9 months ago

#68034 closed defect (fixed)

libfaketime fails to build with gcc-4.2: thread_local_storage support required

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: powerpc Cc:
Port: libfaketime

Description

--->  Building libfaketime
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_libfaketime/libfaketime/work/libfaketime-0.9.10" && /usr/bin/make -j6 -w all PREFIX=/opt/local 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_libfaketime/libfaketime/work/libfaketime-0.9.10'
/usr/bin/make -f Makefile.OSX -C src all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_libfaketime/libfaketime/work/libfaketime-0.9.10/src'
/usr/bin/gcc-4.2 -o libfaketime.1.dylib -arch ppc -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'/opt/local'"'  -DMACOS_DYLD_INTERPOSE -DFAKE_SETTIME -arch ppc -dynamiclib -current_version 0.9.10 -compatibility_version 0.7 -install_name /opt/local/lib/faketime/libfaketime.1.dylib libfaketime.c
/usr/bin/gcc-4.2 -o faketime -arch ppc -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'/opt/local'"'  -DMACOS_DYLD_INTERPOSE -DFAKE_SETTIME -arch ppc faketime.c
libfaketime.c:173: error: thread-local storage not supported for this target
libfaketime.c:249: error: expected ‘;’, ‘,’ or ‘)’ before ‘readfds’
libfaketime.c: In function ‘macos_select’:
libfaketime.c:1701: error: ‘real_select’ undeclared (first use in this function)
libfaketime.c:1701: error: (Each undeclared identifier is reported only once
libfaketime.c:1701: error: for each function it appears in.)
libfaketime.c: In function ‘ftpl_init’:
libfaketime.c:2596: error: ‘real_select’ undeclared (first use in this function)
libfaketime.c: In function ‘do_macos_dyld_interpose’:
libfaketime.c:4035: error: ‘clock_settime’ undeclared (first use in this function)
make[1]: *** [libfaketime.1.dylib] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_libfaketime/libfaketime/work/libfaketime-0.9.10/src'
make: *** [all] Error 2

So at least we need to require a compiler which supports thread_local_storage.

Change History (1)

comment:1 Changed 9 months ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In aefb9f3b6a894969635978b9bcfa275d6ba9e5a5/macports-ports (master):

libfaketime: fix build on 10.13

Closes: #68045
Closes: #68034

Note: See TracTickets for help on using tickets.