Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 17.10 make error #4

Open
ConsoleHax opened this issue Jan 2, 2018 · 3 comments
Open

Ubuntu 17.10 make error #4

ConsoleHax opened this issue Jan 2, 2018 · 3 comments

Comments

@ConsoleHax
Copy link

**Hi,

I have installed llvm and binutils (+ reboot); when I try 'make' in libPS4 and libUSBfatfs I get the following error.**

gcc -c -o build/flash_drive.o source/flash_drive.c -I/home/consolehax/Desktop/SDK/libPS4/include -I. -Iinclude -std=c11 -O2 -fno-builtin -nostartfiles -nostdlib -Wall -masm=intel -march=btver2 -mtune=btver2 -m64 -mabi=sysv -mcmodel=large
In file included from /home/consolehax/Desktop/SDK/libPS4/include/file.h:3:0,
                 from /home/consolehax/Desktop/SDK/libPS4/include/ps4.h:5,
                 from source/flash_drive.c:24:
/home/consolehax/Desktop/SDK/libPS4/include/types.h:71:18: error: conflicting types for ‘__dev_t’
 typedef uint32_t __dev_t;
                  ^~~~~~~
In file included from /usr/include/stdint.h:27:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
                 from /home/consolehax/Desktop/SDK/libPS4/include/types.h:3,
                 from /home/consolehax/Desktop/SDK/libPS4/include/file.h:3,
                 from /home/consolehax/Desktop/SDK/libPS4/include/ps4.h:5,
                 from source/flash_drive.c:24:
/usr/include/x86_64-linux-gnu/bits/types.h:133:25: note: previous declaration of ‘__dev_t’ was here
 __STD_TYPE __DEV_T_TYPE __dev_t; /* Type of device numbers.  */
                         ^~~~~~~
Makefile:20: recipe for target 'build/flash_drive.o' failed
make: *** [build/flash_drive.o] Error 1
@eth-man
Copy link

eth-man commented Jan 7, 2018

comment the line at libPS4/include/types.h

@segobi
Copy link

segobi commented Jan 18, 2018

yup comment __dev_t definition in all of your system's types.h include files.

@ConsoleHax
Copy link
Author

This issue can be closed. Commenting the line typedef uint32_t __dev_t; in libPS4/include/types.h fixed this issue.

(ex. /* typedef uint32_t __dev_t; */)

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants