Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711310 - app-cdr/cdrtools-3.02_alpha09 schily header files try to include headers with a wrong path x86_64-linux-gcc
Summary: app-cdr/cdrtools-3.02_alpha09 schily header files try to include headers with...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-02 11:58 UTC by Michele Santullo
Modified: 2020-03-19 21:29 UTC (History)
1 user (show)

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 Michele Santullo 2020-03-02 11:58:58 UTC
These files in my /usr/include/schily contain wrong includes:

xconfig.h
141:#include <schily/x86_64-linux-gcc/xconfig.h>

avoffset.h
127:#include <schily/x86_64-linux-gcc/avoffset.h>

align.h
136:#include <schily/x86_64-linux-gcc/align.h>

The subdirectory x86_64-linux-gcc doesn't exist for me, instead I have one called amd64-linux-cc which contains the 3 .h files listed above. Either the include path is wrong or the name of that directory on my filesystem is wrong.

Reproducible: Always

Steps to Reproduce:
1. Write a simple hello world program in C and make sure it compiles
2. Add #include <schily/standard.h> at the top of your source file
3. Compile your program
Actual Results:  
Compilation fails with an error like schily/x86_64-linux-gcc/xconfig.h file not found.

Expected Results:  
Compilation should pass.

equery b /usr/include/schily/standard.h 
 * Searching for /usr/include/schily/standard.h ... 
app-cdr/cdrtools-3.02_alpha09 (/usr/include/schily/standard.h)
Comment 1 Daniel Pielmeier gentoo-dev 2020-03-14 13:57:33 UTC
I took a look at this.

The include paths of the files mentioned seem hard-coded depending on the architecture. From the source code the directory containing the three files is named after the OARCH variable in RULES/rules1.top.

OARCH returns amd64-linux-cc on a 64-bit x86 cpu. So the solution would be changing the OARCH variable or the include paths. However from the number of architectures cdrtools supports on Gentoo it is hard for me to fix this for all as I can only test amd64.