Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#38827 closed defect (duplicate)

netbsd-iscsi-lib won't compile?

Reported by: me@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: netbsd-iscsi-lib

Description

I was really hoping to try the netbsd-iscsi-initiator but I can't get macports to compile it, netbsd-iscsi-lib just fails at the build stage. I tried specifying the compiler as llvm-gcc-4.2 as per another ticket but it didn't seem to help any.

sudo port install netbsd-iscsi-initiator
--->  Computing dependencies for netbsd-iscsi-initiator
--->  Dependencies to be installed: netbsd-iscsi-lib
--->  Building netbsd-iscsi-lib
Error: org.macports.build for port netbsd-iscsi-lib returned: command execution failed
Error: Failed to install netbsd-iscsi-lib
Please see the log file for port netbsd-iscsi-lib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/main.log
Error: The following dependencies were not installed: netbsd-iscsi-lib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port netbsd-iscsi-initiator failed

Here are the contents of main.log as referenced in the error above:

version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (netbsd-iscsi-lib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Apr 16 17:51:06 BST 2013
:notice:build --->  Building netbsd-iscsi-lib
:debug:build Executing org.macports.build (netbsd-iscsi-lib)
: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_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/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_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work/netbsd-iscsi-20110222/src/lib" && /usr/bin/make -j8 -w all'
:debug:build Executing command line:  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 
:info:build make: Entering 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 /bin/sh ../../libtool  --tag=CC   --mode=compile /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 -o libiscsi_la-disk.lo `test -f 'disk.c' || echo './'`disk.c
:info:build  /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 Command failed:  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 
:info:build Exit code: 2
:error:build org.macports.build for port netbsd-iscsi-lib returned: command execution failed
:debug:build Error code: CHILDSTATUS 21443 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 netbsd-iscsi-lib: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install netbsd-iscsi-lib
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Please see the log file for port netbsd-iscsi-lib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/main.log

Considering other ISCSI initiators are paid-only, and probably based on the same code, I'd really like to see this port building correctly =)

Change History (3)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Keywords: ISCSI removed
Owner: changed from macports-tickets@… to pixilla@…

In the future, please Cc the port maintainer(s).

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

comment:3 Changed 12 years ago by me@…

The issue has existed for 15 months? Is the port maintainer still around?

Note: See TracTickets for help on using tickets.