Skip to contentSkip to conversation

imagemagick-native-6.3.5 compile problems

DISCUSSION mail mail 2 participants 7 messages Oct 11, 2009 – Oct 12, 2009

lore
Share & tools
lore

mail mail

author
#0 lore raw

Hi, all
I'm compiling x11-sato-image. I chose mini2440 as my machine and angstrom as
distro. My OE git version is:
4089b4dd14270a884101cc7b8c240998c4354cd0<http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=4089b4dd14270a884101cc7b8c240998c4354cd0>. imagemagick-native-6.3.5 compiled failed. I'm new to OE and didn't know what
to do. I just bitbake imagemagick-native again and have the screen:

derek@derek-desktop:~/mini2440$ bitbake imagemagick-native
/home/derek/mini2440/bitbake/lib/bb/COW.py:29: DeprecationWarning: the sets
module is deprecated
  import types, sets
NOTE: Handling BitBake files: - (7316/7316) [100 %]
NOTE: Parsing finished. 7023 cached, 0 parsed, 293 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 100 of 160 (ID: 7,
/home/derek/mini2440/openembedded/recipes/imagemagick/
imagemagick-native_6.3.5-10.bb, do_compile)
NOTE: Running task 151 of 160 (ID: 13,
/home/derek/mini2440/openembedded/recipes/imagemagick/
imagemagick-native_6.3.5-10.bb, do_distribute_sources)
ERROR: function do_compile failed
ERROR: log data follows
(/home/derek/mini2440/build/tmp/work/i686-linux/imagemagick-native-6.3.5-10-r4/temp/log.do_compile.10247)
| NOTE: make -j 4
| /bin/bash ./libtool --silent --tag=CC   --mode=compile ccache gcc
-DHAVE_CONFIG_H -I. -I./magick -I./wand  -I./ltdl -I./ltdl
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include -O2 -g
-Wall -W -pthread -MT magick/magick_libMagick_la-delegate.lo -MD -MP -MF
magick/.deps/magick_libMagick_la-delegate.Tpo -c -o
magick/magick_libMagick_la-delegate.lo `test -f 'magick/delegate.c' || echo
'./'`magick/delegate.c
| /bin/bash ./libtool --silent --tag=CC   --mode=compile ccache gcc
-DHAVE_CONFIG_H -I. -I./magick -I./wand  -I./ltdl -I./ltdl
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include -O2 -g
-Wall -W -pthread -MT magick/magick_libMagick_la-enhance.lo -MD -MP -MF
magick/.deps/magick_libMagick_la-enhance.Tpo -c -o
magick/magick_libMagick_la-enhance.lo `test -f 'magick/enhance.c' || echo
'./'`magick/enhance.c
| /bin/bash ./libtool --silent --tag=CC   --mode=compile ccache gcc
-DHAVE_CONFIG_H -I. -I./magick -I./wand  -I./ltdl -I./ltdl
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include -O2 -g
-Wall -W -pthread -MT magick/magick_libMagick_la-exception.lo -MD -MP -MF
magick/.deps/magick_libMagick_la-exception.Tpo -c -o
magick/magick_libMagick_la-exception.lo `test -f 'magick/exception.c' ||
echo './'`magick/exception.c
| /bin/bash ./libtool --silent --tag=CC   --mode=compile ccache gcc
-DHAVE_CONFIG_H -I. -I./magick -I./wand  -I./ltdl -I./ltdl
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include
-isystem/home/derek/mini2440/build/tmp/staging/i686-linux/usr/include -O2 -g
-Wall -W -pthread -MT magick/magick_libMagick_la-fx.lo -MD -MP -MF
magick/.deps/magick_libMagick_la-fx.Tpo -c -o
magick/magick_libMagick_la-fx.lo `test -f 'magick/fx.c' || echo
'./'`magick/fx.c
| In function 'open',
|     inlined from 'CopyDelegateFile' at magick/delegate.c:772,
|     inlined from 'InvokeDelegate' at magick/delegate.c:998:
| /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument needs 3
arguments
| make: *** [magick/magick_libMagick_la-delegate.lo] Error 1
| make: *** Waiting for unfinished jobs....
| mv -f magick/.deps/magick_libMagick_la-exception.Tpo
magick/.deps/magick_libMagick_la-exception.Plo
| magick/fx.c: In function 'ConvolveImageChannel':
| magick/fx.c:529: warning: ignoring #pragma omp parallel
| mv -f magick/.deps/magick_libMagick_la-enhance.Tpo
magick/.deps/magick_libMagick_la-enhance.Plo
| mv -f magick/.deps/magick_libMagick_la-fx.Tpo
magick/.deps/magick_libMagick_la-fx.Plo
| FATAL: oe_runmake failed
NOTE: Task failed:
/home/derek/mini2440/build/tmp/work/i686-linux/imagemagick-native-6.3.5-10-r4/temp/log.do_compile.10247
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/derek/mini2440/openembedded/recipes/imagemagick/
imagemagick-native_6.3.5-10.bb do_compile failed
ERROR: Task 7 (/home/derek/mini2440/openembedded/recipes/imagemagick/
imagemagick-native_6.3.5-10.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 150 tasks of which 149 didn't need to be
rerun and 1 failed.
ERROR: '/home/derek/mini2440/openembedded/recipes/imagemagick/
imagemagick-native_6.3.5-10.bb' failed

Could anyone give me some ideas about this or how can I fix it? Thanks!

Derek
2009/10/11
www.april1985.com

#1 lore raw
Quoted 3 lines · On Sunday 11 October 2009 16:37:19 mail mail wrote:

Hi, all
I'm compiling x11-sato-image. I chose mini2440 as my machine and angstrom
as distro.

Ni Hao,

sorry this is not how it is working. Ask on IRC or google/baidu first.

You are using a fortify enabled compiler and the open call lacks a third argument. Just create a patch to change the open call to have the access mode in it as well, send a patch, we will be happy to apply it.

z.

author
#2 lore raw

Ni Hao too, haha.
How could you know I'm Chinese ^_^

Thanks, I'll check it.

2009/10/11 Holger Hans Peter Freyther
<[email protected]<holger%[email protected]>

Quoted 25 lines · On Sunday 11 October 2009 16:37:19 mail mail wrote:
Quoted 3 lines

Hi, all
I'm compiling x11-sato-image. I chose mini2440 as my machine and angstrom
as distro.

Ni Hao,

sorry this is not how it is working. Ask on IRC or google/baidu first.

You are using a fortify enabled compiler and the open call lacks a third argument. Just create a patch to change the open call to have the access mode
in it as well, send a patch, we will be happy to apply it.

z.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#3 lore raw

Hi, Holger Hans Peter Freyther
Thank you for your direction. I finished compile it and here is my patch:

delegate.c 2009-10-12 00:04:45.000000000 +0800 renamed from delegate.c 2007-09-11 11:20:41.000000000 +0800 +1 -1
@@ -769,7 +769,7 @@
   /*
     Copy source file to destination.
   */
-  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT);
+  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT, 0777);
   if (destination_file == -1)
     return;
   source_file=open(source,O_RDONLY | O_BINARY);

