Skip to contentSkip to conversation

buildroot/outputsupport/dependencies/dependencies.mk:21: target 'dependencies' does not exist

Buildroot Todd Sampson 2 participants 2 messages May 20, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 65 lines

I?m trying to cross-compile MariaDB-connector-c-3.1.8 for use with MySQL 8.19. I?ve inherited this buildroot environment so I?m not an expert at all. I?m doing an out of tree build. In buildroot/packages/usi/MariaDB-connector-c directory are:

Config.in
config BR2_PACKAGE_MARIADB_CONNECTOR_C
bool "MariaDB Connector/C"
# depends on BR2_PACKAGE_OPENSSL
help
MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.The client library is LGPL licensed.
https://mariadb.com/kb/en/library/about-mariadb-connector-c/

MariaDB-connector-c.mk
################################################################################
#

# mariadb-connector-c
#
################################################################################

#MARIADB_CONNECTOR_C_VERSION = 2.3.7

MARIADB_CONNECTOR_C_VERSION = 3.1.8

MARIADB_CONNECTOR_C_SITE = https://downloads.mariadb.com/Connectors/c/connector-c-$(MARIADB_CONNECTOR_C_VERSION)
MARIADB_CONNECTOR_C_SOURCE = mariadb-connector-c-$(MARIADB_CONNECTOR_C_VERSION)-src.tar.gz MARIADB_CONNECTOR_C_LICENSE = LGPL-2.0
MARIADB_CONNECTOR_C_LICENSE_FILES = README COPYING.LIB
MARIADB_CONNECTOR_C_INSTALL_STAGING = YES

MARIADB_CONNECTOR_C_DEPENDENCIES = \
# openssl \
# pthreads

MARIADB_CONNECTOR_C_CONF_OPTS += \
       -DSTACK_DIRECTION=-1 \
       -DCMAKE_CROSSCOMPILING=1 \
       -DMYSQL_UNIX_ADDR=$(MYSQL_SOCKET) \
       -DWITH_SSL=OPENSSL \
       -DWITH_OPENSSL=ON\
       -DENABLE_DTRACE=0 \
       -DWITH_UNIT_TESTS=0

$(eval $(cmake-package))

When I do a build, I get the following:
dfr at cmake:~/m9k/buildroot$ make -w --trace mariadb-connector-c-build
make: Entering directory '/home/dfr/m9k/buildroot' Makefile:84: target '_all' does not exist

umask 0022 && \
           make -C /home/dfr/m9k/buildroot --no-print-directory \
                      mariadb-connector-c-build O=/home/dfr/m9k/buildroot/output

support/dependencies/dependencies.mk:21: target 'dependencies' does not exist MAKE="/usr/bin/make -j3" DL_TOOLS="bzcat gzip svn xzcat" \
/home/dfr/m9k/buildroot/support/dependencies/dependencies.sh
Makefile:81: update target 'mariadb-connector-c-build' due to: _all :
make: Leaving directory '/home/dfr/m9k/buildroot'

Quoted 5 lines

If I build MARIADB_CONNECTOR_C_VERSION = 2.3.7, it works

If anyone could give me any hints, I?d appreciate it!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200519/990e4abf/attachment.html>

#2 lore raw

Hello,

Quoted 1 line · On Tue, 19 May 2020 22:36:23 -0400 Todd Sampson <[email protected]> wrote:
Quoted 1 line

I?m trying to cross-compile MariaDB-connector-c-3.1.8 for use with MySQL 8.19. I?ve inherited this buildroot environment so I?m not an expert at all. I?m doing an out of tree build. In buildroot/packages/usi/MariaDB-connector-c directory are:

Which version of Buildroot are you using ?

Quoted 15 lines
Quoted 15 lines

When I do a build, I get the following:
dfr at cmake:~/m9k/buildroot$ make -w --trace mariadb-connector-c-build
make: Entering directory '/home/dfr/m9k/buildroot' Makefile:84: target '_all' does not exist

umask 0022 && \
           make -C /home/dfr/m9k/buildroot --no-print-directory \
                      mariadb-connector-c-build O=/home/dfr/m9k/buildroot/output

support/dependencies/dependencies.mk:21: target 'dependencies' does not exist MAKE="/usr/bin/make -j3" DL_TOOLS="bzcat gzip svn xzcat" \
/home/dfr/m9k/buildroot/support/dependencies/dependencies.sh
Makefile:81: update target 'mariadb-connector-c-build' due to: _all :
make: Leaving directory '/home/dfr/m9k/buildroot'

Quoted 3 lines
Quoted 3 lines

If I build MARIADB_CONNECTOR_C_VERSION = 2.3.7, it works

If anyone could give me any hints, I?d appreciate it!

Not clear what is happening here. The error log you have suggest that there is something fundamentally wrong in your Buildroot setup/installation, but the fact that your build works with MARIADB_CONNECTOR_C_VERSION = 2.3.7 invalidates that.

So let's take a step back:

* What is your Buildroot version ?

* Without your changes, when you do "make clean all", does it build successfully ?

* Then, when you do your changes, and rebuild just the mariadb-connector-c package (make mariadb-connector-c-dirclean all) what is the complete log ?

Note: you don't need to use make -w --trace, just "make" will give enough details.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com