Homebrew Ctrulib compiling error

YugamiSekai

Mr. Picross
OP
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,387
Country
United States
So I decided to started working on 3DS homebrew again, and after a long hiatus I'm greeted with the following error when I compile the newest ctrulib:

Code:
(path)/libctru/source/console.c:467:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  con_write,
  ^
(path)/libctru/source/console.c:467:2: note: (near initialization for 'dotab_stdout.write_r') c:/Users/Kaleb/Desktop/ctrulib-master/libctru/source/console.c:485:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  debug_write,
  ^
(path)/libctru/source/console.c:485:2: note: (near initialization for 'dotab_3dmoo.write_r')
cc1.exe: all warnings being treated as errors
make[1]: *** [console.o] Error 1
make: *** [build] Error 2

Any fix for this?
 

YugamiSekai

Mr. Picross
OP
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,387
Country
United States
@rtur Removed -Werror and now I get:

Code:
In file included from (path)/libctru/source/services/soc/soc_select.c:5:0:
(path)/libctru/include/sys/select.h:1:29: fatal error: sys/select.h: No such file or directory
compilation terminated.
make[1]: *** [soc_select.o] Error 1
make: *** [build] Error 2
 

Rusb

Well-Known Member
Member
Joined
Apr 17, 2014
Messages
178
Trophies
0
XP
968
Country
sys/select.h: No such file or directory <- check if the file really exists in the directory and if in the makefile you are including that folder
 

rtur

Member
Newcomer
Joined
Jan 19, 2017
Messages
20
Trophies
0
Age
124
XP
86
Country
I've just cloned the repo and gave it a try, it works fine on my laptop (I'm running linux though)

--------------------- MERGED ---------------------------

my gcc version
Code:
arm-none-eabi-gcc (devkitARM release 46) 6.3.0

when I compile, commands look like these, compare with yours to see if something different strikes you
Code:
arm-none-eabi-gcc -MMD -MP -MF /home/rtur/devel/nintendo/3ds/ctrulib/libctru/build/ctru_exit.d -g -Wall -Werror -O2 -mword-relocations -ffunction-sections -fomit-frame-pointer -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -I/home/rtur/devel/nintendo/3ds/ctrulib/libctru/include  -I/home/rtur/devel/nintendo/3ds/ctrulib/libctru/build -DARM11 -D_3DS -c <input_file> -o <output_file>
 

YugamiSekai

Mr. Picross
OP
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,387
Country
United States
I've just cloned the repo and gave it a try, it works fine on my laptop (I'm running linux though)

--------------------- MERGED ---------------------------

my gcc version
Code:
arm-none-eabi-gcc (devkitARM release 46) 6.3.0

when I compile, commands look like these, compare with yours to see if something different strikes you
Code:
arm-none-eabi-gcc -MMD -MP -MF /home/rtur/devel/nintendo/3ds/ctrulib/libctru/build/ctru_exit.d -g -Wall -Werror -O2 -mword-relocations -ffunction-sections -fomit-frame-pointer -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -I/home/rtur/devel/nintendo/3ds/ctrulib/libctru/include  -I/home/rtur/devel/nintendo/3ds/ctrulib/libctru/build -DARM11 -D_3DS -c <input_file> -o <output_file>
I got it to compile after updating devkitARM. Thanks!
 
  • Like
Reactions: rtur

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +2
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    He could make so much money!!! His arm would never get tired lol
    +1
    SylverReZ @ SylverReZ: @Psionic Roshambo, Lol