2009/10/11 mail mail <[email protected]>

Quoted 4 lines

Ni Hao too, haha.
How could you know I'm Chinese ^_^

Quoted 31 lines

Thanks, I'll check it.

2009/10/11 Holger Hans Peter Freyther <[email protected]<holger%[email protected]>

Quoted 1 line
Quoted 23 lines · On Sunday 11 October 2009 16:37:19 mail mail wrote:
Quoted 2 lines

Hi, all
I'm compiling x11-sato-image. I chose mini2440 as my machine and

angstrom

Quoted 1 line

as distro.

Ni Hao,

sorry this is not how it is working. Ask on IRC or google/baidu first.

You are using a fortify enabled compiler and the open call lacks a third argument. Just create a patch to change the open call to have the access mode
in it as well, send a patch, we will be happy to apply it.

z.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

delegate.c +1 -1
@@ -769,7 +769,7 @@
   /*
     Copy source file to destination.
   */
-  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT);
+  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT, 0777);
   if (destination_file == -1)
     return;
   source_file=open(source,O_RDONLY | O_BINARY);
#4 lore raw
Quoted 6 lines · On Sunday 11 October 2009 18:14:07 mail mail wrote:

Hi, Holger Hans Peter Freyther
Thank you for your direction. I finished compile it and here is my patch:

delegate.c 2009-10-12 00:04:45.000000000 +0800 line 775

Quoted 8 lines
delegate.c 2009-10-12 00:04:45.000000000 +0800 renamed from delegate.c 2007-09-11 11:20:41.000000000 +0800 +1 -1
@@ -769,7 +769,7 @@
   /*
     Copy source file to destination.
   */
-  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT);
+  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT, 0777);
   if (destination_file == -1)
     return;
   source_file=open(source,O_RDONLY | O_BINARY);

great. Could you please do one more thing. Change the image-magick recipe to apply this patch (e.g. by adding SRC_URI += file://fix-native- compile.patch;patch=1) and then use git add on the patch and create a git commit which adds the patch, patches image-magick and use git format-patch to send this to the mailinglist?

With patches coming from git format-patch we can use git am to apply them.

	z.
author
#5 lore raw

OK. I'll try it. I'm not very familiar with these things but I'll try my best! Thank you again for your great help!

2009/10/12 Holger Hans Peter Freyther
<[email protected]<holger%[email protected]>

Quoted 36 lines · On Sunday 11 October 2009 18:14:07 mail mail wrote:

delegate.c 2009-10-12 00:04:45.000000000 +0800 line 772

Quoted 11 lines

Hi, Holger Hans Peter Freyther
Thank you for your direction. I finished compile it and here is my patch:

delegate.c 2009-10-12 00:04:45.000000000 +0800 renamed from delegate.c 2007-09-11 11:20:41.000000000 +0800 +1 -1
@@ -769,7 +769,7 @@
   /*
     Copy source file to destination.
   */
-  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT);
+  destination_file=open(destination,O_WRONLY | O_BINARY | O_CREAT,

0777);

delegate.c 2009-10-12 00:04:45.000000000 +0800 line 775

Quoted 3 lines
delegate.c 2009-10-12 00:04:45.000000000 +0800 renamed from delegate.c 2007-09-11 11:20:41.000000000 +0800 +0 -0
   if (destination_file == -1)
     return;
   source_file=open(source,O_RDONLY | O_BINARY);

great. Could you please do one more thing. Change the image-magick recipe to
apply this patch (e.g. by adding SRC_URI += file://fix-native- compile.patch;patch=1) and then use git add on the patch and create a git commit which adds the patch, patches image-magick and use git format-patch to
send this to the mailinglist?

With patches coming from git format-patch we can use git am to apply them.

       z.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 2 lines · On Monday 12 October 2009 07:36:28 derek he wrote:

OK. I'll try it. I'm not very familiar with these things but I'll try my best! Thank you again for your great help!

great, if unsure come to the #oe channel we are happy to point you to the right tools.

z.