[MacPorts] #33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure
#33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure --------------------------------+------------------------------------------- Reporter: jkent3rd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: --------------------------------+------------------------------------------- disk.c won't compile because of an illegal cast. info:build /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/opt/local/include -pipe -O2 -arch x86_64 -MT libiscsi_la-disk.lo -MD -MP -MF .deps/libiscsi_la-disk.Tpo -c disk.c -fno-common -DPIC -o .libs/libiscsi_la-disk.o :info:build disk.c:810:38: error: assignment to cast is illegal, lvalue casts are not supported :info:build *((uint64_t *) (void *)data + 8) = (uint64_t) ISCSI_HTONLL(key); :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build 1 error generated. :info:build make: *** [libiscsi_la-disk.lo] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work /netbsd-iscsi-20110222/src/lib' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work /netbsd-iscsi-20110222/src/lib" && /usr/bin/make -j8 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) -- Ticket URL: <https://trac.macports.org/ticket/33188> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure --------------------------------+------------------------------------------- Reporter: jkent3rd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: --------------------------------+------------------------------------------- Comment(by jkent3rd@…): Compiles fine when using: port install netbsd-iscsi-lib configure.compiler =llvm-gcc-4.2 -- Ticket URL: <https://trac.macports.org/ticket/33188#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure --------------------------------+------------------------------------------- Reporter: jkent3rd@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: netbsd-iscsi-lib --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => pixilla@… * port: => netbsd-iscsi-lib Old description:
disk.c won't compile because of an illegal cast.
info:build /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/opt/local/include -pipe -O2 -arch x86_64 -MT libiscsi_la-disk.lo -MD -MP -MF .deps/libiscsi_la-disk.Tpo -c disk.c -fno-common -DPIC -o .libs/libiscsi_la-disk.o :info:build disk.c:810:38: error: assignment to cast is illegal, lvalue casts are not supported :info:build *((uint64_t *) (void *)data + 8) = (uint64_t) ISCSI_HTONLL(key); :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build 1 error generated. :info:build make: *** [libiscsi_la-disk.lo] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work /netbsd-iscsi-20110222/src/lib' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work /netbsd-iscsi-20110222/src/lib" && /usr/bin/make -j8 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details)
New description: disk.c won't compile because of an illegal cast. {{{ info:build /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/opt/local/include -pipe -O2 -arch x86_64 -MT libiscsi_la-disk.lo -MD -MP -MF .deps/libiscsi_la-disk.Tpo -c disk.c -fno-common -DPIC -o .libs/libiscsi_la-disk.o :info:build disk.c:810:38: error: assignment to cast is illegal, lvalue casts are not supported :info:build *((uint64_t *) (void *)data + 8) = (uint64_t) ISCSI_HTONLL(key); :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build 1 error generated. :info:build make: *** [libiscsi_la-disk.lo] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work /netbsd-iscsi-20110222/src/lib' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work /netbsd-iscsi-20110222/src/lib" && /usr/bin/make -j8 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) }}} -- -- Ticket URL: <https://trac.macports.org/ticket/33188#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure --------------------------------+------------------------------------------- Reporter: jkent3rd@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: netbsd-iscsi-lib --------------------------------+------------------------------------------- Comment(by jmr@…): The code is indeed invalid as per the C standard. -- Ticket URL: <https://trac.macports.org/ticket/33188#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure -------------------------------+----------------------- Reporter: jkent3rd@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: netbsd-iscsi-lib | -------------------------------+----------------------- Comment (by larryv@…): Duplicated by #37770. -- Ticket URL: <https://trac.macports.org/ticket/33188#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33188: netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure -------------------------------+----------------------- Reporter: jkent3rd@… | Owner: pixilla@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: wontfix | Keywords: Port: netbsd-iscsi-lib | -------------------------------+----------------------- Changes (by pixilla@…): * status: new => closed * resolution: => wontfix Comment: Port removed in r110837 -- Ticket URL: <https://trac.macports.org/ticket/33188#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts