English Amiga Board

Go Back   English Amiga Board > Coders > Coders. General

Thread Tools
Old 24 July 2013, 14:12   #1
Registered User
tnt23's Avatar
Join Date: Feb 2008
Location: Saint-Petersburg / Russia
Posts: 324
Compiling CLib37 with VBCC 0.9

Hello all,

As a first step towards writing device driver for custom hardware, I am trying to compile the CLib37 against NDK 3.1 using the most recent VBCC 0.9. I get the following error message for the LibInit.c:

error 3005: reloc type 1, size 8, mask 0xffffffff (symbol _ExLibID + 0x4051ce24) not supported
This seems to be an error message from vasm. I took a look at resulting .asm file to see what could be wrong with _ExLibID symbol but could not see anything suspicious (I am a complete newbie in Amiga programming). Along with the _ExLibID symbol, there is the _ExLibName symbol which is basically the same char string, but vasm accepts it quite happily.

In spite of the error 3005, the listing ends with 'There have been no errors', and there is no .o file either.

Could anybody please help me here? Thanks.
tnt23 is offline  
Old 24 July 2013, 14:43   #2
Registered User
tnt23's Avatar
Join Date: Feb 2008
Location: Saint-Petersburg / Russia
Posts: 324

The DataTab structure apparently misses offset for lib_Flags (marked in bold). After I have added it everything compiles just fine.

DataTab =
#ifdef VBCC
        0x0080,10,(ULONG) &ExLibName[0],
        0x80,24,(ULONG) &ExLibID[0],
        (ULONG) 0
tnt23 is offline  
Old 29 July 2013, 11:28   #3

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,598
All data after the missing "14" have been written to an earlier (wrong) structure element. In the case of the error message, the 32-bit pointer ExLibID has written into an 8-bit field.

Vasm's error message means that the AmigaOS hunk file format does not support 8-bit pointers.

The listing file contained "There have been no errors", because the error was recognized in the output module, after the listing has been written.
phx is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using timer.device in C (VBCC) DBAlex Coders. General 2 28 June 2011 23:10
VBCC assembler linking syntax? NovaCoder Coders. General 2 20 May 2011 04:04
VBCC 0.8j for Windows hitchhikr Coders. General 11 09 October 2008 01:58
Kickstart 1.3 and GCC or VBCC? cdoty Coders. General 1 23 April 2005 07:10
Compiler: vbcc 0.8g patch 2 released Paul News 0 29 November 2004 16:41

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:46.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.05982 seconds with 13 queries