Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 743787 - dev-python/python-efl-1.24.0 fails to compile
Summary: dev-python/python-efl-1.24.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-20 16:41 UTC by Agostino Sarubbo
Modified: 2020-09-22 06:02 UTC (History)
0 users

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


Attachments
build.log (build.log,36.17 KB, text/plain)
2020-09-20 16:41 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-20 16:41:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/python-efl-1.24.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-20 16:41:13 UTC
Created attachment 661659 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-20 16:41:14 UTC
Possible context of error(s):

clang-10: error: unknown argument: '-fno-var-tracking-assignments'
Comment 3 Joonas Niilola gentoo-dev 2020-09-21 05:26:23 UTC
I don't know, your CC line and unset lines are different from mine in your emerge --info. What's the correct way to set up these? Since I'm following 
https://wiki.gentoo.org/wiki/Clang
and it works. There's a very specific patch already in tree about this, too:
https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/python-efl/files/python-efl-1.24-clang.patch

so should the documentation be updated, or are your tinderbox settings wonky?
Comment 4 Agostino Sarubbo gentoo-dev 2020-09-21 06:16:02 UTC
CC is x86_64-pc-linux-gnu-clang here

Please try x86_64-pc-linux-gnu-clang -fno-var-tracking-assignments
Comment 5 Joonas Niilola gentoo-dev 2020-09-21 06:19:10 UTC
(In reply to Agostino Sarubbo from comment #4)
> CC is x86_64-pc-linux-gnu-clang here
> 

Yes I can see that, but where did you get the idea to set it so? I can't find any documentation supporting you should do that.
Comment 6 Agostino Sarubbo gentoo-dev 2020-09-21 06:37:47 UTC
(In reply to Joonas Niilola from comment #5)
> (In reply to Agostino Sarubbo from comment #4)
> > CC is x86_64-pc-linux-gnu-clang here
> > 
> 
> Yes I can see that, but where did you get the idea to set it so? I can't
> find any documentation supporting you should do that.

I can see the same output while running "x86_64-pc-linux-gnu-clang -fno-var-tracking-assignments" or just "clang -fno-var-tracking-assignments" so I don't understand at all what are you meaning.

Also, "diff -ru /usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang /usr/lib/llvm/10/bin/clang" gives no output that means that is the same binary
Comment 7 Joonas Niilola gentoo-dev 2020-09-21 07:57:34 UTC
I have modified settings as described in here, 
https://wiki.gentoo.org/wiki/Clang
and it works for me.

>: emerge -pv python-efl clang llvm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/llvm-10.0.1:10::gentoo  USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 -ARC -ARM -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" 0 KiB
[ebuild   R    ] sys-devel/clang-10.0.1:10::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 -ARC -ARM -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8 -python3_9" 0 KiB
[ebuild   R    ] dev-python/python-efl-1.24.0::gentoo  USE="-doc* -test*" PYTHON_TARGETS="python3_6 

>: cat /var/db/pkg/dev-python/python-efl-1.24.0/CC 
clang

So you have some weird undocumented unsupported system configuration that doesn't work?
Comment 8 Agostino Sarubbo gentoo-dev 2020-09-21 19:47:14 UTC
The point is about prefixed toolchain command line. I guess in case of cross compiling the clang patch is broken because expects only clang instead of prefixed clang.

Regarding the unsupported undocumented thing I guess it is like to say gcc is supported while x86_64-pc-linux-gnu-gcc is not.
Comment 9 Larry the Git Cow gentoo-dev 2020-09-22 06:01:25 UTC
The bug has been closed via the following commit(s):

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

commit d7c2885608dafa2e5190d51513c867988b6a8c97
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2020-09-22 05:59:44 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-09-22 06:01:17 +0000

    dev-python/python-efl: fix crosscompile with clang
    
    Closes: https://bugs.gentoo.org/743787
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../python-efl/files/python-efl-1.24-clang.patch   | 29 ++++++----------------
 1 file changed, 8 insertions(+), 21 deletions(-)
Comment 10 Joonas Niilola gentoo-dev 2020-09-22 06:02:19 UTC
Thanks for explaining, it makes sense now. I just wanted to know where the x86_64-pc-linux-gnu-clang came from. There's no reason to support hundred variations of "my-custom-cc-wrapper".