Opened 4 years ago

Last modified 4 years ago

#61271 closed defect

mariadb-*-server: Unable to build on 10.11: fatal error: 'bcon.h' file not found — at Version 13

Reported by: mav2287 (James) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mariadb-10.5

Description (last modified by michaelld (Michael Dickens))

When building Mariadb-10.5 server on OS X 10.11.6 (15G22010) I get the following errors:

Error: Failed to build mariadb-10.5: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mariadb-10.5-server failed

When I do tail 20 on the referenced log file I get this:

:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/work/build/storage/spider && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/spider.dir/link.txt --verbose=ON
:info:build /opt/local/bin/clang++-mp-9.0 -pipe -Os -stdlib=libc++ -fstack-protector --param=ssp-buffer-size=4 -DHAVE_HANDLERSOCKET -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -arch x86_64 -mmacosx-version-min=10.11 -bundle -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -o ha_spider.so CMakeFiles/spider.dir/spd_param.cc.o CMakeFiles/spider.dir/spd_sys_table.cc.o CMakeFiles/spider.dir/spd_trx.cc.o CMakeFiles/spider.dir/spd_db_conn.cc.o CMakeFiles/spider.dir/spd_conn.cc.o CMakeFiles/spider.dir/spd_table.cc.o CMakeFiles/spider.dir/spd_direct_sql.cc.o CMakeFiles/spider.dir/spd_udf.cc.o CMakeFiles/spider.dir/spd_ping_table.cc.o CMakeFiles/spider.dir/spd_copy_tables.cc.o CMakeFiles/spider.dir/spd_i_s.cc.o CMakeFiles/spider.dir/spd_malloc.cc.o CMakeFiles/spider.dir/ha_spider.cc.o CMakeFiles/spider.dir/spd_db_mysql.cc.o CMakeFiles/spider.dir/spd_db_handlersocket.cc.o CMakeFiles/spider.dir/spd_db_oracle.cc.o CMakeFiles/spider.dir/spd_group_by_handler.cc.o CMakeFiles/spider.dir/spd_db_include.cc.o CMakeFiles/spider.dir/hs_client/config.cpp.o CMakeFiles/spider.dir/hs_client/escape.cpp.o CMakeFiles/spider.dir/hs_client/fatal.cpp.o CMakeFiles/spider.dir/hs_client/hstcpcli.cpp.o CMakeFiles/spider.dir/hs_client/socket.cpp.o CMakeFiles/spider.dir/hs_client/string_util.cpp.o  -Wl,-rpath,/opt/local/lib ../../libservices/libmysqlservices.a -Wl,-bundle_loader,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/work/build/sql/mariadbd 
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/work/build'
:info:build [ 97%] Built target spider
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.5/mariadb-10.5/work/build" && /usr/bin/make -j16 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build mariadb-10.5: command execution failed
:debug:build Error code: CHILDSTATUS 45006 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

I am getting similar errors with Mariadb 10.2 10.3 and 10.4 as well.

Change History (16)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mysql mariadb removed
Owner: set to michaelld
Port: mariadb-10.5 added; Mariadb-10.5 removed
Status: newassigned

Please attach the full (compressed) main.log file so that we can see what happened.

Changed 4 years ago by mav2287 (James)

Attachment: main.log.zip added

comment:2 in reply to:  1 Changed 4 years ago by mav2287 (James)

Just attached. Wasn't sure if you would need it.

Replying to ryandesign:

Please attach the full (compressed) main.log file so that we can see what happened.

comment:3 Changed 4 years ago by kencu (Ken)

mariadb-10.5/work/server-mariadb-10.5.5/storage/connect/cmgoconn.h:9:10: fatal error: 'bcon.h' file not found
:info:build #include <bcon.h>
:info:build          ^~~~~~~~

comment:4 Changed 4 years ago by kencu (Ken)

Summary: Unable to build Mariadb-10.5 on 10.11Unable to build Mariadb-10.5 on 10.11: fatal error: 'bcon.h' file not found

