[MacPorts] #37067: jshon won't build
#37067: jshon won't build -------------------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: jshon won't build | Port: jshon -------------------------------+-------------------------------- Last linnes of main.log: :debug:configure Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Tue Nov 20 20:47:01 CET 2012 :notice:build ---> Building jshon :debug:build Executing org.macports.build (jshon) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' 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_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801' :info:build /usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib -c -std=c99 -Wall -pedantic -Wextra -Werror jshon.c :info:build clang: error: argument unused during compilation: '-L/opt/local/lib' :info:build make: *** [jshon.o] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib" :info:build Exit code: 2 :error:build org.macports.build for port jshon returned: command execution failed :debug:build Error code: CHILDSTATUS 40920 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 "$procedure $targetname" :info:build Warning: targets not executed for jshon: org.macports.activate org.macports.build org.macports.destroot org.macports.install -- Ticket URL: <https://trac.macports.org/ticket/37067> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37067: jshon won't build ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: jshon | ---------------------+-------------------------------- Changes (by ryandesign@…): * keywords: jshon won't build => Old description:
Last linnes of main.log:
:debug:configure Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Tue Nov 20 20:47:01 CET 2012 :notice:build ---> Building jshon :debug:build Executing org.macports.build (jshon) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' 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_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801' :info:build /usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib -c -std=c99 -Wall -pedantic -Wextra -Werror jshon.c :info:build clang: error: argument unused during compilation: '-L/opt/local/lib' :info:build make: *** [jshon.o] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib" :info:build Exit code: 2 :error:build org.macports.build for port jshon returned: command execution failed :debug:build Error code: CHILDSTATUS 40920 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 "$procedure $targetname" :info:build Warning: targets not executed for jshon: org.macports.activate org.macports.build org.macports.destroot org.macports.install
New description: Last linnes of main.log: {{{ :debug:configure Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Tue Nov 20 20:47:01 CET 2012 :notice:build ---> Building jshon :debug:build Executing org.macports.build (jshon) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' 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_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801' :info:build /usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib -c -std=c99 -Wall -pedantic -Wextra -Werror jshon.c :info:build clang: error: argument unused during compilation: '-L/opt/local/lib' :info:build make: *** [jshon.o] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_jshon/jshon/work/jshon-20120801" && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64 -I/opt/local/include -L/opt/local/lib" :info:build Exit code: 2 :error:build org.macports.build for port jshon returned: command execution failed :debug:build Error code: CHILDSTATUS 40920 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 "$procedure $targetname" :info:build Warning: targets not executed for jshon: org.macports.activate org.macports.build org.macports.destroot org.macports.install }}} -- -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: jshon | ---------------------+-------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: jshon | ---------------------+-------------------------------- Comment (by mail@…): Workaround {{{ $ sudo port install jshon $ vim /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_jshon/jshon/work/jshon-20120801/Makefile }}} Remove `-Werror` from `CFLAGS += -std=c99 -Wall -pedantic -Wextra -Werror` and run `sudo port install jshon` again. -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: jshon | ---------------------+-------------------------------- Changes (by g5pw@…): * status: new => closed * resolution: => fixed Comment: Fixed in r112672 by substituting configure.ldflags with configure.cflags in the CC variable. -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: jshon | ---------------------+-------------------------------- Changes (by g5pw@…): * status: closed => reopened * resolution: fixed => Comment: Hmm... apparently the compilation fails with gcc4.2 with a warning that gets converted into an error: {{{ /usr/bin/gcc-4.2 -arch x86_64 -Os -std=c99 -Wall -pedantic -Wextra -Werror -c -o jshon.o jshon.c cc1: warnings being treated as errors jshon.c: In function ‘read_stream’: jshon.c:350: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘off_t’ jshon.c:358: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘off_t’ make: *** [jshon.o] Error 1 }}} Of course, we can always blacklist gcc4.2 but I prefer to get rid of the -Werror argument. -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: jshon | ---------------------+-------------------------------- Comment (by egall@…): Replying to [comment:5 g5pw@…]:
Hmm... apparently the compilation fails with gcc4.2 with a warning that gets converted into an error: {{{ /usr/bin/gcc-4.2 -arch x86_64 -Os -std=c99 -Wall -pedantic -Wextra -Werror -c -o jshon.o jshon.c cc1: warnings being treated as errors jshon.c: In function ‘read_stream’: jshon.c:350: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘off_t’ jshon.c:358: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘off_t’ make: *** [jshon.o] Error 1 }}}
Of course, we can always blacklist gcc4.2 but I prefer to get rid of the -Werror argument.
Ran into this error today too. I also prefer getting rid of the `-Werror` flag. -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: jshon | ---------------------+-------------------------------- Changes (by g5pw@…): * status: reopened => closed * resolution: => fixed Comment: Fixed in r116483. -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: jshon | ---------------------+-------------------------------- Comment (by egall@…): Replying to [comment:9 g5pw@…]:
Fixed in r116483. You should submit a pull request with your patch upstream. If not, I will.
-- Ticket URL: <https://trac.macports.org/ticket/37067#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: jshon | ---------------------+-------------------------------- Comment (by egall@…): Replying to [comment:10 egall@…]:
Replying to [comment:9 g5pw@…]:
Fixed in r116483. You should submit a pull request with your patch upstream. If not, I will. Pull request submitted upstream here: https://github.com/keenerd/jshon/pull/32
-- Ticket URL: <https://trac.macports.org/ticket/37067#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#37067: jshon @20120801 fails to build due to use of -Werror ---------------------+-------------------------------- Reporter: ag@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: jshon | ---------------------+-------------------------------- Comment (by g5pw@…): Ah, thanks! -- Ticket URL: <https://trac.macports.org/ticket/37067#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts