Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#55869 closed defect (wontfix)

libftdi1: add_dependencies called with incorrect number of arguments

Reported by: mf2k (Frank Schima) Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.4.99
Keywords: Cc:
Port: libftdi1

Description

Error appears to be around here:

:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_libftdi/libftdi1/work/build" && /usr/bin/make -j8 -w all VERBOSE=ON 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_libftdi/libftdi1/work/build" && /usr/bin/make -j8 -w all VERBOSE=ON 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_libftdi/libftdi1/work/build'
:info:build /opt/local/bin/cmake -H/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_libftdi/libftdi1/work/libftdi1-1.4 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_libftdi/libftdi1/work/build --check-build-system CMakeFiles/Makefile.cmake 0
:info:build Re-run cmake file: Makefile older than: CMakeCache.txt
:info:build -- Build type: Release
:info:build -- Boost version: 1.66.0
:info:build -- Doxygen found.
:info:build -- Generating API documentation with Doxygen
:info:build fatal: Not a git repository (or any of the parent directories): .git
:info:build -- Detected git snapshot version: unknown
:info:build -- Building libftdi1++
:info:build CMake Error at /opt/local/share/cmake-3.11/Modules/UseSWIG.cmake:415 (add_library):
:info:build   add_library cannot create target "ftdi1" because another target with the
:info:build   same name already exists.  The existing target is a shared library created
:info:build   in source directory
:info:build   "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_libftdi/libftdi1/work/libftdi1-1.4/src".
:info:build   See documentation for policy CMP0002 for more details.
:info:build Call Stack (most recent call first):
:info:build   /opt/local/share/cmake-3.11/Modules/UseSWIG.cmake:396 (swig_add_library)
:info:build   python/CMakeLists.txt:28 (swig_add_module)
:info:build CMake Error at /opt/local/share/cmake-3.11/Modules/UseSWIG.cmake:589 (message):
:info:build   Cannot find Swig library "ftdi1".
:info:build Call Stack (most recent call first):
:info:build   python/CMakeLists.txt:29 (swig_link_libraries)
:info:build CMake Error at /opt/local/share/cmake-3.11/Modules/UseSWIG.cmake:589 (message):
:info:build   Cannot find Swig library "ftdi1".
:info:build Call Stack (most recent call first):
:info:build   python/CMakeLists.txt:32 (swig_link_libraries)
:info:build CMake Error at python/CMakeLists.txt:70 (add_dependencies):
:info:build   add_dependencies called with incorrect number of arguments

Attachments (2)

main.log (17.6 KB) - added by mf2k (Frank Schima) 7 years ago.
main.2.log (88.4 KB) - added by mf2k (Frank Schima) 6 years ago.

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 7 years ago by nerdling (Jeremy Lavergne)

After spending all day building libgcc and gcc, I'm unable to replicate this issue. It installed flawlessly for me.

I will point out, however, that I do not have a /opt/local/share/cmake-3.11/Modules/UseSWIG.cmake; what is that?

comment:2 Changed 7 years ago by nerdling (Jeremy Lavergne)

Incidentally, I have cmake 3.10 active; where's 3.11 from?

comment:3 Changed 7 years ago by mf2k (Frank Schima)

$ port installed cmake*
The following ports are currently installed:
  cmake-devel @20180226_0+docs+python36 (active)

and

$ port provides /opt/local/share/cmake-3.11/Modules/UseSWIG.cmake
/opt/local/share/cmake-3.11/Modules/UseSWIG.cmake is provided by: cmake-devel

comment:4 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Are you still seeing this problem? I am not able to reproduce it today.

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 6 years ago by mf2k (Frank Schima)

Yes. I am attaching the log from today.

Last edited 6 years ago by mf2k (Frank Schima) (previous) (diff)

Changed 6 years ago by mf2k (Frank Schima)

Attachment: main.2.log added

comment:6 Changed 6 years ago by nerdling (Jeremy Lavergne)

I was unable to build cmake-devel today, even tried using build.jobs=1 as well.

However, I did build and use cmake@3.12.2; ran into #56289 again. Once fixing that, the libftdi1 build was successful.

Last edited 6 years ago by nerdling (Jeremy Lavergne) (previous) (diff)

comment:7 Changed 6 years ago by nerdling (Jeremy Lavergne)

Resolution: wontfix
Status: newclosed

I'm unable to build the dependencies to replicate this failure, so I don't see how anyone can currently get into this situation. Marking as wontfix for now.

comment:8 Changed 6 years ago by mf2k (Frank Schima)

It does build for me now with cmake-devel.

Last edited 6 years ago by mf2k (Frank Schima) (previous) (diff)
Note: See TracTickets for help on using tickets.