Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#32183 closed defect (fixed)

jlint: error: cast from ‘void*’ to ‘int’ loses precision

Reported by: s.veer@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: jlint

Description (last modified by ryandesign (Ryan Schmidt))

$ 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

Change History (3)

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

Description: modified (diff)
Keywords: Jlint jlint.cpp: error: cast from ‘void*’ to ‘int’ loses precision removed
Owner: changed from macports-tickets@… to waqar@…
Port: jlint added
Summary: jlint Error: Target org.macports.build returned: shell command failed (see log for details)jlint: error: cast from ‘void*’ to ‘int’ loses precision

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

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

I updated jlint to 1.23 in r87454, which seems to resolve the problem.

comment:3 Changed 9 years ago by s.veer@…

sudo port search jlint
Password:
jlint @1.21 (devel)
    Java code verifier
$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
$ sudo port search jlint
jlint @1.23 (lang, devel)
    Java code verifier
sanders-imac:bin sveer$ sudo port install jlint
Portfile changed since last build; discarding previous state.
--->  Fetching archive for jlint
--->  Attempting to fetch jlint-1.23_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/jlint
--->  Fetching jlint
--->  Attempting to fetch jlint-1.23.tar.gz from http://lil.fr.distfiles.macports.org/jlint
--->  Attempting to fetch jlint-1.23.tar.gz from http://www.garret.ru/
--->  Verifying checksum(s) for jlint
--->  Extracting jlint
--->  Applying patches to jlint
--->  Configuring jlint
--->  Building jlint
--->  Staging jlint into destroot
--->  Installing jlint @1.23_0
--->  Activating jlint @1.23_0
--->  Cleaning jlint

Fixed, thanks.

Note: See TracTickets for help on using tickets.