Opened 11 years ago

Closed 10 years ago

#41653 closed submission (fixed)

new port of gr1c

Reported by: SCL@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: jfilippidis@…
Port: gr1c

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I created a new port for gr1c (http://scottman.net/2012/gr1c ; http://slivingston.github.io/gr1c/). It depends on libcudd, the Portfile of which I updated for version 2.5.0 of CUDD and posted it at what seems to be the most relevant ticket, #27726

Attachments (5)

Portfile (1.5 KB) - added by SCL@… 11 years ago.
patch-Makefile-i386.diff (878 bytes) - added by SCL@… 11 years ago.
Makefile patch in case target arch is i386
patch-Makefile.diff (771 bytes) - added by SCL@… 11 years ago.
patch-tests-Makefile.diff (648 bytes) - added by SCL@… 11 years ago.
Portfile.diff (2.0 KB) - added by lockhart (Thomas Lockhart) 10 years ago.
Portfile for 2.5.0 with livecheck added

Download all attachments as: .zip

Change History (19)

Changed 11 years ago by SCL@…

Attachment: Portfile added

Changed 11 years ago by SCL@…

Attachment: patch-Makefile-i386.diff added

Makefile patch in case target arch is i386

Changed 11 years ago by SCL@…

Attachment: patch-Makefile.diff added

Changed 11 years ago by SCL@…

Attachment: patch-tests-Makefile.diff added

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

Description: modified (diff)
Port: gr1c added

Thanks. Some observations:

  • the i386 patch seems not to be i386-specific but rather 32-bit-specific; it would be needed on ppc as well. And it would be nice to not have to maintain the same patch twice, once for 64-bit and once for 32-bit; you may want to have just a single patch, and then use reinplace to fix the incorrect values on 32-bit systems
  • the patchfiles hardcode the location /opt/local; MacPorts might be in a different prefix so you need to arrange to use the value of the ${prefix} variable instead
  • "build.target all" is the default so it can be removed
  • the destroot block can be simplified by using xinstall's -W flag

comment:2 Changed 11 years ago by jfilippidis@…

Cc: jfilippidis@… added

Cc Me!

Changed 10 years ago by lockhart (Thomas Lockhart)

Attachment: Portfile.diff added

Portfile for 2.5.0 with livecheck added

comment:3 Changed 10 years ago by lockhart (Thomas Lockhart)

I've posted a slightly updated Portfile which includes livecheck. The previously include file patch-Makefile-x86_64.diff should be renamed to patch-Makefile.diff and patch-Makefile-i386.diff can be omitted.

comment:4 in reply to:  3 Changed 10 years ago by lockhart (Thomas Lockhart)

Replying to tlockhart1976@…:

I've posted a slightly updated Portfile which includes livecheck. The previously include file patch-Makefile-x86_64.diff should be renamed to patch-Makefile.diff and patch-Makefile-i386.diff can be omitted.

Darn. I've posted this to the wrong ticket. Please disregard the just-posted Portfile.diff and I'll re-post to the relevant libcudd ticket. Thanks!

comment:5 Changed 10 years ago by lockhart (Thomas Lockhart)

This is waiting on #27726 which in turn is waiting on #44781. Thanks for moving this along!

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

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

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

Resolution: fixed
Status: assignedclosed

Committed in r126021 with numerous changes and patches.

comment:8 Changed 10 years ago by jfilippidis@…

Thank you for adding gr1c to the tree.

Last edited 10 years ago by jfilippidis@… (previous) (diff)

comment:9 Changed 10 years ago by jfilippidis@…

I'm not sure if I should open a new issue, but building it produces an error:

cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/main.log
version:1
:debug:main epoch: in tree: 1 installed: 0
:debug:main bison 2.7.1_0 exists in the ports tree
:debug:main bison 2.7.1_0  is the latest installed
:debug:main bison 2.7.1_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/bison
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Requested variant +bash_completion is not provided by port bison.
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! bison 2.7.1_0 >= bison 2.7.1_0
:debug:main epoch: in tree: 2 installed: 2
:debug:main gettext 0.19.2_0 exists in the ports tree
:debug:main gettext 0.19.2_0 +universal is the latest installed
:debug:main gettext 0.19.2_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal + bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/gettext
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main compiler clang 425.0.28 not blacklisted because it doesn't match {clang < 211.10.1}
:debug:main universal variant already exists, so not adding the default one
:debug:main Requested variant +bash_completion is not provided by port gettext.
:debug:main Executing variant universal provides universal
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! gettext 0.19.2_0 >= gettext 0.19.2_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main expat 2.1.0_0 exists in the ports tree
:debug:main expat 2.1.0_0  is the latest installed
:debug:main expat 2.1.0_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal + bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/expat
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Requested variant +bash_completion is not provided by port expat.
:debug:main Executing variant universal provides universal
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! expat 2.1.0_0 >= expat 2.1.0_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main libiconv 1.14_0 exists in the ports tree
:debug:main libiconv 1.14_0 +universal is the latest installed
:debug:main libiconv 1.14_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal + bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/libiconv
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main universal variant already exists, so not adding the default one
:debug:main Requested variant +bash_completion is not provided by port libiconv.
:debug:main Executing variant universal provides universal
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! libiconv 1.14_0 >= libiconv 1.14_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncurses 5.9_2 exists in the ports tree
:debug:main ncurses 5.9_2 +universal is the latest installed
:debug:main ncurses 5.9_2 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal + bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ncurses
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Requested variant +bash_completion is not provided by port ncurses.
:debug:main Executing variant universal provides universal
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! ncurses 5.9_2 >= ncurses 5.9_2
:debug:main epoch: in tree: 0 installed: 0
:debug:main m4 1.4.17_0 exists in the ports tree
:debug:main m4 1.4.17_0 +universal is the latest installed
:debug:main m4 1.4.17_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal + bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/m4
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Requested variant +bash_completion is not provided by port m4.
:debug:main Executing variant universal provides universal
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! m4 1.4.17_0 >= m4 1.4.17_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main flex 2.5.37_1 exists in the ports tree
:debug:main flex 2.5.37_1  is the latest installed
:debug:main flex 2.5.37_1 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal + bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/flex
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Requested variant +bash_completion is not provided by port flex.
:debug:main Executing variant universal provides universal
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! flex 2.5.37_1 >= flex 2.5.37_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main libcudd 2.5.0_0 exists in the ports tree
:debug:main libcudd 2.5.0_0  is the latest installed
:debug:main libcudd 2.5.0_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: bash_completion +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libcudd
:debug:main OS darwin/12.5.0 (Mac OS X 10.8) arch i386
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Requested variant +bash_completion is not provided by port libcudd.
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main No need to upgrade! libcudd 2.5.0_0 >= libcudd 2.5.0_0
:msg:main --->  Computing dependencies for gr1c:info:main .:debug:main gr1c has no conflicts
:debug:main Searching for dependency: bison
:debug:main Found Dependency: receipt exists for bison
:debug:main Searching for dependency: flex
:debug:main Found Dependency: receipt exists for flex
:debug:main Searching for dependency: libcudd
:debug:main Found Dependency: receipt exists for libcudd
:msg:main
:debug:main Executing org.macports.main (gr1c)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 503
:debug:archivefetch archivefetch phase started at Wed Oct  1 23:26:59 PDT 2014
:msg:archivefetch --->  Fetching archive for gr1c
:debug:archivefetch Executing org.macports.archivefetch (gr1c)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 503/501
:info:archivefetch --->  gr1c-0.6.2_0.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch gr1c-0.6.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gr1c
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch gr1c-0.6.2_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/gr1c
:debug:archivefetch Fetching archive failed:: Failed to connect to 2001:41d0:a:588b:1::2: Permission denied
:msg:archivefetch --->  Attempting to fetch gr1c-0.6.2_0.darwin_12.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/gr1c
:debug:archivefetch Fetching archive failed:: Failed to connect to 2001:638:a000:1021:21::1: Permission denied
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct  1 23:27:01 PDT 2014
:notice:fetch --->  Fetching distfiles for gr1c
:debug:fetch Executing org.macports.fetch (gr1c)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Wed Oct  1 23:27:01 PDT 2014
:notice:checksum --->  Verifying checksums for gr1c
:debug:checksum Executing org.macports.checksum (gr1c)
:info:checksum --->  Checksumming gr1c-0.6.2.tar.gz
:debug:checksum Calculated (rmd160) is cecca701d1cf89c707a013221207c9820b1ec5c8
:debug:checksum Correct (rmd160) checksum for gr1c-0.6.2.tar.gz
:debug:checksum Calculated (sha256) is 414c166c8f840a1b79267ccf5ccc6da1862eae11cb3c1d81ea42bbcf555bb432
:debug:checksum Correct (sha256) checksum for gr1c-0.6.2.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Wed Oct  1 23:27:01 PDT 2014
:notice:extract --->  Extracting gr1c
:debug:extract Executing org.macports.extract (gr1c)
:info:extract --->  Extracting gr1c-0.6.2.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/gr1c/gr1c-0.6.2.tar.gz'
:debug:extract Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gr1c/gr1c-0.6.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gr1c/gr1c-0.6.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work to macports
:debug:extract euid/egid changed to: 503/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Wed Oct  1 23:27:01 PDT 2014
:debug:patch Executing org.macports.patch (gr1c)
:notice:patch --->  Applying patches to gr1c
:info:patch --->  Applying patch-Makefile.diff
:debug:patch Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/patch -p0'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/math/gr1c/files/patch-Makefile.diff'
:info:patch patching file Makefile
:info:patch --->  Applying patch-tests-Makefile.diff
:debug:patch Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/patch -p0'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/math/gr1c/files/patch-tests-Makefile.diff'
:info:patch patching file tests/Makefile
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Wed Oct  1 23:27:01 PDT 2014
:notice:configure --->  Configuring gr1c
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (gr1c)
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Oct  1 23:27:01 PDT 2014
:notice:build --->  Building gr1c
:debug:build Executing org.macports.build (gr1c)
:debug:build port disallows a parallel build
:debug:build Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/make -w all CC="/usr/bin/clang -arch x86_64" LD="/usr/bin/clang -arch x86_64 -r" PREFIX="/opt/local"'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/make -w all CC="/usr/bin/clang -arch x86_64" LD="/usr/bin/clang -arch x86_64 -r" PREFIX="/opt/local"
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2'
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/main.c
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/util.c
:info:build src/util.c:183:19: warning: unused variable 'prevpt' [-Wunused-variable]
:info:build         ptree_t *tmppt, *prevpt, *var_separator;
:info:build                          ^
:info:build 1 warning generated.
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/logging.c
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/interactive.c
:info:build src/interactive.c:130:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
:info:build         while (input = fgets_wrap( GR1C_INTERACTIVE_PROMPT, 256, infp, outfp)) {
:info:build                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build src/interactive.c:130:15: note: place parentheses around the assignment to silence this warning
:info:build         while (input = fgets_wrap( GR1C_INTERACTIVE_PROMPT, 256, infp, outfp)) {
:info:build                      ^
:info:build                (                                                             )
:info:build src/interactive.c:130:15: note: use '==' to turn this assignment into an equality comparison
:info:build         while (input = fgets_wrap( GR1C_INTERACTIVE_PROMPT, 256, infp, outfp)) {
:info:build                      ^
:info:build                      ==
:info:build 1 warning generated.
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/solve_support.c
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/solve_operators.c
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/solve.c
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/ptree.c
:info:build src/ptree.c:320:15: warning: variable 'max' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized]
:info:build                 for (i = 0; i <= maxval; i++) {
:info:build                             ^~~~~~~~~~~
:info:build src/ptree.c:353:30: note: uninitialized use occurs here
:info:build         head = merge_ptrees( heads, max-min+1, PT_OR );
:info:build                                     ^~~
:info:build src/ptree.c:320:15: note: remove the condition if it is always true
:info:build                 for (i = 0; i <= maxval; i++) {
:info:build                             ^~~~~~~~~~~
:info:build src/ptree.c:287:9: note: initialize the variable 'max' to silence this warning
:info:build         int max, min;
:info:build                ^
:info:build                 = 0
:info:build src/ptree.c:323:14: warning: variable 'min' is uninitialized when used here [-Wuninitialized]
:info:build                         *(heads+i-min) = init_ptree( PT_EQUALS, NULL, 0 );
:info:build                                   ^~~
:info:build src/ptree.c:287:14: note: initialize the variable 'min' to silence this warning
:info:build         int max, min;
:info:build                     ^
:info:build                      = 0
:info:build src/ptree.c:735:22: warning: incompatible pointer types passing 'void (ptree_t *, FILE *)' to parameter of type 'void (*)(ptree_t *, void *)' [-Wincompatible-pointer-types]
:info:build         inorder_trav( head, tree_dot_dump_node, fp );
:info:build                             ^~~~~~~~~~~~~~~~~~
:info:build src/ptree.c:551:16: note: passing argument to parameter 'node_fn' here
:info:build                                    void (* node_fn)(ptree_t *, void *), void *arg )
:info:build                                            ^
:info:build 3 warnings generated.
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/automaton.c
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c src/automaton_io.c
:info:build bison -y -d src/gr1c_parse.y
:info:build flex src/gr1c_scan.l
:info:build /usr/bin/clang -arch x86_64 -g -Wall -pedantic -ansi -DHAVE_IEEE_754 -Isrc -I/opt/local/include/cudd -c lex.yy.c y.tab.c
:info:build lex.yy.c:1326:16: warning: function 'input' is not needed and will not be emitted [-Wunneeded-internal-declaration]
:info:build     static int input  (void)
:info:build                ^
:info:build 1 warning generated.
:info:build y.tab.c:1586:16: warning: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
:info:build       yychar = YYLEX;
:info:build                ^
:info:build y.tab.c:888:16: note: expanded from macro 'YYLEX'
:info:build # define YYLEX yylex (&yylval, &yylloc)
:info:build                ^
:info:build 1 warning generated.
:info:build /usr/bin/clang -arch x86_64 -r lex.yy.o y.tab.o -o gr1c_parse.o
:info:build ld: warning: unexpected dylib (/usr/lib/libSystem.dylib) on link line
:info:build 0  0x1003aa098  __assert_rtn + 144
:info:build 1  0x1003f5682  std::__1::map<ld::File const*, ld::File::Ordinal, std::__1::less<ld::File const*>, std::__1::allocator<std::__1::pair<ld::File const* const, ld::File::Ordinal> > >::operator[](ld::File const* const&) + 0
:info:build 2  0x1003f535f  ld::tool::SectionRelocationsAtom<x86_64>::sectSymNum(bool, ld::Atom const*) + 45
:info:build 3  0x1003eaabb  ld::tool::SectionRelocationsAtom<x86_64>::encodeSectionReloc(ld::Internal::FinalSection*, ld::tool::SectionRelocationsAtom<x86_64>::Entry const&, std::__1::vector<macho_relocation_info<Pointer64<LittleEndian> >, std::__1::allocator<macho_relocation_info<Pointer64<LittleEndian> > > >&) + 77
:info:build 4  0x10040c0a2  ld::tool::SectionRelocationsAtom<x86_64>::encode() + 62
:info:build 5  0x1003f0340  ld::tool::OutputFile::updateLINKEDITAddresses(ld::Internal&) + 420
:info:build 6  0x1003ec030  ld::tool::OutputFile::write(ld::Internal&) + 136
:info:build 7  0x1003aa4d7  main + 713
:info:build 8  0x10039bcd4  start + 52
:info:build A linker snapshot was created at:
:info:build 	/tmp/gr1c_parse.o-2014-09-01-232702.ld-snapshot
:info:build ld: Assertion failed: (_machoSection != 0), function machoSection, file /SourceCache/ld64/ld64-136/src/ld/ld.hpp, line 641.
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [gr1c_parse.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/work/gr1c-0.6.2" && /usr/bin/make -w all CC="/usr/bin/clang -arch x86_64" LD="/usr/bin/clang -arch x86_64 -r" PREFIX="/opt/local"
:info:build Exit code: 2
:error:build org.macports.build for port gr1c returned: command execution failed
:debug:build Error code: CHILDSTATUS 11784 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for gr1c: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port gr1c for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gr1c/gr1c/main.log

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

Resolution: fixed
Status: closedreopened

comment:11 Changed 10 years ago by jfilippidis@…

Thanks for the response, I will follow the mailing list.

comment:12 Changed 10 years ago by jfilippidis@…

For reference, while following the thread on the mailing list, the above failure is with:

xcodebuild -version
Xcode 5.0.2
Build version 5A3005

I attempted updating to xcode v6, but that requires upgrading to OS X v10.9.4 (I am on v10.8.5, which I would like to avoid for now on my machine. I think it would be preferable if gcc was used as a compiler (using its own Makefile only, gr1c builds successfully with the MacPorts gcc), or equiv. clang was avoided.

Last edited 10 years ago by jfilippidis@… (previous) (diff)

comment:13 in reply to:  12 Changed 10 years ago by larryv (Lawrence Velázquez)

Replying to jfilippidis@…:

I think it would be preferable if gcc was used as a compiler (using its own Makefile only, gr1c builds successfully with the MacPorts gcc)

The whole point of using Clang to invoke the linker is to create universal objects without explicitly invoking lipo(1). The GCCs we provide cannot do this.

comment:14 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.