Subject: Re: CrossCompiling Entire NetBSD-Current Release on MacOSX
To: None <current-users@netbsd.org>
From: KlinT <klint@klintcentral.net>
List: current-users
Date: 03/27/2006 17:24:21
Yes, I know,

Actually, If I get a failed build, I re-run the whole building =20
steps : build tools, kernel, distribution .... ....

I made my first tests on Panther ( 10.3.9 ) using XCode 1.x ...

May be there are a problem with this XCode version, so, I decided to =20
run the same tests on Tiger ( 10.4.5 ) with XCode 2.2

Actually compiling "distribution" ...

( Note: my system is running GCC 4.0.1 -- I'll test GCC-3.3 later )

Le 27 mars 06 =E0 17:12, matthew sporleder a =E9crit :

> I like to use -r when coming from a failed build.
> It does all that make clean stuff for you.
>
> On 3/27/06, KlinT <klint@klintcentral.net> wrote:
>>
>> Well the "-r" option is not needed I think ...
>>
>> -r          Remove contents of TOOLDIR and DESTDIR before building.
>>
>> But I'll try a build tonight ...
>>
>> Le 27 mars 06 =E0 16:28, matthew sporleder a =E9crit :
>>
>>> I have a basic how-to here:
>>> http://www.mspo.com/netbsdcurrentonosx.html
>>>
>>> On 3/27/06, KlinT <klint@klintcentral.net> wrote:
>>>> Hi all,
>>>>
>>>> Well, I'm trying to "cross-compile" an i386 release from the
>>>> NetBSD-current Sources on an Apple G4/MacOSX 10.3.9 using XCode
>>>> Tools.
>>>>
>>>> Everything goes well except an error with some X11 components.
>>>>
>>>> I've built successfully the "toolchain" ( sh build.sh tools )
>>>> I've built successfully the "kernel" ( sh build.sh kernel=3DGENERIC =
)
>>>> But I cannot built the "distribution" ( sh build.sh distribution )
>>>> here
>>>> is the logs :
>>>> -------------------------------------------------------------------=20=

>>>> --
>>>> ---
>>>> -------------------------------------------------------------------=20=

>>>> --
>>>> ---
>>>> ----------------
>>>>      .../...
>>>>      compile  xkbcomp/xkbparse.lo
>>>>         link  xkbcomp/xkbcomp
>>>> ld: multiple definitions of symbol _XkbConvertGetByNameComponents
>>>> xkbmisc.lo definition of _XkbConvertGetByNameComponents in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbConvertGetByNameComponents in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbConvertXkbComponents
>>>> xkbmisc.lo definition of _XkbConvertXkbComponents in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbConvertXkbComponents in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbDetermineFileType
>>>> xkbmisc.lo definition of _XkbDetermineFileType in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbDetermineFileType in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbEnsureSafeMapName
>>>> xkbmisc.lo definition of _XkbEnsureSafeMapName in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbEnsureSafeMapName in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbFindKeycodeByName
>>>> xkbmisc.lo definition of _XkbFindKeycodeByName in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbFindKeycodeByName in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbLookupGroupAndLevel
>>>> xkbmisc.lo definition of _XkbLookupGroupAndLevel in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbLookupGroupAndLevel in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbMergeFile
>>>> xkbmisc.lo definition of _XkbMergeFile in section (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbMergeFile in section (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbNameMatchesPattern
>>>> xkbmisc.lo definition of _XkbNameMatchesPattern in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbNameMatchesPattern in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol _XkbWriteXKBKeymapForNames
>>>> xkbmisc.lo definition of _XkbWriteXKBKeymapForNames in section
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of _XkbWriteXKBKeymapForNames in section
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol __XkbKSCheckCase
>>>> xkbmisc.lo definition of __XkbKSCheckCase in section =20
>>>> (__TEXT,__text)
>>>> XKBMisc.lo definition of __XkbKSCheckCase in section =20
>>>> (__TEXT,__text)
>>>> ld: multiple definitions of symbol __XkbStrCaseCmp
>>>> xkbmisc.lo definition of __XkbStrCaseCmp in section (__TEXT,__text)
>>>> XKBMisc.lo definition of __XkbStrCaseCmp in section (__TEXT,__text)
>>>> *** [xkbcomp] Error code 1
>>>> 1 error
>>>> nbmake: stopped in
>>>> /Volumes/DATA1/CROSSCOMP_BSD/TEST/src/x11/tools/xkbcomp
>>>> *** [dependall] Error code 2
>>>> 1 error
>>>> nbmake: stopped in
>>>> /Volumes/DATA1/CROSSCOMP_BSD/TEST/src/x11/tools/xkbcomp
>>>> *** [dependall-xkbcomp] Error code 2
>>>> 1 error
>>>> nbmake: stopped in /Volumes/DATA1/CROSSCOMP_BSD/TEST/src/x11/tools
>>>> *** [do-tools] Error code 2
>>>> 1 error
>>>> nbmake: stopped in /Volumes/DATA1/CROSSCOMP_BSD/TEST/src/x11
>>>> *** [build] Error code 2
>>>> 1 error
>>>> nbmake: stopped in /Volumes/DATA1/CROSSCOMP_BSD/TEST/src/x11
>>>> *** [do-x11] Error code 2
>>>> 1 error
>>>> nbmake: stopped in /Volumes/DATA1/CROSSCOMP_BSD/TEST/src
>>>> *** [build] Error code 2
>>>> 1 error
>>>> nbmake: stopped in /Volumes/DATA1/CROSSCOMP_BSD/TEST/src
>>>> *** [distribution] Error code 2
>>>> 1 error
>>>> nbmake: stopped in /Volumes/DATA1/CROSSCOMP_BSD/TEST/src
>>>> ERROR: Failed to make distribution
>>>> *** BUILD ABORTED ***
>>>> -------------------------------------------------------------------=20=

>>>> --
>>>> ---
>>>> -------------------------------------------------------------------=20=

>>>> --
>>>> ---
>>>> ----------------
>>>> Any idea ?
>>>>
>>>> For this problem I'm about to try the build on Tiger with more =20
>>>> recent
>>>> XCode tools. I think this could solve the problem.
>>>>
>>>> I'd like to know if someone did this before : crosscompiling
>>>> NetBSD on
>>>> MacOSX ...
>>>> Is there any special task to do on the mac to successfully build a
>>>> NetBSD release ?
>>>>
>>>> Many Thanks
>>>>
>>>> Arnaud.
>>>>
>>>>
>>>
>>
>>
>