comment:5 Changed 4 years ago by michaelld (Michael Dickens)

Might be another stealth dependency? Let me boot my macOS 10.11 build system & see what happens there.

Changed 4 years ago by mav2287 (James)

Attachment: main.mariadb-10.2.log.zip added

comment:6 Changed 4 years ago by mav2287 (James)

Just attached the log file from Mariadb 10.2 on the same Xserve running 10.11 and it also won't build 10.2 either. I did a quick search of the log and found the same 'bcon.h' file not found error that is in the 10.5 log. I attached the full log for that as well. If needed I can try to compile Mariadb 10.3 and 10.4 on that same machine and upload those logs as well, but since 10.2 and 10.5 produce the same issues I am guessing 10.3 and 10.4 will too.

comment:7 Changed 4 years ago by michaelld (Michael Dickens)

Thanks for keeping on this! I'm updating my 10.11 boot ... still have a bunch of GCC ports to go -- which take a LONG time -- so it'll be tomorrow before I can be building any mariadb ports for testing for this ticket. I will note that I have mariadb 10.2 and 10.3 installed already ... so, sometime in the past this was doable!

comment:8 Changed 4 years ago by mav2287 (James)

Not a problem, just glad I can help. Mac Ports is what makes sure my 3,1 Xserve is still useful and gets to keep working!

Yes, this was working fine in the past. I have the following versions of Mariadb installed and working: mariadb @5.5.68_0 (active) mariadb-10.2 @10.2.30_1 (active) mariadb-10.2-server @10.2.30_0 (active). I try to run port updates at least once a month and about 3 months ago I ran "port upgrade outdated" and that was when Mariadb's build failed. I opened ticket #60805 when it happened and I was hoping the Clang fix would do it, but then I ran into this new issue a few days ago.

My Xserve is a semi-production server so if you need me to try building MariaDB on it I can do it in the evenings and upload the log if it fails. Once Mariadb will build again I am going to install all the Mariadb 10.X versions on this Xserve so in the future if there is a build issue on 10.11 I will catch it when I am doing updates.

comment:9 Changed 4 years ago by kencu (Ken)

do you have some mariadb variant set? Those are rarely tested -- we should start getting rid of most variants, to be honest; they are rarely tested and so cause much trouble for people.

comment:10 Changed 4 years ago by michaelld (Michael Dickens)

I got through all of the LLVM / Clang ports, then updated all of the non-*GCC* ports. Then, I was able to build mariadb-10.5 straight up, no errors. No variants ... so, yes, variants might be important. This also might be related to the opportunistic finding / using of various features ...

Changed 4 years ago by mav2287 (James)

Attachment: 10.11InstalledPorts.txt.zip added

comment:11 Changed 4 years ago by mav2287 (James)

Not sure what you mean by Mariadb variant. 10.2 was installed with "port install Mariadb-10.2-Server". With the issues with the other install I tried the exact same thing "port install mariadb-10.5-server" and it gave the same error. I also attached a file with all the ports I have installed on this server in case that helps.

comment:12 in reply to:  11 Changed 4 years ago by kencu (Ken)

Replying to mav2287:

Not sure what you mean by Mariadb variant.

variants are alternate builds of a port. You don't have many, I see, which is very good. They look like this xorg-xcb-proto @1.14_0+python37.

10.2 was installed with "port install Mariadb-10.2-Server".

Please try using "trace" mode, using the -t flag, which blocks most opportunistic finding issues:

sudo port -v -t install Mariadb-10.2-Server

comment:13 Changed 4 years ago by michaelld (Michael Dickens)

Description: modified (diff)
Summary: Unable to build Mariadb-10.5 on 10.11: fatal error: 'bcon.h' file not foundmariadb-*-server: Unable to build on 10.11: fatal error: 'bcon.h' file not found

Ah ... OK ... the "server" version rather than the "client" version. That's a totally different story!

Note: See TracTickets for help on using tickets.