[MacPorts] #65699: haproxy fails on Rosetta: error: thread-local storage not supported for this target compilation terminated due to -Wfatal-errors; tcp_sample.c: error: storage size of 'info' isn't known

MacPorts noreply at macports.org
Sat Aug 20 13:33:28 UTC 2022


#65699: haproxy fails on Rosetta: error: thread-local storage not supported for
this target compilation terminated due to -Wfatal-errors; tcp_sample.c:
error: storage size of 'info' isn't known
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  judaew
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, rosetta, snowleopard
      Port:  haproxy       |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Also, even setting `USE_THREAD=0` does nothing when build is done with
 `gcc-4.2`:

 {{{
 --->  Building haproxy
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_haproxy/haproxy/work/haproxy-2.6.3"
 && /usr/bin/make -j6 -w TARGET=osx USE_THREAD=0 LD="/usr/bin/gcc-4.2"
 LDFLAGS="-L/opt/local/libexec/openssl3/lib
 -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport"
 SSL_INC=/opt/local/libexec/openssl3/include
 SSL_LIB=/opt/local/libexec/openssl3/lib USE_LIBCRYPT=1 USE_OPENSSL=1
 USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1 CC="/usr/bin/gcc-4.2"
 CXX="/usr/bin/g++-4.2" OBJC="/usr/bin/gcc-4.2" OBJCXX="/usr/bin/g++-4.2"
 INSTALL="/usr/bin/install -c"
   CC      src/ev_poll.o
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_haproxy/haproxy/work/haproxy-2.6.3'
   CC      src/ev_kqueue.o
   CC      src/cpuset.o
   CC      src/ssl_sample.o
   CC      src/ssl_sock.o
   CC      src/ssl_crtlist.o
   CC      src/ssl_ckch.o
 In file included from src/ev_poll.c:22:
 include/haproxy/clock.h:31: error: thread-local storage not supported for
 this target
 compilation terminated due to -Wfatal-errors.
 In file included from src/ev_kqueue.c:22:
 include/haproxy/clock.h:31: error: thread-local storage not supported for
 this target
 compilation terminated due to -Wfatal-errors.
 make: *** [src/ev_poll.o] Error 1
 make: *** Waiting for unfinished jobs....
 make: *** [src/ev_kqueue.o] Error 1
 }}}

 So to begin with, old `gcc` must be blacklisted.

-- 
Ticket URL: <https://trac.macports.org/ticket/65699#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list