On Tue, 2022-08-09 at 18:17 +0000, Gwyn Ciesla via devel wrote: > > > > gcc -o cmd/mount_zfs/mount_zfs.o -c "-O2 -flto=auto -ffat-lto- > > objects > > -fexceptions -g -grecord-gcc-switches -pipe -Wall > > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > > -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat- > > hardened-cc1 > > -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin- > > cc1 > > -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables > > -fstack-clash-protection" -pipe -Wall -std=c99 -Wno-switch -Wno- > > unused > > -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -Wcast- > > align > > -fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 - > > D_REENTRANT > > -DTEXT_DOMAIN=\"zfs-fuse\" -ggdb -DDEBUG -fPIC -DLINUX_AIO > > -I/usr/include/tirpc -Ilib/libuutil/include -Ilib/libnvpair/include > > -Ilib/libumem/include -Ilib/libzfscommon/include - > > Ilib/libzpool/include > > -Ilib/libzfs/include -Ilib/libsolcompat/include - > > Ilib/libavl/include > > cmd/mount_zfs/mount_zfs.c > > cc1: error: argument to '-O' should be a non-negative integer, 'g', > > 's', > > 'z' or 'fast' > > > > Doesn't help: > > + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' > + /usr/lib/rpm/generate-rpm-note.sh zfs-fuse 0.7.2.2-22.fc38 x86_64 > + cd zfs-fuse-0.7.2.2 > + export CCFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g - > grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,- > D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS - > specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector- > strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 - > mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection - > fcf-protection > + CCFLAGS=-O2 > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-flto=auto': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-ffat-lto-objects': not a > valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-fexceptions': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-g': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-grecord-gcc-switches': > not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-pipe': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-Wall': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-Werror=format-security': > not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-Wp,-D_FORTIFY_SOURCE=2': > not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-Wp,- > D_GLIBCXX_ASSERTIONS': not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `- > specs=/usr/lib/rpm/redhat/redhat-hardened-cc1': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-fstack-protector-strong': > not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `- > specs=/usr/lib/rpm/redhat/redhat-annobin-cc1': not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-m64': not a valid > identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-mtune=generic': not a > valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-fasynchronous-unwind- > tables': not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-fstack-clash-protection': > not a valid identifier > /var/tmp/rpm-tmp.u56vY5: line 42: export: `-fcf-protection': not a > valid identifier > error: Bad exit status from /var/tmp/rpm-tmp.u56vY5 (%build) > I'm no expert but you're hitting two different issues. Your first error message was running the compilre gcc with options being quoted. gcc -o cmd/mount_zfs/mount_zfs.o -c "-O2 -flto=auto ...." The second is when the environment variable is being exported. export CCFLAGS=-O2 -flto=auto ... I think you want export CCFLAGS="-O2 -flto=auto" and the gcc line to not quote the env var. Maybe post the spec somewhere? Sincerely, -- Nathanael _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue