Re: [MacPorts] #32183: jlint: error: cast from ‘void*’ to ‘int’ loses precision (was: jlint Error: Target org.macports.build returned: shell command failed (see log for details))

MacPorts noreply at macports.org
Tue Nov 22 05:34:40 PST 2011


#32183: jlint: error: cast from ‘void*’ to ‘int’ loses precision
------------------------------------+---------------------------------------
 Reporter:  s.veer@…                |       Owner:  waqar@…           
     Type:  defect                  |      Status:  new               
 Priority:  Normal                  |   Milestone:                    
Component:  ports                   |     Version:  2.0.3             
 Keywords:                          |        Port:  jlint             
------------------------------------+---------------------------------------
Changes (by ryandesign@…):

  * keywords:  Jlint jlint.cpp: error: cast from ‘void*’ to ‘int’ loses
               precision =>
  * owner:  macports-tickets@… => waqar@…
  * port:  => jlint


Old description:

> $ sudo vi
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/main.log
>
> {{{
>
> :debug:main Skipping completed org.macports.archivefetch (jlint)[[BR]]
>
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.fetch (jlint)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.checksum (jlint)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.extract (jlint)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.patch (jlint)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.configure (jlint)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:build build phase started at Tue Nov 22 13:57:22 CET 2011
> :notice:build --->  Building jlint
> :debug:build Executing org.macports.build (jlint)
> :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_lang_jlint/jlint/work/.CC_PRINT_OPTIONS'
> LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
> MACOSX_DEPLOYMENT_TARGET='10.7'
> :debug:build Assembled command: 'cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint"
> && /usr/bin/make -j4 -w all'
> :debug:build Executing command line:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint"
> && /usr/bin/make -j4 -w all
> :info:build make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint'
> :info:build g++ -c -Wall -O6 -g jlint.cpp
> :info:build jlint.cpp: In function ‘void format_message(int, const
> utf_string&, int, __va_list_tag*)’:
> ''':info:build jlint.cpp:123: error: cast from ‘void*’ to ‘int’ loses
> precision
> :info:build jlint.cpp:197: error: cast from ‘void*’ to ‘int’ loses
> precision
> :info:build jlint.cpp:208: warning: field precision should have type
> ‘int’, but argument 3 has type ‘long int’
> :info:build jlint.cpp:208: warning: field precision should have type
> ‘int’, but argument 3 has type ‘long int'
> ''':info:build jlint.cpp:230: error: cast from ‘void*’ to ‘int’ loses
> precision
> :info:build jlint.cpp: In function ‘int parse_class_file(byte*)’:
> :info:build jlint.cpp:4629: warning: unused variable ‘desc_index’
> :info:build jlint.cpp:4694: warning: unused variable ‘max_stack’
> :info:build jlint.cpp:4540: warning: unused variable ‘minor_version’
> :info:build jlint.cpp:4542: warning: unused variable ‘major_version’
> :info:build make: *** [jlint.o] Error 1
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint'
> :info:build shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint"
> && /usr/bin/make -j4 -w all " returned error 2
> :error:build Target org.macports.build returned: shell command failed
> (see log for details)
> :debug:build Backtrace: shell command failed (see log for details)
>     while executing
> "command_exec build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> :info:build Warning: the following items did not execute (for jlint):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Log for jlint is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/main.log
> }}}

New description:

 $ sudo vi
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/main.log

 {{{

 :debug:main Skipping completed org.macports.archivefetch (jlint)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.fetch (jlint)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.checksum (jlint)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.extract (jlint)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.patch (jlint)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.configure (jlint)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:build build phase started at Tue Nov 22 13:57:22 CET 2011
 :notice:build --->  Building jlint
 :debug:build Executing org.macports.build (jlint)
 :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_lang_jlint/jlint/work/.CC_PRINT_OPTIONS'
 LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
 MACOSX_DEPLOYMENT_TARGET='10.7'
 :debug:build Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint"
 && /usr/bin/make -j4 -w all'
 :debug:build Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint"
 && /usr/bin/make -j4 -w all
 :info:build make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint'
 :info:build g++ -c -Wall -O6 -g jlint.cpp
 :info:build jlint.cpp: In function ‘void format_message(int, const
 utf_string&, int, __va_list_tag*)’:
 ''':info:build jlint.cpp:123: error: cast from ‘void*’ to ‘int’ loses
 precision
 :info:build jlint.cpp:197: error: cast from ‘void*’ to ‘int’ loses
 precision
 :info:build jlint.cpp:208: warning: field precision should have type
 ‘int’, but argument 3 has type ‘long int’
 :info:build jlint.cpp:208: warning: field precision should have type
 ‘int’, but argument 3 has type ‘long int'
 ''':info:build jlint.cpp:230: error: cast from ‘void*’ to ‘int’ loses
 precision
 :info:build jlint.cpp: In function ‘int parse_class_file(byte*)’:
 :info:build jlint.cpp:4629: warning: unused variable ‘desc_index’
 :info:build jlint.cpp:4694: warning: unused variable ‘max_stack’
 :info:build jlint.cpp:4540: warning: unused variable ‘minor_version’
 :info:build jlint.cpp:4542: warning: unused variable ‘major_version’
 :info:build make: *** [jlint.o] Error 1
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint'
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/work/jlint"
 && /usr/bin/make -j4 -w all " returned error 2
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 :debug:build Backtrace: shell command failed (see log for details)
     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: the following items did not execute (for jlint):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Log for jlint is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_jlint/jlint/main.log
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/32183#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list