Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723752 - app-cdr/cdrtools calls cc directly
Summary: app-cdr/cdrtools calls cc directly
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-05-18 12:38 UTC by Agostino Sarubbo
Modified: 2024-04-09 21:16 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,912.08 KB, text/plain)
2020-05-18 12:38 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-05-18 12:38:35 UTC
This is an auto-filed bug because app-cdr/cdrtools fails to compile.
The issue was originally discovered on arm, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-18 12:38:46 UTC
Created attachment 640142 [details]
build.log

build log and emerge --info
Comment 2 Daniel Pielmeier gentoo-dev 2020-05-29 15:36:20 UTC
O2 -pipe -g -ggdb -frecord-gcc-switches -finput-charset=ISO-8859-1 -fexec-charset=UTF-8 -c -o OBJ/arm-linux-cc/align_test.o align_test.c  
/bin/sh: O2: command not found
make[2]: [../RULES/r-gmake.obj:51: OBJ/arm-linux-cc/align_test.o] Error 127 (ignored)
o OBJ/arm-linux-cc/align_test OBJ/arm-linux-cc/align_test.o	 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 
/bin/sh: o: command not found
make[2]: [../RULES/rules.inc:44: OBJ/arm-linux-cc/align_test] Error 127 (ignored)

Hm no clue. Somehow the compiler is undefined. 

x86_64-pc-linux-gnu-gcc -M -DSCHILY_BUILD -IOBJ/amd64-linux-cc -I../incs/amd64-linux-cc -I../include -D__OPRINTF__ -D_GNU_SOURCE align_test.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -finput-charset=ISO-8859-1 -fexec-charset=UTF-8 -DSCHILY_BUILD -IOBJ/amd64-linux-cc -I../incs/amd64-linux-cc -I../include -D__OPRINTF__ -D_GNU_SOURCE -c -o OBJ/amd64-linux-cc/align_test.o align_test.c

This is how it looks on amd64.

Does it also fail on arm?

Is it possible to try without the special setup you are probably using when running the test.
Comment 3 Daniel Pielmeier gentoo-dev 2020-06-08 19:57:42 UTC
Sam James seems to have no problem with compiling cdrtools on arm64 in bug #723346. Suspecting this is an issue with your setup.

Considering the only changes between cdrtools-3.02_alpha09 and cdrtools-3.02_alpha09-r2 are only related to the switch between EAPI 6 and 7. Guess if there are issues this would also concern other arches and not only arm64.
Comment 4 Agostino Sarubbo gentoo-dev 2020-06-16 14:06:45 UTC
I suppose it is doing something weird while calling the compiler

To reproduce try to use gcc-config[-native-symlinks]
Comment 5 Daniel Pielmeier gentoo-dev 2020-06-21 12:22:27 UTC
Can not reproduce with gcc-config[-native-symlinks] either.

I totally forgot about bug #616764. Can you check if this is really about the quoting of CONFFLAGS in RULES/rules.cnf?
Comment 6 Agostino Sarubbo gentoo-dev 2020-07-20 08:56:10 UTC
I suppose it is arm specific.

Stable version fails for me too.

It does not work by unsetting CC