Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 769515 - sys-fs/mergerfs fails to build on gcc-config[-native-symlinks]: make[1]: c++: No such file or directory
Summary: sys-fs/mergerfs fails to build on gcc-config[-native-symlinks]: make[1]: c++:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Piotr Karbowski
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2021-02-08 09:39 UTC by Sergei Trofimovich
Modified: 2021-03-11 20:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich gentoo-dev 2021-02-08 09:39:07 UTC
>>> Emerging (1 of 1) sys-fs/mergerfs-2.32.1::gentoo
 * mergerfs-2.32.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking mergerfs-2.32.1.tar.gz to /tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work
>>> Source unpacked in /tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work
>>> Preparing source in /tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1 ...
>>> Source prepared.
>>> Configuring source in /tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1 ...
>>> Source configured.
>>> Compiling source in /tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1 ...
make --jobs=4
make DEBUG= -C libfuse
tools/update-version
mkdir -p build
make[1]: Entering directory '/tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1/libfuse'
touch build/stamp
make build/branch.o build/config.o build/config_cachefiles.o build/config_inodecalc.o build/config_moveonenospc.o build/config_nfsopenhack.o build/config_readdir.o build/config_statfs.o build/config_statfsignore.o build/config_xattr.o build/from_string.o build/fs_acl.o build/fs_attr.o build/fs_clonefile.o build/fs_clonepath.o build/fs_copy_file_range.o build/fs_copydata.o build/fs_copydata_copy_file_range.o build/fs_copydata_readwrite.o build/fs_cow.o build/fs_fadvise.o build/fs_fallocate.o build/fs_ficlone.o build/fs_file_size.o build/fs_findallfiles.o build/fs_findonfs.o build/fs_futimesat.o build/fs_getdents64.o build/fs_getfl.o build/fs_glob.o build/fs_has_space.o build/fs_info.o build/fs_inode.o build/fs_mktemp.o build/fs_movefile.o build/fs_path.o build/fs_realpathize.o build/fs_sendfile.o build/fs_setfl.o build/fs_statvfs_cache.o build/fs_xattr.o build/func.o build/func_category.o build/fuse_access.o build/fuse_chmod.o build/fuse_chown.o build/fuse_copy_file_range.o build/fuse_create.o build/fuse_destroy.o build/fuse_fallocate.o build/fuse_fchmod.o build/fuse_fchown.o build/fuse_fgetattr.o build/fuse_flock.o build/fuse_flush.o build/fuse_free_hide.o build/fuse_fsync.o build/fuse_fsyncdir.o build/fuse_ftruncate.o build/fuse_futimens.o build/fuse_getattr.o build/fuse_getxattr.o build/fuse_init.o build/fuse_ioctl.o build/fuse_link.o build/fuse_listxattr.o build/fuse_mkdir.o build/fuse_mknod.o build/fuse_open.o build/fuse_opendir.o build/fuse_prepare_hide.o build/fuse_read.o build/fuse_read_buf.o build/fuse_readdir.o build/fuse_readdir_linux.o build/fuse_readdir_plus.o build/fuse_readdir_plus_linux.o build/fuse_readdir_plus_posix.o build/fuse_readdir_posix.o build/fuse_readlink.o build/fuse_release.o build/fuse_releasedir.o build/fuse_removexattr.o build/fuse_rename.o build/fuse_rmdir.o build/fuse_setxattr.o build/fuse_statfs.o build/fuse_symlink.o build/fuse_truncate.o build/fuse_unlink.o build/fuse_utimens.o build/fuse_write.o build/fuse_write_buf.o build/gidcache.o build/hw_cpu.o build/mempools.o build/mergerfs.o build/num.o build/option_parser.o build/policy.o build/policy_all.o build/policy_cache.o build/policy_epall.o build/policy_epff.o build/policy_eplfs.o build/policy_eplus.o build/policy_epmfs.o build/policy_eppfrd.o build/policy_eprand.o build/policy_erofs.o build/policy_ff.o build/policy_invalid.o build/policy_lfs.o build/policy_lus.o build/policy_mfs.o build/policy_msplfs.o build/policy_msplus.o build/policy_mspmfs.o build/policy_msppfrd.o build/policy_newest.o build/policy_pfrd.o build/policy_rand.o build/resources.o build/rnd.o build/str.o build/to_string.o build/ugid.o
mkdir -p build
make[1]: Entering directory '/tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1'
touch build/stamp
ecfd/build | tee build/config.h
#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED

