Opened 6 months ago

Last modified 6 months ago

#60379 assigned defect

mysql8 fails to build on 10.5.8 PPC

Reported by: bryancn Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: leopard powerpc Cc: khepler
Port: mysql8

Description (last modified by kencu (Ken))

---> Building mysql8

Error: Failed to build mysql8: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mysql8 failed
3955	:info:build Undefined symbols for architecture ppc:
3956	:info:build   "___atomic_fetch_add_8", referenced from:
3957	:info:build       google::protobuf::internal::ArenaImpl::Init()  in arena.cc.o
3958	:info:build ld: symbol(s) not found for architecture ppc

Attachments (1)

main.log (913.2 KB) - added by bryancn 6 months ago.
Log

Download all attachments as: .zip

Change History (8)

Changed 6 months ago by bryancn

Attachment: main.log added

Log

comment:1 Changed 6 months ago by kencu (Ken)

would appear you will need manually link against libatomic

$ nm /opt/local/lib/gcc6/libatomic.1.dylib | grep fetch_add_8
0000368c T ___atomic_fetch_add_8

something like

configure.ldflags-append -latomic

might be sufficient, if you're lucky.

And then who knows where the next error might come up, but ...

comment:2 Changed 6 months ago by kencu (Ken)

Keywords: leopard powerpc added; ppc 10.5.8 mysql mysql8 removed

comment:3 Changed 6 months ago by kencu (Ken)

Description: modified (diff)

comment:4 Changed 6 months ago by kencu (Ken)

You might say that you should not have to manually link in -latomic , and it appears the gcc developers agree with you, but have not yet fixed this issue <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358>

comment:5 Changed 6 months ago by jmroot (Joshua Root)

Owner: set to herbygillot
Status: newassigned

comment:6 Changed 6 months ago by herbygillot (Herby Gillot)

I cannot assist on this issue. I don't have access to a PPC or 10.5 platform. Additionally, I don't think MySQL 8 officially supports 10.5

comment:7 Changed 6 months ago by khepler

Cc: khepler added
Note: See TracTickets for help on using tickets.