Src2pkg configuration error...

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
n0ctilucient
Warlord
Warlord
Posts: 512
Joined: 21 Apr 2017, 15:59
Distribution: fullmoonremix
Location: 127.0.0.1
Contact:

Src2pkg configuration error...

Post#1 by n0ctilucient » 28 Jun 2019, 14:22

When I attempt to compile eglibc I get this... :unknown:

Code: Select all

checking build system type... x86_64-slackware-linux
checking host system type... x86_64-slackware-linux
checking for x86_64-slackware-linux-gcc... x86_64-slackware-linux-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-slackware-linux-gcc accepts -g... yes
checking for x86_64-slackware-linux-g++... x86_64-slackware-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-slackware-linux-g++ accepts -g... yes
checking for x86_64-slackware-linux-readelf... no
checking for readelf... readelf
configure: error: you must configure in a separate build directory
This is my current configuration...

Code: Select all

# ===================================================["fullmoonremix"]

# Pls Note:  Mileage may vary... so take the following parameters w/ a grain of salt.
# (This configuration successfully compiles "musl" libc)

# (...configure)
PACKAGER="fullmoonremix"
SIG="_fmr4"
QUIET="NO"
PREFIX=/usr
LIBDIR=${PREFIX}/lib64
CREATE_MD5_CHECKSUM="YES"
BIN_COMPRESSOR=upx
COMPRESS_BINS=YES

# (...install)
INSTALL_TYPE=REAL
INSTALL_LINE="make -i install"

# (...path)
SOURCES_DIR="$CWD"
PKG_DEST_DIR="$CWD"

LOG_DIR="$CWD/src2pkg/log"
SRC_BUILDS_DIR="$CWD/src2pkg/source"
PKG_BUILDS_DIR="$CWD/src2pkg/package"

# pls note: you might need to create the, 
# following "current directory" subfolders...
BACKUPS_SAVE_DIR="$CWD/src2pkg/backup/save"
PATCHES_DIR="$CWD/src2pkg/patches"
CONFIG_DIR="$CWD/src2pkg/configure"
BACKUP_DIR="$CWD/src2pkg/backup"

# (...flags)
STD_FLAGS="-O3 -D_FORTIFY_SOURCE=2 -DPIC -fPIC -mmitigate-rop -pipe -fwrapv -fomit-frame-pointer -fmerge-all-constants -momit-leaf-frame-pointer -pipe -pthread -fopenmp"

# (...ld)
LDLIBS="-lmcheck -lpthread -ldl -lOpenCl -lselinux"
EXTRA_LDFLAGS="-z,relro,-z,now"

# (...autoconf)
AUTO_CONFIG=NATIVE
AUTO_CONFIG_OPTIONS="sysconfdir, bindir, libdir, docdir, mandir, localdir, sharedir"
AC_DEFAULT_PREFIX=/usr

# (...host)
ADD_EXPLICIT_HOST=YES
CFLAGS="-march=native -mtune=generic ./configure --prefix=/usr --build=native-slackware-linux --host=native-slackware-linux --target=native-slackware-linux"
CXXFLAGS="-march=native -mtune=generic ./configure --prefix=/usr  --build=native-slackware-linux --host=native-slackware-linux --target=native-slackware-linux"

# (...options)
JOBS='-j4'
LINK_LICENSES=YES
COMPRESS_DOCS=YES
DOCLIST=MINIMAL 
LOG_COMMANDS=YES
AUTO_DESKTOP=YES
FAIL_ON_BAD_DIRS=YES

# (...optional)
EXTRA_CONFIGS="--x-libraries=/usr/X11R6/lib64 --x-includes=/usr/includes --with-openssl-dir --with-tcl=../lib64 --with-tk=../lib64 --with-pic --with-selinux --with-x --with-xft --with-xftconfig --enable-dependency-tracking sysconfdir=${AC_DEFAULT_PREFIX}/etc bindir=${AC_DEFAULT_PREFIX}/bin libdir=${AC_DEFAULT_PREFIX}/lib64 docdir=${AC_DEFAULT_PREFIX}/doc mandir=${AC_DEFAULT_PREFIX}/man localdir=${AC_DEFAULT_PREFIX}/local sharedir=${AC_DEFAULT_PREFIX}/share"
I have reached out to Scr2pkg's author (Gilbert) but I have not made contact.
:hmmm: I do NOT have the "right" to tell anyone what they should do...
but I reserve the "right" to tell them what they should "consider".

Post Reply