ecfd/build: line 19: cc: command not found
ecfd/build: line 19: cc: command not found
ecfd/build: line 19: cc: command not found
ecfd/build: line 19: cc: command not found
ecfd/build: line 19: cc: command not found

#endif
make build/buffer.o build/fuse_dirents.o build/fuse.o build/fuse_kern_chan.o build/fuse_loop_mt.o build/fuse_lowlevel.o build/fuse_mt.o build/fuse_opt.o build/fuse_session.o build/fuse_signals.o build/helper.o build/mount.o
cc -march=sandybridge -mtune=sandybridge -maes --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Wstack-protector     -frecord-gcc-switches -Wall -pipe -MMD -Iinclude -Ibuild -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29 -DPACKAGE_VERSION=\"2.9.7-mergerfs_2.30.0\" -DFUSERMOUNT_DIR=\"/usr/local/bin\" -Ilib -o build/mergerfs-fusermount util/fusermount.c lib/mount_util.c
make[1]: cc: No such file or directory
make[1]: *** [Makefile:88: build/mergerfs-fusermount] Error 127
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1/libfuse'
cc -march=sandybridge -mtune=sandybridge -maes --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Wstack-protector     -frecord-gcc-switches -Wall -pipe -MMD -Wall -pipe -MMD -Iinclude -Ibuild -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29 -DPACKAGE_VERSION=\"2.9.7-mergerfs_2.30.0\" -DFUSERMOUNT_DIR=\"/usr/local/bin\" -c lib/buffer.c -o build/buffer.o
make[2]: cc: No such file or directory
make[2]: *** [Makefile:98: build/buffer.o] Error 127
make[2]: Leaving directory '/tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1/libfuse'
make[1]: *** [Makefile:80: objects] Error 2
make[1]: Leaving directory '/tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1/libfuse'
make: *** [Makefile:236: libfuse] Error 2
make: *** Waiting for unfinished jobs....
c++ -march=sandybridge -mtune=sandybridge -maes --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Wstack-protector -frecord-gcc-switches -std=c++0x   -Wall -Wno-unused-result -MMD -std=c++0x   -Wall -Wno-unused-result -MMD -Ilibfuse/include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29 -DUSE_XATTR=1 -DUGID_USE_RWLOCK=0  -c src/branch.cpp -o build/branch.o
make[1]: c++: No such file or directory
make[1]: *** [Makefile:134: build/branch.o] Error 127
make[1]: Leaving directory '/tmp/portage-tmpdir/portage/sys-fs/mergerfs-2.32.1/work/mergerfs-2.32.1'
make: *** [Makefile:111: objects] Error 2
Comment 1 Sergei Trofimovich gentoo-dev 2021-02-08 09:41:06 UTC
The following seems to be enough to use tool-prefixed binaries:

--- a/sys-fs/mergerfs/mergerfs-2.32.2.ebuild
+++ b/sys-fs/mergerfs/mergerfs-2.32.2.ebuild
@@ -39,7 +39,7 @@ src_prepare() {

 src_compile() {
        # https://bugs.gentoo.org/725978
-       tc-export AR
+       tc-export AR CC CXX

        default
 }
Comment 2 Larry the Git Cow gentoo-dev 2021-03-11 20:34:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d546ba34db7f9e364d1dc7ae96b264ca6c1f3887

commit d546ba34db7f9e364d1dc7ae96b264ca6c1f3887
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2021-03-11 20:12:11 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2021-03-11 20:34:23 +0000

    sys-fs/mergerfs: 2.32.4 version bump.
    
    Closes: https://bugs.gentoo.org/769515
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 sys-fs/mergerfs/Manifest               |  1 +
 sys-fs/mergerfs/mergerfs-2.32.4.ebuild | 52 ++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)