Created attachment 205902 [details] patch Building with base GCC fails with: cc1: error: -Wuninitialized is not supported without -O But this port should use the default -O2. Fix this with attached patch.
Hi Piotr! How could I reproduce this bug? What version of FreeBSD, compiler and make.conf flags you are using? Could you please try to remove '-Werror=uninitialized' statement from AX_GCC_FLAGS line in configure.ac and try again?
(In reply to dmn from comment #1) That would probably fix the build issue, but CFLAGS should be respected anyway. I use FreeBSD 12.0-RELEASE. My compiler is base GCC 4.2 (default on powerpc64). There's no make.conf at all.
Created attachment 205948 [details] build log Here's the build log with error.
Do you think it's sufficient to add $(CFLAGS) to only those 3 files modified by the patch (cli/Makefile.am, liblepton/src/Makefile.am and schematic/src/Makefile.am)? Altogether, your patch is looking good, thank you.
(In reply to dmn from comment #4) Well, after adding that, the port builds without any complaint.
(In reply to Piotr Kubaj from comment #5) Then, I think the patch should be applied. By the way, do you have any issues running tools from the lepton-eda suite on powerpc64? If so, please use our issue tracker: https://github.com/lepton-eda/lepton-eda/issues. Thank you for helping with the port!
A commit references this bug: Author: pkubaj Date: Mon Aug 5 11:15:42 UTC 2019 New revision: 508162 URL: https://svnweb.freebsd.org/changeset/ports/508162 Log: cad/lepton-eda: respect CFLAGS Building with base GCC fails with: cc1: error: -Wuninitialized is not supported without -O But this port should use the default -O2. PR: 239311 Approved by: graahnul.grom@gmail.com (maintainer), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D21142 Changes: head/cad/lepton-eda/Makefile head/cad/lepton-eda/files/patch-cli_Makefile.am head/cad/lepton-eda/files/patch-liblepton_src_Makefile.am head/cad/lepton-eda/files/patch-schematic_src_Makefile.am
Fixed in upstream: git commit 41ffba3 (PR #458: https://github.com/lepton-eda/lepton-eda/pull/458)