Author Topic: diskdev_cmds-557  (Read 334 times)

LeoTh3o

  • Full Member
  • ***
  • Posts: 231
  • Reputation: 43
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
diskdev_cmds-557
« on: September 01, 2012, 05:30:15 am »
I am currently toying with the source of diskdev_cmds. After the usual fumbling that happens when trying to build without an Xcode environment, I get the Makefile to work.
I went as far as building everything, but I have an issue with fsck_hfs.tproj/dfalib. Here I report the error:
make[4]: Entering directory `/private/var/root/diskdev_cmds-557/fsck_hfs.tproj/dfalib'
===== Building libdfalib.a RELEASE =====
/usr/bin/gcc -g -Os -pipe -Wall -Werror -Wno-unused-function -DBSD=1 -DDEBUG_BUILD=0 -DCONFIG_HFS_
TRIM=1 -Wno-four-char-constants -fpascal-strings -I/tmp/diskdev_cmds/Build/dfalib -c -o /tmp/diskd
ev_cmds/Build/dfalib/hfs_endian.o hfs_endian.c
In file included from CheckHFS.h:24,
                 from Scavenger.h:33,
                 from hfs_endian.c:38:
../fsck_messages.h:143: error: expected identifier or '(' before '^' token
../fsck_messages.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fsckGetBlo
ck'
../fsck_messages.h:146: error: expected declaration specifiers or '...' before 'fsckBlock_t'
make[4]: *** [build] Error 1


Howev, if I ask make to use clang to build running make CC=clang, I can pass the error. Thought this seem to be ok, I've problems with clang (to put it simple, it can't link libraries/executables against crt1.o/bundle/whatever, so it cannot link. The rare times I manage to link a binary, it's broken as it raises SIGSYS).

Suggestions are welcomed.
0xEB        0xFE
jmp short -2

8BitAce

  • Hero Member
  • *****
  • Posts: 703
  • Reputation: 57
  • If at first you don't succeed; call it version 1.0
  • Computers: Toshiba L505D-GS6000
  • iDevices: iPad 2 16GB WiFi, iPod 2g, iPod 4g
Re: diskdev_cmds-557
« Reply #1 on: September 01, 2012, 10:20:43 pm »
What version of gcc are you using? Don't quote me on this, but I'm pretty sure blocks (i.e. the "^") are broken on the gcc that's currently in Cydia.

LeoTh3o

  • Full Member
  • ***
  • Posts: 231
  • Reputation: 43
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
Re: diskdev_cmds-557
« Reply #2 on: September 02, 2012, 05:01:50 am »
So I should get back to crosscompile? There isn't a way to have a decent compiler on iOS directly?
Afaik gcc can't be built if its core modules (specifically, bfd) is updated to make it work with iOS; and despite all my efforts clang is still unusable, either the one from the repo and the ones I tried to build.
« Last Edit: September 02, 2012, 05:07:25 am by LeoTh3o »
0xEB        0xFE
jmp short -2

8BitAce

  • Hero Member
  • *****
  • Posts: 703
  • Reputation: 57
  • If at first you don't succeed; call it version 1.0
  • Computers: Toshiba L505D-GS6000
  • iDevices: iPad 2 16GB WiFi, iPod 2g, iPod 4g
Re: diskdev_cmds-557
« Reply #3 on: September 03, 2012, 08:40:45 pm »
Sorry, I'm not going to be of much more help :( I personally would try to cross-compile, but if you did port the newest gcc, you'd be a hero  :)

LeoTh3o

  • Full Member
  • ***
  • Posts: 231
  • Reputation: 43
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
Re: diskdev_cmds-557
« Reply #4 on: September 04, 2012, 05:26:27 am »
Newest gcc has a big problem :-\ from 4.2.1 the support for Apple ARM hasn't been developed. So simply there's nothing. I could try to make Xcode do something, but personally I don't have many hopes.
Clang-llvm on the other hand seemed way more interesting; unfortunately C0de isn't here right now.

Crosscompiling: every attempt I made always lead to monstrosity.
0xEB        0xFE
jmp short -2

Don't like seeing ads? Click here to register!