Opened 7 years ago

Closed 6 years ago

#54729 closed defect (fixed)

mariadb-10.0, mariadb-10.1: error: cannot use 'try' with exceptions disabled

Reported by: hbsimon (Horst Simon) Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: jonasjonas (Frank Hellenkamp), ruipacheco (Rui Pacheco), todofixthis (Phoenix), H3ik0
Port: mariadb-10.0, mariadb-10.1

Description

Hi,

When building mariadb-10.1 it fails with command error, the same goes for mariadb-10.0.

OS: macOS Sierra Version 10.12.6 with XCode Version 8.3.2 (BE2002)

Log file is attached

Regards, Horst Simon

Attachments (1)

main.log (421.1 KB) - added by hbsimon (Horst Simon) 7 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by hbsimon (Horst Simon)

Attachment: main.log added

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

Owner: set to pixilla
Port: mariadb-10.0 mariadb-10.1 added
Status: newassigned
Summary: mariadb-10.1 build fails with command errormariadb-10.0, mariadb-10.1: error: cannot use 'try' with exceptions disabled

I see this error on my Sierra system too. But binary archives exist on our server for these ports from June. Perhaps something changed in one of mariadb's dependencies since then to cause this?

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Here are the commits that changed mariadb's dependencies after it was last updated; perhaps one of them is relevant:

comment:4 Changed 7 years ago by ruipacheco (Rui Pacheco)

Hi,

I get this error on High Sierra.

comment:5 Changed 7 years ago by jonasjonas (Frank Hellenkamp)

Cc: jonasjonas added

comment:6 in reply to:  4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ruipacheco added

Replying to ruipacheco:

I get this error on High Sierra.

Yes, I expect all users building from source, on any system, will get this error. If you or anyone can figure out why, please let us know!

comment:7 Changed 6 years ago by mkoula (Miroslav Koula)

I have the same issue with both version mariadb-10.0 and also mariadb-10.1... Because I need it urgently I finally compiled 10.2 from the source code. It was a bit challenging, but it's working :-) but still there is so many configs around/startup scripts etc and upgrading, so I would really appreciate to have it in MacPorts working ;-)

comment:8 in reply to:  7 Changed 6 years ago by vnyx

Replying to mkoula:

I have the same issue with both version mariadb-10.0 and also mariadb-10.1... Because I need it urgently I finally compiled 10.2 from the source code. It was a bit challenging, but it's working :-) but still there is so many configs around/startup scripts etc and upgrading, so I would really appreciate to have it in MacPorts working ;-)

I was also able to build from source. Here is my script after downloading the source. I was testing Mariasb 10.2. It will install in /usr/local/mysql.

#!/bin/sh

sudo port install cmake jemalloc judy openssl boost
cd ${HOME}/Downloads
if [ -e mariadb-10.2.10.tar.gz ]; then
	gunzip mariadb-10.2.10.tar.gz
	tar -xf mariadb-10.2.10.tar
fi
if [ -d build-mariadb ]; then
	rm -r build-mariadb/*
else
	mkdir build-mariadb
fi
cd build-mariadb
cmake ../mariadb-10.2.10
make
sudo make install


Last edited 6 years ago by vnyx (previous) (diff)

comment:9 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: todofixthis H3ik0 added

Has duplicates #55125 and #55428, the latter of which points to some solutions.

comment:10 Changed 6 years ago by Bradley Giesbrecht <brad@…>

Resolution: fixed
Status: assignedclosed

In 19a56080311ba14c125d9623e0eda83c89286e32/macports-ports:

Update mariadb-10.0 to 10.0.33
Update mariadb-10.1 to 10.1.29
Fix builds.

Closes: #54729

Note: See TracTickets for help on using tickets.