Re: Cros-compilation of postgresql
От | Tom Lane |
---|---|
Тема | Re: Cros-compilation of postgresql |
Дата | |
Msg-id | 22611.1151897822@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Cros-compilation of postgresql (Lars Jørgensen <5400213m001@stofanet.dk>) |
Список | pgsql-ports |
=?iso-8859-1?Q?Lars_J=F8rgensen?= <5400213m001@stofanet.dk> writes: > I'm working with a postgreSQL database, which I must install on a powerpc. = > The OS of the powerpc does not contain a compiler, so I need to cross = > compile it on a ordinary linux and then copy it to the powerpc. Cross-compiles are seldom fun :-( > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline = > -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing zic.o = > ialloc.o scheck.o localtime.o -L../../src/port = > -Wl,-rpath,/usr/local/powerpc/pgsql/lib-lpgport -lcrypt -lresolv -lnsl = > -ldl -lm -o zic > /usr/bin/ld: zic.o: Relocations in generic ELF (EM: 20) > zic.o: could not read symbols: File in wrong format gcc and /usr/bin/ld seem not to be on the same wavelength about what they are doing. Are you sure your crosscompile setup works at all? I'd suggest working on a "hello world"-type program until you've got the bugs out of that. regards, tom lane
В списке pgsql-ports по дате отправления: